UNIX 4.2 file system query

Guy Harris guy at sun.uucp
Sat Apr 27 18:29:15 AEST 1985


> Having a file open in append mode (O_APPEND in BSD 4.2 and FAPPEND
> in Sys V) ...

No, please, O_APPEND both in 4.2BSD and System III/V.  The various flavors
of UNIX differ in too many ways already; let's be grateful that there's one
extension which was done the same way in more than one variant...
(<fcntl.h>, which is what you're supposed to include, defines O_APPEND;
<sys/file.h>, which you're not supposed to include unless you're rummaging
through the kernel's file descriptor table, defines FAPPEND.  On 4.2BSD they
reference one another, so you get both with either include.)

	Guy Harris



More information about the Comp.unix mailing list