Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)

C Standard POSIX Thread Functions: Differences Between
the Draft 4 and IEEE 1003.1c 1995 Standards
This appendix describes the differences between the Draft 4 standard and IEEE 1003.1c standard,
1995, as implemented in the Standard POSIX Threads library (T1248).
Reference Pages for Thread Functions
For full syntax and usage information about the Standard POSIX Threads functions and the
SERVERCLASS_SEND and TMF transaction demarcation jacket routines, see the Open System
Services System Calls Reference Manual or the Open System Services Library Calls Reference
Manual.
The Standard POSIX Threads library does not support every thread function listed in the Standard;
for example, the various pthread_rwlock, pthread_nsg, pthread_rad, and pthread_exc
functions are not included in the Standard POSIX Threads library. Many of the supported functions
are changed as well. Differences between the Draft 4 standard and the IEEE 1003.1c 1995
standard, as implemented in the Standard POSIX Threads library (T1248), are described in the
tables in this appendix.
Also, the error values supported by Tru64 UNIX contain extensions that are not supported by
Standard POSIX Threads. Supported error values are those listed in the Standard document.
All the thread functions are listed in the Open System Services Programmer’s Guide.
Changed Thread Functions
This subsection lists the thread functions in groups according to differences between the following
two standards:
The IEEE 1003.1c standard, 1995. (With some exceptions, the Standard POSIX Threads
library (T1248) adheres to this standard, officially listed as International Standard ISO/IEC
9945-1; 1996 (E) IEEE Std. 1003.1,1996 [Incorporating ANSI/IEEE Stds 1003.1-1990,
1003.1b-1993, 1003.1c-1995, and 1003.1i-1995.]). For standards conformance information
for a function, see the reference page for that function either online or in the Open System
Services System Calls Reference Manual or the Open System Services Library Calls Reference
Manual.
Draft 4 of the IEEE standard. (DCE Threads products T5819 and T8403 adhere to the Draft
4 standard.)
The functions are grouped into the following tables:
Table 17: “Replaced or Renamed Thread Functions” (page 206)
Table 18: “Thread Functions With Changed Parameters” (page 206)
Table 19: “New Thread Functions” (page 207)
Table 20: “Thread Functions With Changes to Return Values Only” (page 207)
Table 21: “Thread Functions With Changes to Return Values Among Other Changes (page 209)
Table 22: “Thread Functions With Miscellaneous Changes” (page 212)
Table 23: “Thread Functions With No Changes” (page 212)
Table 24: “Thread Functions Not Supported in the Standard POSIX Threads Library” (page 212)
Table 25: “Optional Thread Functions Supported in Standard POSIX Threads” (page 214)
Table 26: “Obsolete and Replacement APIs in T1248 POSIX Threads” (page 214)
Table 17 lists the Draft 4 thread functions that have been either replaced by new standard functions
or renamed in Standard POSIX Threads.
Reference Pages for Thread Functions 205