Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!ima!spdcc!dyer From: dyer@spdcc.UUCP Newsgroups: news.software.b Subject: lockf invocation bug on 16bit machines Message-ID: <7@spdcc.COM> Date: Sat, 11-Apr-87 01:17:33 EST Article-I.D.: spdcc.7 Posted: Sat Apr 11 01:17:33 1987 Date-Received: Sat, 11-Apr-87 21:37:54 EST Reply-To: dyer@spdcc.COM (Steve Dyer) Organization: S.P. Dyer Computer Consulting, Cambridge MA Lines: 15 Version: news 2.11 patch 7 (and earlier?) lockf's calling sequence is lockf(fildes, function, size) long size; In expire.c, ifuncs.c and inews.c, lockf is called with a 3rd argument of 0, not (long) 0 or 0L. On a 16-bit machine such as XENIX 286, this is open to failure since a word of garbage will be on the stack. The fix is obvious. -- --- Steve Dyer dyer@harvard.harvard.edu dyer@spdcc.COM aka {ihnp4,harvard,linus,ima,bbn,halleys}!spdcc!dyer