diff options
author | jb <jb@FreeBSD.org> | 1998-04-03 09:11:15 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-04-03 09:11:15 +0000 |
commit | 449d1d74af3d015a43cf3407730ff9c903f51aca (patch) | |
tree | d6c4d6c5b60a75b10aa40cbad55dcfbd1c07990b /share/man/man3/pthread_detach.3 | |
parent | 22df54ec1a94626be9cc0f450c0799d87262d2c3 (diff) | |
download | FreeBSD-src-449d1d74af3d015a43cf3407730ff9c903f51aca.zip FreeBSD-src-449d1d74af3d015a43cf3407730ff9c903f51aca.tar.gz |
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.
Diffstat (limited to 'share/man/man3/pthread_detach.3')
-rw-r--r-- | share/man/man3/pthread_detach.3 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/share/man/man3/pthread_detach.3 b/share/man/man3/pthread_detach.3 index d2a60dd..74ecc84d 100644 --- a/share/man/man3/pthread_detach.3 +++ b/share/man/man3/pthread_detach.3 @@ -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. .\" .\" 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 .Fn pthread_detach 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 .Fn pthread_detach will fail if: @@ -74,6 +76,6 @@ thread ID, .Xr pthread_join 3 .Sh STANDARDS .Fn pthread_detach -is expected to conform to IEEE +conforms to ISO/IEC 9945-1 ANSI/IEEE .Pq Dq Tn POSIX -Std 1003.1c when it is published. +Std 1003.1 Second Edition 1996-07-12 |