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