Project

General

Profile

Actions

Bug #5201

open

_REENTRANT documentation could be better

Added by David Pacheco over 8 years ago.

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

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

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.

No data to display

Actions

Also available in: Atom PDF