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

  1. Submitted-by: karish@mindcraft.com (Chuck Karish)
  2.  
  3. In article <128358@uunet.UU.NET> decot@hpisod2.cup.hp.com (Dave Decot) writes:
  4. >[ X3J11 ] can footnote all they want; the text requires me to set FILENAME_MAX
  5. >to the size of the longest filename I *guarantee* can be opened.
  6. >
  7. >The length of that filename is 8, because I *guarantee* that the file
  8. >"/dev/tty" can be opened.  Anything else, depends on what's on the system.
  9.  
  10. I hadn't noticed that they prohibited the use of the O_CREAT flag
  11. in your call to open().  What's the fuss about?
  12.  
  13. The C committee was trying to make it possible to write portable
  14. programs, not to constrain what must be present on your system.
  15. They were doomed to failure in an environment as complex as POSIX.
  16. That's why we have pathconf().  It's still reasonable to let the
  17. programmer know whether it's necessary to provide 13 characters
  18. or 256 or 1024 to hold a filename.
  19.  
  20.     Chuck Karish        karish@mindcraft.com
  21.     Mindcraft, Inc.        (415) 323-9000
  22.  
  23.  
  24. Volume-Number: Volume 23, Number 33
  25.  
  26.