Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!homxb!mtuxo!mtune!codas!killer!tness1!petro!jrb From: jrb@petro.UUCP (Jon Boede) Newsgroups: comp.lang.c Subject: BSD ?= SysV File Locking Message-ID: <463@petro.UUCP> Date: Fri, 16-Oct-87 00:02:36 EDT Article-I.D.: petro.463 Posted: Fri Oct 16 00:02:36 1987 Date-Received: Wed, 21-Oct-87 23:51:23 EDT Sender: news@petro.UUCP Distribution: na Organization: G.M. Andreen & Associates, Inc. San Antonio, Texas Lines: 21 Keywords: lockf Summary: Does BSD use lockf()? I have, for some time now, been using the library proceedure lockf() to do my file locking and have found it a wonderful and elegant mechanism for doing so (no, really :-) However, I have only been doing this on SysV machines and now wonder how portable my code will be to BSD UNIX. Does BSD use the lockf() convention like SysV? I've localized functions using it in hopes that if it didn't I'd only have to fiddle with one area. If it doesn't, what does the file locking under BSD 4.3 look like? PS. If anyone has a Tandy 6000 (68000 based XENIX 3.1) I have an assembler patch that fixes the _xlockin[g] dain-bramage in /lib/libc.a and would be happy to mail it to you if you'd like (it's about 5 lines). Jon -- Jon Boede ...!{gatech,ihnp4,ssbn,swrinde,tness1,utanes}!petro!jrb 512/599-1847 -^^^^^^- 2555 N.E. Loop 410, #1403, 78217 "People who are incapable of making decisions are the ones who hit those barrels at freeway exits."