home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / coherent / 4271 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.7 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!drycas.club.cc.cmu.edu!ghod
  2. From: ghod@drycas.club.cc.cmu.edu
  3. Newsgroups: comp.os.coherent
  4. Subject: Re: Error: cannot open sys/fcntl.h ???
  5. Message-ID: <1992Sep5.224347.1985@drycas.club.cc.cmu.edu>
  6. Date: 5 Sep 92 22:43:46 -0500
  7. References: <1992Sep4.092402.3764@spcvxb.spc.edu>
  8. Organization: Carnegie Mellon Computer Club
  9. Lines: 37
  10.  
  11. In article <1992Sep4.092402.3764@spcvxb.spc.edu>, mauritz_c@spcvxb.spc.edu writes:
  12. > Wnews is getting closer to working, however, I just started to
  13. > get this error:
  14. > cannot open sys/fcntl.h
  15. > This happens when inews.c is being compiled.  Why does this happen?
  16. > I thought sys/fcntl.h is a standard header file?
  17. > Cheers,
  18. > Chris
  19. > "The accidental C programmer" :)
  20.  
  21. The file fcntl.h was in the /usr/include/sys directory in Coherent 3.2 (and
  22. possibly older releases). MWC moved it to /usr/include for Coherent 4.0.1.
  23. There are three ways to fix this: 1) change the references in inews.c to
  24. <sys/fcntl.h> into <fcntl.h>; 2) copy fcntl.h from /usr/include/sys into
  25. /usr/include; or 3) (the best way, I think) use ln to make a hard link
  26. in the /usr/include directory to fcntl.h in /usr/include/sys.
  27.  
  28. To create the link, use this command:
  29.  
  30. # ln -f /usr/include/sys/fcntl.h /usr/include/fcntl.h
  31.  
  32. Creating a link is preferable to copying the file since it doesn't require 
  33. using up any added disk space.
  34.  
  35. fcntl.h contains defenitions for the commands used with the open() system
  36. call (O_RDONLY, O_WRONLY, O_NDELAY, O_APPEND, etc). This file is supposed
  37. to be in /usr/include (I think) but MWC put it in /usr/include/sys in
  38. previous versions of Coherent for reasons unknown. They probably moved it
  39. back as a corrective measure.
  40.  
  41. --Bill Paul
  42.  
  43. (ghod@drycas.club.cc.cmu.edu or ghod@drycas.bitnet)
  44.