syslog() reentrant when compiling with -pthread?

From: Marc Balmer (marc_at_msys.ch)
Date: 10/06/04

  • Next message: Dan Nelson: "Re: syslog() reentrant when compiling with -pthread?"
    To: freebsd-hackers@freebsd.org
    Date: Wed, 6 Oct 2004 16:28:32 +0200
    
    

    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"


  • Next message: Dan Nelson: "Re: syslog() reentrant when compiling with -pthread?"

    Relevant Pages

    • Re: syslog() reentrant when compiling with -pthread?
      ... > I am a long time Unix developer but new with FreeBSD. ... > is only for discussion of FreeBSD system development... ... > syslog_rto do thread safe logging (the software in question is a ... > As syslog() seems to part of libc on FreeBSD, ...
      (freebsd-hackers)
    • Re: Postgresql-8.0.3
      ... % two nights ago) and it's failing, ... % is not thread safe. ... multi-threaded clients under version 4 of freebsd (and if you are, ... perhaps you should upgrade your freebsd to v5.4). ...
      (comp.unix.bsd.freebsd.misc)
    • Re: syslog() reentrant when compiling with -pthread?
      ... Marc Balmer wrote: ... > I am a long time Unix developer but new with FreeBSD. ... > is only for discussion of FreeBSD system development... ... > that syslogis indeed thread safe on FreeBSD when compiling with the ...
      (freebsd-hackers)
    • Re: Open Vs Free BSD
      ... NetBSD: Run on any hardware ... OpenBSD: ... FreeBSD: ... I like NetBSD (because of the supported platforms - especially RiscPCs - and the clean implementation). ...
      (freebsd-stable)
    • Re: Fwd: That whole "Linux stealing our code" thing
      ... The myth that Theo understands dual licensing? ... It's no longer dual licenced in the FreeBSD tree because the FreeBSD ... FreeBSD doesn't have Reyk's athHAL from OpenBSD, ... dual licenced files planned to make GPL-only ...
      (Linux-Kernel)