home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.21 / text0064.txt < prev    next >
Encoding:
Internet Message Format  |  1990-10-26  |  779 b 

  1. From:  Don_Lewine@dgc.ceo.dg.com
  2.  
  3. IEEE Std 1003.1-1988 paragraph 5.7.1.2 note 5 describes the value 
  4. returned by pathconf() when _PC_PATH_MAX is used as an argument as, 
  5. "The maximum length of a relative pathname when the specified 
  6. directory is the working directory."
  7.  
  8. I have tried this on several POSIX.1 systems.  None of them seem to 
  9. enforce the maximum.  In fact they all return a constant (say, 1024) 
  10. even if the path given to pathconf() is already longer than that.
  11.  
  12. Is this conforming behavior?
  13.  
  14. If it is conforming, how should a portable application determine the 
  15. longest pathname a user can specify?  
  16.  
  17. What about _PC_NAME_MAX?  May readdir() return a longer name than the 
  18. value returned by pathconf() for that directory?
  19.  
  20. Volume-Number: Volume 21, Number 63
  21.  
  22.