From bb8a4204244b527f583dd037bdbbb8e1d88eed63 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Fri, 3 Apr 1998 09:11:15 +0000 Subject: [PATCH] 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/libc_r/man/pthread_detach.3 | 10 ++++++---- lib/libpthread/man/pthread_detach.3 | 10 ++++++---- share/man/man3/pthread_detach.3 | 10 ++++++---- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/libc_r/man/pthread_detach.3 b/lib/libc_r/man/pthread_detach.3 index d2a60dd3bc8..74ecc84d505 100644 --- a/lib/libc_r/man/pthread_detach.3 +++ b/lib/libc_r/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 diff --git a/lib/libpthread/man/pthread_detach.3 b/lib/libpthread/man/pthread_detach.3 index d2a60dd3bc8..74ecc84d505 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 diff --git a/share/man/man3/pthread_detach.3 b/share/man/man3/pthread_detach.3 index d2a60dd3bc8..74ecc84d505 100644 --- a/share/man/man3/pthread_detach.3 +++ b/share/man/man3/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