Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!decuac!macom1!roth From: roth@macom1.UUCP (dennis paul roth) Newsgroups: news.software.b Subject: patch#8X a patch to patch level 8 of the news for Xenix Message-ID: <254@macom1.UUCP> Date: Thu, 20-Aug-87 16:46:12 EDT Article-I.D.: macom1.254 Posted: Thu Aug 20 16:46:12 1987 Date-Received: Sat, 22-Aug-87 15:16:53 EDT Organization: CENTEL Business Information Systems INC.,Rockville, MD. Lines: 122 Keywords: Xenix news 2.11 B This is my patch to the "B" news for SCO SYS V XENIX. It requires patchlevel 8 as a prerequisite. I do not claim that it is all my own work. It contains many ideas suggested to me by Steve Dyer in private correspondence and a few of my own ideas. The main purpose of this patch is save persons trying to port the "B" news to Xenix from having to duplicate work that has already been done. Do not apply this patch to your source unless you are porting it to a Xenix system. Index: expire.c Prereq: 2.53 0a1,2 > > 20c22 < static char *SccsId = "@(#)expire.c 2.53 4/6/87"; --- > static char *SccsId = "@(#)expire.c 2.53 4/6/87 Xenix version 8/23/87"; 84c86 < typedef struct { --- > /* typedef struct { 87c89 < } datum; --- > } datum; */ 801c803 < if (lockf(LockFd, F_LOCK, 0) < 0) --- > if (locking(LockFd, 3, 0L) < 0) Index: funcs2.c Prereq: 1.20 20c20 < static char *SccsId = "@(#)funcs2.c 1.20 3/20/87"; --- > static char *SccsId = "@(#)funcs2.c 1.20 3/20/87 Xenix Version 8/23/87"; 421c421 < #ifdef DBM --- > /* #ifdef DBM Index: ifuncs.c Prereq: 2.65 0a1 > 19c20 < static char *SccsId = "@(#)ifuncs.c 2.65 4/10/87"; --- > static char *SccsId = "@(#)ifuncs.c 2.65 4/10/87 Xenix version 8/23/87"; 517c518 < typedef struct { --- > /* typedef struct { 520c521 < } datum; --- > } datum; */ 1404c1405 < if (lockf(LockFd, F_LOCK, 0) < 0) --- > if (locking(LockFd, 3, 0L) < 0) Index: inews.c Prereq: 2.80 0a1 > 20c21 < static char *SccsId = "@(#)inews.c 2.80 4/10/87"; --- > static char *SccsId = "@(#)inews.c 2.80 4/10/87 Xenix version 8/23/87"; 145c146 < if (lockf(fileno(actfp), F_TLOCK, 0) < 0) { --- > if (locking(fileno(actfp), 4, 0L) < 0) { 174c175 < (void) lockf(fileno(actfp), F_ULOCK, 0); --- > (void) locking(fileno(actfp), 0, 0L); 1275c1276 < if (lockf(fileno(LockFd), F_TLOCK, 0) < 0) { --- > if (locking(fileno(LockFd), 4, 0L) < 0) { Index: patchlevel.h 1c1 < #define PATCHLEVEL 8 --- > #define PATCHLEVEL 8X 3c3 < #define NEWS_VERSION "B 2.11 4/10/87" --- > #define NEWS_VERSION "B 2.11 4/10/87 Xenix" Index: recnews.c Prereq: 2.13 45c45 < static char *SccsId = "@(#)recnews.c 2.13 10/23/86"; --- > static char *SccsId = "@(#)recnews.c 2.13 10/23/86 Xenix Version 8/23/87"; 275c275 < --- > extern char *index(); 301c301 < if ((p=(char *)index(fbuf,'\n')) != NULL) --- > if ((p=index(fbuf,'\n')) != NULL) Index: sendnews.c Prereq: 2.12 6c6 < static char *SccsId = "@(#)sendnews.c 2.12 3/21/87"; --- > static char *SccsId = "@(#)sendnews.c 2.12 3/21/87 Xenix Version 8/23/87"; 42c42 < printf("/bin/mail %s\n", *argv); --- > printf("/usr/bin/mail %s\n", *argv); 48c48 < (void) sprintf(buffer, "/bin/mail %s", *argv); --- > (void) sprintf(buffer, "/usr/bin/mail %s", *argv); -- Dennis Roth @ CENTEL Information Systems, Inc. 5515 Security Lane, Rockville, Maryland, 20852, (301) 984-3636 uucp: {decuac, grebyn}!macom1!roth internet: macom1!roth@{ decuac.DEC.COM, seismo.CSS.GOV } backdoor: grebyn!macom1!roth@umdddrootor e