From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 6 14:28:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D3116A4CE for ; Wed, 6 Oct 2004 14:28:35 +0000 (GMT) Received: from bragi.msys.ch (bragi.msys.ch [157.161.101.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E2B443D45 for ; Wed, 6 Oct 2004 14:28:34 +0000 (GMT) (envelope-from marc@msys.ch) Received: from [192.168.1.26] (idun [157.161.101.130])i96ESWVp005596 for ; Wed, 6 Oct 2004 16:28:32 +0200 Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-hackers@freebsd.org From: Marc Balmer Date: Wed, 6 Oct 2004 16:28:32 +0200 X-Mailer: Apple Mail (2.619) Subject: syslog() reentrant when compiling with -pthread? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 14:28:35 -0000 Hi I am a long time Unix developer but new with FreeBSD. I worked the last years mostly with OpenBSD. First I am overwhelmed by the number of mailing lists you guys provide. Second I am not sure if I picked the right one ;-) So please direct me to the right place if this list is only for discussion of FreeBSD system development... My question regarding thread-safeness of syslog(): On OpenBSD I used syslog_r() to do thread safe logging (the software in question is a sendmail milter, which runs multithreaded). FreeBSD does not have these functions, but the cc man page states that compiling with "-pthread" links in the thread safe libc_r library instead of libc. As syslog() seems to part of libc on FreeBSD, is it safe to assume that syslog() is indeed thread safe on FreeBSD when compiling with the -pthread switch? Thanks, Marc Balmer