This function compiles with the standard, so say so.
Add a note about not touching errno and warn about previous drafts of the standard which changed the level of indirection to the thread argument. POSIX had a bit of trouble deciding what to do. So anyone coding to both draft 4 and draft 10 (the final draft) will get burnt by this function. I did. Grrr.
This commit is contained in:
parent
0c168a81b5
commit
bb8a420424
|
@ -1,4 +1,4 @@
|
||||||
.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>.
|
.\" Copyright (c) 1996-1998 John Birrell <jb@cimlogic.com.au>.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -55,7 +55,9 @@ calls on the same target thread is unspecified.
|
||||||
If successful, the
|
If successful, the
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
function will return zero. Otherwise an error number will be returned to
|
function will return zero. Otherwise an error number will be returned to
|
||||||
indicate the error.
|
indicate the error. Note that the function does not change the value
|
||||||
|
of errno as it did for some drafts of the standard. These early drafts
|
||||||
|
also passed a pointer to pthread_t as the argument. Beware!
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
will fail if:
|
will fail if:
|
||||||
|
@ -74,6 +76,6 @@ thread ID,
|
||||||
.Xr pthread_join 3
|
.Xr pthread_join 3
|
||||||
.Sh STANDARDS
|
.Sh STANDARDS
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
is expected to conform to IEEE
|
conforms to ISO/IEC 9945-1 ANSI/IEEE
|
||||||
.Pq Dq Tn POSIX
|
.Pq Dq Tn POSIX
|
||||||
Std 1003.1c when it is published.
|
Std 1003.1 Second Edition 1996-07-12
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>.
|
.\" Copyright (c) 1996-1998 John Birrell <jb@cimlogic.com.au>.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -55,7 +55,9 @@ calls on the same target thread is unspecified.
|
||||||
If successful, the
|
If successful, the
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
function will return zero. Otherwise an error number will be returned to
|
function will return zero. Otherwise an error number will be returned to
|
||||||
indicate the error.
|
indicate the error. Note that the function does not change the value
|
||||||
|
of errno as it did for some drafts of the standard. These early drafts
|
||||||
|
also passed a pointer to pthread_t as the argument. Beware!
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
will fail if:
|
will fail if:
|
||||||
|
@ -74,6 +76,6 @@ thread ID,
|
||||||
.Xr pthread_join 3
|
.Xr pthread_join 3
|
||||||
.Sh STANDARDS
|
.Sh STANDARDS
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
is expected to conform to IEEE
|
conforms to ISO/IEC 9945-1 ANSI/IEEE
|
||||||
.Pq Dq Tn POSIX
|
.Pq Dq Tn POSIX
|
||||||
Std 1003.1c when it is published.
|
Std 1003.1 Second Edition 1996-07-12
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>.
|
.\" Copyright (c) 1996-1998 John Birrell <jb@cimlogic.com.au>.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -55,7 +55,9 @@ calls on the same target thread is unspecified.
|
||||||
If successful, the
|
If successful, the
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
function will return zero. Otherwise an error number will be returned to
|
function will return zero. Otherwise an error number will be returned to
|
||||||
indicate the error.
|
indicate the error. Note that the function does not change the value
|
||||||
|
of errno as it did for some drafts of the standard. These early drafts
|
||||||
|
also passed a pointer to pthread_t as the argument. Beware!
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
will fail if:
|
will fail if:
|
||||||
|
@ -74,6 +76,6 @@ thread ID,
|
||||||
.Xr pthread_join 3
|
.Xr pthread_join 3
|
||||||
.Sh STANDARDS
|
.Sh STANDARDS
|
||||||
.Fn pthread_detach
|
.Fn pthread_detach
|
||||||
is expected to conform to IEEE
|
conforms to ISO/IEC 9945-1 ANSI/IEEE
|
||||||
.Pq Dq Tn POSIX
|
.Pq Dq Tn POSIX
|
||||||
Std 1003.1c when it is published.
|
Std 1003.1 Second Edition 1996-07-12
|
||||||
|
|
Loading…
Reference in New Issue