Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!brl-adm!brl-smoke!smoke!moi%brandeis.csnet@csnet-relay.arpa From: moi%brandeis.csnet@csnet-relay.arpa Newsgroups: net.unix-wizards Subject: a question on open() and lseek() Message-ID: <2594@brl-smoke.ARPA> Date: Sun, 13-Apr-86 09:23:04 EST Article-I.D.: brl-smok.2594 Posted: Sun Apr 13 09:23:04 1986 Date-Received: Sun, 20-Apr-86 05:17:05 EST Sender: news@brl-smoke.ARPA Lines: 15 The manual page for "open()" mentions that one of the flags one can specify with the call is O_APPEND. It's supposed to request that all "write()"s be appended to the end of the file. Is there any reason to use the sequence: f = open( file, O_WRONLY ); lseek( f, 0, L_XTND ); instead of the single call: f = open( file, O_WRONLY | O_APPEND ); I saw the sequence used in a section of code where the single call would make sense. Moises Lejter moi%brandeis@csnet-relay