Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: fopen ( ..., "a" ) --- how does the "a" work? Message-ID: <21152@mimsy.umd.edu> Date: 7 Dec 89 13:11:14 GMT References: <3250@hub.UUCP> <895@hsi86.hsi.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 14 In article <895@hsi86.hsi.UUCP> stevens@hsi.UUCP (Richard Stevens) writes: >... Interesting, however, is that the 4.3BSD source differs. It does >an lseek to the EOF when fopen is called, and that's it. 4.3 does >have an O_APPEND option to open, but it doesn't appear to be used. This is scheduled to change (to match the wording in the ANSI standard). I also wrote code to assert FAPPEND mode on fdopen(fd, "a"). This is a bit nastier, but would seem to be required for reasons of sanity. I do not, however, clear FAPPEND on other fdopen calls. What does SysV do? What does the SVID say? -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris