home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 9901 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!kithrup!cygnus.com!dje
  3. From: dje@cygnus.com (Doug Evans)
  4. Subject: Re: Need help in compiling smail-3.1.26
  5. Organization: Cygnus Support
  6. Date: Sat, 05 Sep 1992 01:16:51 GMT
  7. Message-ID: <1992Sep05.011651.2195@kithrup.COM>
  8. X-Newsreader: Tin 1.1 PL5
  9. References: <1992Sep4.195505.11206@hippo.ru.ac.za>
  10. Sender: news@kithrup.COM (Network News)
  11. Nntp-Posting-Host: cygnus.com
  12. Lines: 23
  13.  
  14. Pieter Immelman (pi@oliver.sun.ac.za) wrote:
  15. : Does anybody know what must be changed in the source/installation to
  16. : get smail linking?  Our current problem is that the linker is looking
  17. : for _lockf.  We had a prior problem with F_ULOCK, F_LOCK, F_TLOCK which
  18. : wasn't defined.  This was easily fixed ;) by adding it to unistd.h.
  19. : As we see it, we're either missing a library or _lockf has a different
  20. : name in Linux.
  21.  
  22. There are various ways to proceed. What I did was tell smail to use
  23. fcntl(F_SETLK) which is the Posix way to do file locking.
  24. Unfortunately, my Linux box is 1000 miles away. :-(
  25.  
  26. Lockf() isn't Posix, which is why it is currently unimplemented.
  27.  
  28. I'm not sure adding F_ULOCK/etc. to unistd.h would be my preference,
  29. but you could add them to some .h file and implement lockf() on top of
  30. fcntl(F_SETLK). Enough applications use lockf() that it would be nice to
  31. have, but my preference would be to implement it on top of fcntl() in the
  32. never ceasing effort to minimize kernel bloat ...
  33.  
  34. --
  35. Doug Evans        | With views like these ...
  36. dje@cygnus.com    |                           who needs disclaimers.
  37.