home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v21 / 030 / text0000.txt < prev   
Encoding:
Internet Message Format  |  1990-12-05  |  997 b 

  1. From:  Don_Lewine@dgc.ceo.dg.com
  2.  
  3. CEO summary:
  4. I have been comparing SVID Issue 3 (for V.4) to IEEE Std 1003.1-1988. 
  5. I noticed that the SVID specifies header files in the synopsis for 
  6. various functions that are not required for POSIX.  For example,
  7. POSIX says that setuid() requires that <sys/types.h> be included.  
  8. The SVID requires that both <sys/types.h> and <unistd.h> be included.
  9.  
  10. Question: Is there anything wrong with this?  If I write a strictly
  11. conforming application, can I include <unistd.h> for SVID 
  12. compatibility even if POSIX does not require it?  Is there any 
  13. problem with including "extra" header files (other than the obvious 
  14. restrictions on the namespace)?
  15.  
  16. BTW, looking at the SVR4 code there is nothing in <unistd.h> that 
  17. would require it to be included for setuid().  There do not seem to 
  18. be any symbols in the header file that are prohibited.  However, this 
  19. is a standards questions and reading the .h files is cheating!
  20.  
  21.  
  22.  
  23.  
  24.  
  25. Volume-Number: Volume 21, Number 30
  26.  
  27.