Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!paul From: paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO) Newsgroups: comp.unix.programmer Subject: need #defines to make flock use lockf Message-ID: <1990Oct2.213652.20025@ux1.cso.uiuc.edu> Date: 2 Oct 90 21:36:52 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 11 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@uxc.cso.uiuc.edu US Mail: UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL 61801-2910