need #defines to make flock use lockf

Paul Pomes - UofIllinois CSO paul at uxc.cso.uiuc.edu
Wed Oct 3 07:36:52 AEST 1990


I have a program that makes use of flock() scattered around several files.
Rather than cluttering the code with #ifdefs for both flock() and lockf(),
I'd like to redefine the flock calls in a common include file to use lockf
instead when #ifndef BSD is true.  Has anyone already created such a beast?

/pbp
--
         Paul Pomes

UUCP: {att,iuvax,uunet}!uiucuxc!paul   Internet, BITNET: paul at uxc.cso.uiuc.edu
US Mail:  UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL  61801-2910



More information about the Comp.unix.programmer mailing list