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

  1. Submitted-by: goudreau@dg-rtp.dg.com (Bob Goudreau)
  2.  
  3. In article <128358@uunet.UU.NET>, decot@hpisod2.cup.hp.com (Dave Decot) writes:
  4. > > To quote from the C standard, FILENAME_MAX:
  5. > > 
  6. > >     ... expands to an integral constant expression that is the size needed
  7. > >     for an array of char large enough to hold the longest file name
  8. > >     string that the implementation guarantees can be opened. [There's
  9. > >     a footnote saying that this doesn't mean that just any string this
  10. > >     long is a valid file name.]
  11. > They can footnote all they want; the text requires me to set FILENAME_MAX
  12. > to the size of the longest filename I *guarantee* can be opened.
  13.  
  14. I believe the point about the footnote was that string-length is not
  15. the *only* criterion in determining if the filename is valid.  The
  16. system may disallow various characters from filenames, for example.
  17. The relevant footnote text is:
  18.  
  19.     Of course, file name string contents are subject to other
  20.     system-specific constraints; therefore, _all_ possible
  21.     strings of length FILENAME_MAX cannot be expected to be
  22.     opened sucessfully.
  23.  
  24. ----------------------------------------------------------------------
  25. Bob Goudreau                +1 919 248 6231
  26. Data General Corporation        goudreau@dg-rtp.dg.com
  27. 62 Alexander Drive            ...!mcnc!rti!xyzzy!goudreau
  28. Research Triangle Park, NC  27709, USA
  29.  
  30.  
  31. Volume-Number: Volume 23, Number 29
  32.  
  33.