From 449d1d74af3d015a43cf3407730ff9c903f51aca Mon Sep 17 00:00:00 2001 From: jb Date: Fri, 3 Apr 1998 09:11:15 +0000 Subject: 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. --- lib/libpthread/man/pthread_detach.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/libpthread') diff --git a/lib/libpthread/man/pthread_detach.3 b/lib/libpthread/man/pthread_detach.3 index d2a60dd..74ecc84d 100644 --- a/lib/libpthread/man/pthread_detach.3 +++ b/lib/libpthread/man/pthread_detach.3 @@ -1,4 +1,4 @@ -.\" Copyright (c) 1996 John Birrell . +.\" Copyright (c) 1996-1998 John Birrell . .\" 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 -- cgit v1.1