_THREAD_SAFE and gcc man page

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Tue Jun 17 13:32:55 PDT 2003


The following changed to include/stdio.h

  revision 1.25
  date: 2001/01/24 13:01:47;  author: deischen;  state: Exp;  lines: +5 -55
  Add a lock to DIR to make telldir and friends MT-safe.

  Clean up stdio.h a bit and remove _THREAD_SAFE.  Some of the
  usual macros getc, putc, getchar, putchar are no longer macros.

  Approved by:    -arch

probably also should have removed the following part of the GCC man page:

  FreeBSD SPECIFIC OPTIONS

       -pthread
           Link a user-threaded process against libc_r instead of libc. Ob-
           jects linked into user-threaded  processes  should  be  compiled
           with -D_THREAD_SAFE.

or at least the -D_THREAD_SAFE part of it.

Could one of you please take care of that? (GCC maintainers Cc:ed.)

Gerald

PS: This is now <http://www.freebsd.org/cgi/query-pr.cgi?pr=docs/36167>.
-- 
Gerald "Jerry"   pfeifer at dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/


More information about the freebsd-arch mailing list