Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site qubix.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!decwrl!sun!qubix!msc From: msc@qubix.UUCP (Mark Callow) Newsgroups: net.unix-wizards Subject: rcs problem Message-ID: <971@qubix.UUCP> Date: Fri, 6-Apr-84 21:45:00 EST Article-I.D.: qubix.971 Posted: Fri Apr 6 21:45:00 1984 Date-Received: Sun, 8-Apr-84 01:22:15 EST Organization: Qubix Graphic Systems, Saratoga, CA Lines: 30 The rcs distributed with 4.2 contains the following code fragment (in src/rdiff/diff.c): static char sccsid[] = "@(#)diff.c 4.1 10/9/80"; extern char _sobuf[]; main(argc, argv) int argc; char **argv; { . . setbuf(stdout, _sobuf); . } _sobuf is a buffer declared deep within the stdio library. Needless to say this undocumented buffer does not appear in all stdio libraries as I discovered while porting rcs to Sun Unix 4.2BSD. (It worked in Sun 4.1c). Does anyone know what this setbuf is for? I've just removed it for now. Walter Tichy are you out there? -- From the Tardis of Mark Callow msc@qubix.UUCP, decwrl!qubix!msc@Berkeley.ARPA ...{decvax,ucbvax,ihnp4}!decwrl!qubix!msc, ...{ittvax,amd70}!qubix!msc "I'm a citizen of the Universe, and a gentleman to boot."