diff options
author | 2002-10-30 20:05:11 +0000 | |
---|---|---|
committer | 2002-10-30 20:05:11 +0000 | |
commit | 8f9b1cd670c57fa2e5090416b3f54e4027424745 (patch) | |
tree | 7f495fe6710d49354c6cc748e40b7204d3dff133 /lib/libpthread/uthread/pthread_private.h | |
parent | Implement setresuid(2), getresuid(2), setresgid(2), getresgid(2), based (diff) | |
download | wireguard-openbsd-8f9b1cd670c57fa2e5090416b3f54e4027424745.tar.xz wireguard-openbsd-8f9b1cd670c57fa2e5090416b3f54e4027424745.zip |
removes duplicate functions and factor out common code so the needed (but
missing) _thread_fd_unlock_owned function can be added with minimal pain.
The incorrect special handling of the stdio fds was also removed.
Tested with the libc_r regression tests and the mysql regression tests.
No complaints from any developers
Diffstat (limited to 'lib/libpthread/uthread/pthread_private.h')
-rw-r--r-- | lib/libpthread/uthread/pthread_private.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h index 88341872451..9f64f0328e7 100644 --- a/lib/libpthread/uthread/pthread_private.h +++ b/lib/libpthread/uthread/pthread_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_private.h,v 1.36 2002/10/30 19:11:56 marc Exp $ */ +/* $OpenBSD: pthread_private.h,v 1.37 2002/10/30 20:05:11 marc Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>. * All rights reserved. @@ -487,11 +487,8 @@ enum pthread_state { /* - * File descriptor locking definitions. + * File descriptor locking definitions are defined in "thread_private.h" */ -#define FD_READ 0x1 -#define FD_WRITE 0x2 -#define FD_RDWR (FD_READ | FD_WRITE) /* * File descriptor table structure. @@ -929,13 +926,6 @@ SCLASS struct pthread_cond_attr pthread_condattr_default ; #endif -/* - * Standard I/O file descriptors need special flag treatment since - * setting one to non-blocking does all on *BSD. Sigh. This array - * is used to store the initial flag settings. - */ -SCLASS int _pthread_stdio_flags[3]; - /* File table information: */ SCLASS struct fd_table_entry **_thread_fd_table #ifdef GLOBAL_PTHREAD_PRIVATE |