home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.17 / text0059.txt < prev    next >
Encoding:
Internet Message Format  |  1990-01-06  |  1.1 KB

  1. From: jeffrey@algor2.algorists.com (Jeffrey Kegler)
  2.  
  3. In article <436@longway.TIC.COM> Andy Tanenbaum <uunet!cs.vu.nl!ast> writes:
  4. >From: Andy Tanenbaum <uunet!cs.vu.nl!ast>
  5. >
  6. >The ANSI C standard specifically states that it is legal for an
  7. >application program to include the ANSI headers (e.g., <limits.h>)
  8. >multiple times in a program.
  9. >
  10. >What about the POSIX headers that are not in the ANSI std, such as
  11. ><unistd.h> and <sys/wait.h>.  Is an implementation required to behave
  12. >correctly if they are included multiple times?  If so, could somebody
  13. >point out the section in P1003.1 where this is stated.
  14.  
  15. >From 2.8.1 of 1003.1: "Additionally, the C Standard requires that it
  16. be possible to include a header more than once, and that a symbol may
  17. be defined in more than one header.  This requirement is also made of
  18. headers for this standard."  This seems to say yes in answer to the
  19. above question.
  20. -- 
  21.  
  22. Jeffrey Kegler, Independent UNIX Consultant, Algorists, Inc.
  23. jeffrey@algor2.ALGORISTS.COM or uunet!algor2!jeffrey
  24. 1762 Wainwright DR, Reston VA 22090
  25.  
  26. Volume-Number: Volume 17, Number 68
  27.  
  28.  
  29.