home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.20 / text0141.txt < prev    next >
Encoding:
Internet Message Format  |  1990-08-02  |  1.2 KB

  1. From:  mcgrath%tully.Berkeley.EDU@ucbvax.Berkeley.EDU (Roland McGrath)
  2.  
  3.  
  4. >From 1003.1 2.10.4 it seems that if _POSIX_VDISABLE is defined as -1 in
  5. <unistd.h>, it is supposed to mean there is no VDISABLE value for any file.
  6. This precludes the value being -1.  Was this the intent?
  7.  
  8. Similarly, 5.7.1.3 says:
  9.  
  10. If the variable corresponding to NAME has no limit for the path or file
  11. descriptor, the pathconf() and fpathconf() functions shall return -1 without
  12. changing `errno'.
  13.  
  14. Though in the case of NAME == _PC_VDISABLE, the value in question is not a
  15. "limit", this seems to imply that if pathconf("file", _PC_VDISABLE) returns -1
  16. without changing `errno', then there is no VDISABLE for value for "file".
  17.  
  18. The problem is that the wording of the standard and the sysconf, pathconf, and
  19. fpathconf functions were designed for boolean options and for limits which are
  20. required to be positive integers.  In these cases, -1 is a reasonable
  21. out-of-range value.  But _POSIX_VDISABLE is a character value, not restricted
  22. to any specific range, and doesn't fit in right.
  23. --
  24.     Roland McGrath
  25.     Free Software Foundation, Inc.
  26. roland@ai.mit.edu, uunet!ai.mit.edu!roland
  27.  
  28.  
  29. Volume-Number: Volume 20, Number 139
  30.  
  31.