summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2012-03-22 19:44:54 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2012-03-22 19:44:54 +0000
commit5cb9bff611e21ec3f19d6cc8ce68f415ab0539ec (patch)
treecfe1a0629756a76dd775fdb76039a70093558f4b /lib
parentf9dcfc1cdb498289601b727f1a223fd95be4c829 (diff)
Remove man pages for removed non-portable functions. okay jmc@
Diffstat (limited to 'lib')
-rw-r--r--lib/libpthread/man/Makefile.inc8
-rw-r--r--lib/libpthread/man/pthread_single_np.341
-rw-r--r--lib/libpthread/man/pthread_suspend_np.386
-rw-r--r--lib/libpthread/man/pthreads.328
4 files changed, 4 insertions, 159 deletions
diff --git a/lib/libpthread/man/Makefile.inc b/lib/libpthread/man/Makefile.inc
index ba55564d62e..0ed97110373 100644
--- a/lib/libpthread/man/Makefile.inc
+++ b/lib/libpthread/man/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.30 2012/03/03 22:48:42 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.31 2012/03/22 19:44:53 kurt Exp $
# $FreeBSD: Makefile.inc,v 1.6 1999/08/28 00:03:02 peter Exp $
# POSIX thread man files
@@ -54,9 +54,7 @@ MAN+= \
pthread_set_name_np.3 \
pthread_setspecific.3 \
pthread_sigmask.3 \
- pthread_single_np.3 \
pthread_stackseg_np.3 \
- pthread_suspend_np.3 \
pthread_testcancel.3 \
pthread_yield.3 \
sched_get_priority_min.3 \
@@ -81,10 +79,6 @@ MLINKS+=flockfile.3 funlockfile.3 \
pthread_rwlock_wrlock.3 pthread_rwlock_trywrlock.3 \
getc_unlocked.3 getchar_unlocked.3 \
putc_unlocked.3 putchar_unlocked.3 \
- pthread_suspend_np.3 pthread_suspend_all_np.3 \
- pthread_suspend_np.3 pthread_resume_all_np.3 \
- pthread_suspend_np.3 pthread_resume_np.3 \
- pthread_single_np.3 pthread_multi_np.3 \
pthread_attr_init.3 pthread_attr_destroy.3 \
pthread_attr_setstack.3 pthread_attr_getstack.3 \
pthread_attr_setstackaddr.3 pthread_attr_getstackaddr.3 \
diff --git a/lib/libpthread/man/pthread_single_np.3 b/lib/libpthread/man/pthread_single_np.3
deleted file mode 100644
index 3a12f490178..00000000000
--- a/lib/libpthread/man/pthread_single_np.3
+++ /dev/null
@@ -1,41 +0,0 @@
-.\" $OpenBSD: pthread_single_np.3,v 1.4 2007/05/31 19:19:37 jmc Exp $
-.\" David Leonard <d@openbsd.org>, 1999. Public domain.
-.Dd $Mdocdate: May 31 2007 $
-.Dt PTHREAD_SINGLE_NP 3
-.Os
-.Sh NAME
-.Nm pthread_single_np ,
-.Nm pthread_multi_np
-.Nd switch thread scheduling mode
-.Sh SYNOPSIS
-.Fd #include <pthread.h>
-.Fd #include <pthread_np.h>
-.Ft int
-.Fn pthread_single_np void
-.Ft int
-.Fn pthread_multi_np void
-.Sh DESCRIPTION
-The
-.Fn pthread_single_np
-function causes the process to
-enter single-threaded (non-POSIX) scheduling mode.
-.Pp
-The
-.Fn pthread_multi_np
-function causes the process to
-return to multi-threaded scheduling mode.
-.Sh RETURN VALUES
-The
-.Fn pthread_single_np
-and
-.Fn pthread_multi_np
-functions return zero on success, or an error number on failure.
-.Sh SEE ALSO
-.Xr pthreads 3
-.Sh STANDARDS
-The
-.Fn pthread_single_np
-and
-.Fn pthread_multi_np
-functions are non-portable and may not be supported with the above
-semantics on other POSIX systems.
diff --git a/lib/libpthread/man/pthread_suspend_np.3 b/lib/libpthread/man/pthread_suspend_np.3
deleted file mode 100644
index 1bc4fdf0dcf..00000000000
--- a/lib/libpthread/man/pthread_suspend_np.3
+++ /dev/null
@@ -1,86 +0,0 @@
-.\" $OpenBSD: pthread_suspend_np.3,v 1.4 2007/05/31 19:19:37 jmc Exp $
-.\" David Leonard <d@openbsd.org>, 1999. Public domain.
-.Dd $Mdocdate: May 31 2007 $
-.Dt PTHREAD_SUSPEND_NP 3
-.Os
-.Sh NAME
-.Nm pthread_suspend_np ,
-.Nm pthread_suspend_all_np ,
-.Nm pthread_resume_np ,
-.Nm pthread_resume_all_np
-.Nd suspend and resume thread(s)
-.Sh SYNOPSIS
-.Fd #include <pthread.h>
-.Fd #include <pthread_np.h>
-.Ft int
-.Fn pthread_suspend_np "pthread_t thread"
-.Ft void
-.Fn pthread_suspend_all_np void
-.Ft int
-.Fn pthread_resume_np "pthread_t thread"
-.Ft void
-.Fn pthread_resume_all_np void
-.Sh DESCRIPTION
-The
-.Fn pthread_suspend_np
-function interrupts the given thread and places it in a suspended state.
-.Pp
-The
-.Fn pthread_suspend_all_np
-function interrupts all threads except the current thread and places them in a suspended state.
-.Pp
-The
-.Fn pthread_resume_np
-function resumes a thread suspended with
-.Fn pthread_suspend_np
-or
-.Fn pthread_suspend_all_np .
-.Pp
-The
-.Fn pthread_resume_all_np
-function resumes all threads suspended with
-.Fn pthread_suspend_np
-or
-.Fn pthread_suspend_all_np .
-.Pp
-The
-.Fn pthread_resume_np
-and
-.Fn pthread_resume_all_np
-functions have no effect on threads that have not been suspended.
-.Pp
-Suspending and resuming a thread has an effect similar to that of
-receiving a signal,
-namely that resumed system calls will return an error value of
-.Er EINTR .
-.Sh RETURN VALUES
-The
-.Fn pthread_suspend_np
-and
-.Fn pthread_resume_np
-functions fail if:
-.Bl -tag -width Er
-.It Bq Er ESRCH
-No thread could be found corresponding to that specified by the given
-thread ID.
-.El
-.Pp
-The
-.Fn pthread_suspend_np
-function fails if:
-.Bl -tag -width Er
-.It Bq Er EDEADLK
-Attempt to suspend the current thread.
-.El
-.Sh SEE ALSO
-.Xr pthread_cancel 3 ,
-.Xr pthreads 3
-.Sh STANDARDS
-The
-.Fn pthread_suspend_np ,
-.Fn pthread_suspend_all_np ,
-.Fn pthread_resume_np
-and
-.Fn pthread_resume_all_np
-functions are non-portable and may not be supported with the above
-semantics on other POSIX systems.
diff --git a/lib/libpthread/man/pthreads.3 b/lib/libpthread/man/pthreads.3
index 984a1c1241b..365aa3f9549 100644
--- a/lib/libpthread/man/pthreads.3
+++ b/lib/libpthread/man/pthreads.3
@@ -1,6 +1,6 @@
-.\" $OpenBSD: pthreads.3,v 1.32 2012/02/25 07:54:32 guenther Exp $
+.\" $OpenBSD: pthreads.3,v 1.33 2012/03/22 19:44:53 kurt Exp $
.\" David Leonard <d@openbsd.org>, 1998. Public domain.
-.Dd $Mdocdate: February 25 2012 $
+.Dd $Mdocdate: March 22 2012 $
.Dt PTHREADS 3
.Os
.Sh NAME
@@ -161,25 +161,13 @@ Mutex attribute operations.
.Ss Non Portable Extensions
The functions available are as follows:
.Pp
-.Bl -tag -width "pthread_suspend_all_np()" -compact
+.Bl -tag -width "pthread_set_name_np()" -compact
.It Fn pthread_main_np
Identify the main thread.
.It Fn pthread_set_name_np
Set the name of a thread.
-.It Fn pthread_single_np
-Switch thread scheduling mode.
-.It Fn pthread_multi_np
-Switch thread scheduling mode.
.It Fn pthread_stackseg_np
Return stack size and location.
-.It Fn pthread_suspend_np
-Suspend given thread.
-.It Fn pthread_suspend_all_np
-Suspend all threads except current thread.
-.It Fn pthread_resume_np
-Resumes given thread.
-.It Fn pthread_resume_all_np
-Resumes all suspended threads.
.It Fn pthread_yield
Yield control of the current thread.
.El
@@ -326,11 +314,6 @@ or
.Xr nanosleep 2 .
.It spinblock
Waiting for a machine-level atomic lock.
-.It suspended
-Suspended with
-.Xr pthread_suspend_np 3
-or
-.Xr pthread_suspend_all_np 3 .
.It wait_wait
Executing
.Xr wait4 2
@@ -545,8 +528,6 @@ environment variable.
.Xr pthread_mutex_unlock 3 ,
.Xr pthread_mutexattr 3 ,
.Xr pthread_once 3 ,
-.Xr pthread_resume_all_np 3 ,
-.Xr pthread_resume_np 3 ,
.Xr pthread_rwlock_destroy 3 ,
.Xr pthread_rwlock_init 3 ,
.Xr pthread_rwlock_rdlock 3 ,
@@ -561,10 +542,7 @@ environment variable.
.Xr pthread_set_name_np 3 ,
.Xr pthread_setspecific 3 ,
.Xr pthread_sigmask 3 ,
-.Xr pthread_single_np 3 ,
.Xr pthread_stackseg_np 3 ,
-.Xr pthread_suspend_all_np 3 ,
-.Xr pthread_suspend_np 3 ,
.Xr pthread_testcancel 3 ,
.Xr pthread_yield 3
.Sh STANDARDS