Module Name:    src
Committed By:   jruoho
Date:           Fri Jul  9 17:54:08 UTC 2010

Modified Files:
        src/lib/libpthread: pthread_condattr.3

Log Message:
Re-add EINVAL for pthread_condattr_destroy(3) (misread the pthread__error()).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libpthread/pthread_condattr.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpthread/pthread_condattr.3
diff -u src/lib/libpthread/pthread_condattr.3:1.6 src/lib/libpthread/pthread_condattr.3:1.7
--- src/lib/libpthread/pthread_condattr.3:1.6	Fri Jul  9 16:54:30 2010
+++ src/lib/libpthread/pthread_condattr.3	Fri Jul  9 17:54:08 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_condattr.3,v 1.6 2010/07/09 16:54:30 jruoho Exp $
+.\" $NetBSD: pthread_condattr.3,v 1.7 2010/07/09 17:54:08 jruoho Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -78,7 +78,18 @@
 If successful, these functions return 0.
 Otherwise, an error number is returned to indicate the error.
 .Sh ERRORS
-No errors are defined for either function.
+No errors are defined for
+.Fn pthread_condattr_init .
+.Pp
+The
+.Fn pthread_condattr_destroy
+function may fail if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+The value specified by
+.Fa attr
+is invalid.
+.El
 .Sh SEE ALSO
 .Xr pthread_cond_init 3
 .Sh STANDARDS

Reply via email to