Project

General

Profile

Bug #5201

_REENTRANT documentation could be better

Added by David Pacheco about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2014-10-01
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Several man pages make reference to -D_REENTRANT, but several of the key ones (including Intro(3), perror(3C), and threads(5)) just say to use the "-mt" compiler option. That's a Studio compiler option, while most illumos users today are using gcc (or potentially clang). The pthread_create man page even #define's _REENTRANT directly in the source, before including pthread.h. It would be better if all these man pages included or pointed to a procedure that works for these other compilers.

Also available in: Atom PDF