From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 Date: Thu, 27 Jan 2011 11:41:26 +0200 From: "Kirill A. Shutemov" To: ALT Linux Team development discussions Message-ID: <20110127094126.GA14175@shutemov.name> References: <20110125043718.GA1001@shutemov.name> <20110125053029.GA11026@mw.mithraen.ru> <20110125083055.GA2791@shutemov.name> <20110127090317.GA23190@mw.mithraen.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110127090317.GA23190@mw.mithraen.ru> User-Agent: Mutt/1.5.20 (2010-08-04) Subject: Re: [devel] thread safe fwrite X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 09:41:33 -0000 Archived-At: List-Archive: List-Post: On Thu, Jan 27, 2011 at 12:03:17PM +0300, Денис Смирнов wrote: > Является ли fwrite если я пишу в режиме append thread safe? (с трудом прочитал. Запятых недосыпали.) POSIX standard requires that C stdio FILE* operations are atomic. POSIX-conforming C libraries (e.g, on Solaris and GNU/Linux) have an internal mutex to serialize operations on FILE*s. http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_concurrency.html -- Kirill A. Shutemov