home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / unix / 473 next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.6 KB

  1. Path: sparky!uunet!not-for-mail
  2. From: karish@pangea.Stanford.EDU (Chuck Karish)
  3. Newsgroups: comp.std.unix
  4. Subject: Re; PATH_MAX
  5. Date: 23 Dec 1992 13:28:40 -0800
  6. Organization: Mindcraft, Inc.
  7. Lines: 36
  8. Sender: sef@ftp.UU.NET
  9. Approved: sef@ftp.uucp (Moderator, Sean Eric Fagan)
  10. Message-ID: <1halm8INN9c6@ftp.UU.NET>
  11. References: <1gs9qaINN9rl@ftp.UU.NET>
  12. NNTP-Posting-Host: ftp.uu.net
  13. X-Submissions: std-unix@uunet.uu.net
  14.  
  15. Submitted-by: karish@pangea.Stanford.EDU (Chuck Karish)
  16.  
  17. In article <1gs9qaINN9rl@ftp.UU.NET> eric@mks.com (Eric Gisin) writes:
  18. >On a system with a defined, constant value for PATH_MAX,
  19. >what would pathconf("/tmp", _PC_PATH_MAX) return?
  20. >The books I have, Zlotnick and O'Reilly, say PATH_MAX-4.
  21. >The systems I have say PATH_MAX.
  22. >Who is right? If it is PATH_MAX-4, how would fpathconf work?
  23.  
  24. POSIX.1-1990 says, in note (5) to Table 5-2 (5.7.1.3):
  25.  
  26.     If path or fildes refers to a directory, the value
  27.     returned is the maximum length of a relative pathname
  28.     when the specified directory is the working directory.
  29.  
  30. However, the description of the values in Table 2-6,
  31. which includes PATH_MAX, (2.8.5) says:
  32.  
  33.     The values in Table 2-6 may be constants within an
  34.     implementation or may vary from one pathname to
  35.     another.
  36.  
  37. The implementation described above chooses to have
  38. {PATH_MAX} constant rather than variable according to
  39. the length of the path prefix.  This is legitimate.
  40.  
  41. Another interesting question is whether the fixed value
  42. of PATH_MAX accurately reflects the capabilities of
  43. the filesystem.
  44. --
  45.  
  46.     Chuck Karish          karish@mindcraft.com
  47.     (415) 323-9000 x117   karish@pangea.stanford.edu
  48.  
  49.  
  50. Volume-Number: Volume 29, Number 83
  51.