Date: Wed, 06 Oct 2004 10:35:21 -0700 From: Julian Elischer <julian@elischer.org> To: Marc Balmer <marc@msys.ch> Cc: freebsd-hackers@freebsd.org Subject: Re: syslog() reentrant when compiling with -pthread? Message-ID: <41642CD9.7020302@elischer.org> In-Reply-To: <FFEC3743-17A3-11D9-BB63-0003938168B2@msys.ch> References: <FFEC3743-17A3-11D9-BB63-0003938168B2@msys.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
you probably want Threads@freebsd.org Marc Balmer wrote: > 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 > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41642CD9.7020302>