home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.23 / text0032.txt < prev    next >
Encoding:
Text File  |  1991-06-15  |  1.0 KB  |  25 lines

  1. Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
  2.  
  3. In article <129469@uunet.UU.NET> lewine@dg.uucp writes:
  4. >... Most applications do not care 
  5. >about the longest pathname the are guaranteed to be able to create.
  6. >They need to know the longest pathname that will be encoundered.
  7. >In other words, how much storage should be allocated for the user's
  8. >response to a "File: " prompt.  Or, how large should the buffer be
  9. >for getcwd().  Or, what is the longest path a file tree walk will
  10. >encounter.  _POSIX_PATH_MAX, PATH_MAX and pathconf() do not give
  11. >any insight into those questions.
  12.  
  13. Maybe because there is no answer to these questions?  There is *no limit*
  14. to these lengths in some Unix systems, notably V6 and V7 of hallowed memory.
  15. Programmers who hope to allocate fixed-sized arrays for these purposes are
  16. simply demonstrating their laziness and ignorance.
  17. -- 
  18. And the bean-counter replied,           | Henry Spencer @ U of Toronto Zoology
  19. "beans are more important".             |  henry@zoo.toronto.edu  utzoo!henry
  20.  
  21.  
  22. Volume-Number: Volume 23, Number 36
  23.  
  24.  
  25.