home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v7 / text0043.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.1 KB

  1. From: seismo!philabs!phri!cooper!cooper!chris (Chris Lent)
  2. Date: Tue, 7 Oct 86 19:26:42 edt
  3.  
  4. Just wondering,
  5.     Why not set up a few functions to determine how the heck
  6. each operating system handles filenames?
  7.  
  8.     For case sensitivity how about something like:
  9.         isfsense() 
  10.     which could be a macro to a constant or a function.
  11.  
  12.     Or better how about:
  13.         isflegal(fname)
  14.         char *fname;
  15.     which would tell you if the operating system approves of your file
  16.     name? Of course this could be done through existing functions
  17. by opening the file, but this way COULD be implemented to reduce
  18. file access overhead.
  19.  
  20.     But I think a good solution would be to follow FORTRAN-77's
  21. example with the inquire statement which can get back the fully expanded
  22. filename of an already open unit-number (file descriptor) or a
  23. closed file.  I've found all F-77's I've tried to give back the
  24. full pathnames on files.
  25.  
  26.     But I think that a minimum allowable character set for
  27. filenames might be sufficient.  That is 'A-Z0-9.' would be fine
  28. for most users I've run into.
  29.  
  30. Well that's about it
  31. Chris Lent
  32. ihnp4!philabs!phri!cooper!chris
  33.  
  34. Volume-Number: Volume 7, Number 44
  35.  
  36.