Module Name: src
Committed By: jruoho
Date: Wed Jul 7 08:41:11 UTC 2010
Modified Files:
src/lib/libpthread: pthread_attr.3
Log Message:
Remove pthread_attr_getscope() and pthread_attr_setscope().
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libpthread/pthread_attr.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_attr.3
diff -u src/lib/libpthread/pthread_attr.3:1.11 src/lib/libpthread/pthread_attr.3:1.12
--- src/lib/libpthread/pthread_attr.3:1.11 Mon Oct 5 23:37:01 2009
+++ src/lib/libpthread/pthread_attr.3 Wed Jul 7 08:41:11 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_attr.3,v 1.11 2009/10/05 23:37:01 rmind Exp $
+.\" $NetBSD: pthread_attr.3,v 1.12 2010/07/07 08:41:11 jruoho Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -72,9 +72,7 @@
.Nm pthread_attr_setschedparam ,
.Nm pthread_attr_getschedparam
.Nm pthread_attr_setschedpolicy ,
-.Nm pthread_attr_getschedpolicy ,
-.Nm pthread_attr_setscope ,
-.Nm pthread_attr_getscope
+.Nm pthread_attr_getschedpolicy
.Nd thread attribute operations
.Sh LIBRARY
.Lb libpthread
@@ -112,10 +110,6 @@
.Fn pthread_attr_setschedpolicy "pthread_attr_t *attr" "int policy"
.Ft int
.Fn pthread_attr_getschedpolicy "const pthread_attr_t * restrict attr" "int * restrict policy"
-.Ft int
-.Fn pthread_attr_setscope "pthread_attr_t *attr" "int contentionscope"
-.Ft int
-.Fn pthread_attr_getscope "const pthread_attr_t * restrict attr" "int * restrict contentionscope"
.Sh DESCRIPTION
Thread attributes are used to specify parameters to
.Fn pthread_create .
@@ -228,17 +222,6 @@
Invalid or unsupported value for
.Fa policy .
.El
-.Pp
-.Fn pthread_attr_setscope
-may fail if:
-.Bl -tag -width Er
-.It Bq Er EINVAL
-Invalid value for
-.Fa attr .
-.It Bq Er ENOTSUP
-Invalid or unsupported value for
-.Fa contentionscope .
-.El
.Sh SEE ALSO
.Xr pthread_create 3 ,
.Xr pthread_join 3
@@ -258,9 +241,7 @@
and
.Fn pthread_attr_getschedparam
.Fn pthread_attr_setschedpolicy ,
-.Fn pthread_attr_getschedpolicy ,
-.Fn pthread_attr_setscope ,
and
-.Fn pthread_attr_getscope
+.Fn pthread_attr_getschedpolicy
conform to
.St -p1003.1-96 .