summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread/pthread_private.h
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2003-02-14 03:58:43 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2003-02-14 03:58:43 +0000
commitb01693ca1d1c5a0ba958682d11729c5b100a0669 (patch)
tree2ebb2affcb5ce542561c6fb8255090d6552f6046 /lib/libpthread/uthread/pthread_private.h
parent312b62ee1af124aafa5a9451db4d79c571c39776 (diff)
fix bug that would leave an FD locked if dup'd, then closed.
Also, for safety lock the _thread_fd_table when removing entries.
Diffstat (limited to 'lib/libpthread/uthread/pthread_private.h')
-rw-r--r--lib/libpthread/uthread/pthread_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h
index 9d5b9bf2747..4a244e89075 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.44 2003/02/04 22:14:27 marc Exp $ */
+/* $OpenBSD: pthread_private.h,v 1.45 2003/02/14 03:58:42 marc Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -1112,6 +1112,7 @@ void _thread_seterrno(pthread_t,int);
void _thread_fd_init(void);
int _thread_fd_table_init(int);
int _thread_fd_table_dup(int, int);
+void _thread_fd_table_remove(int);
void _thread_fd_unlock_owned(pthread_t);
void _thread_fd_unlock_thread(struct pthread *, int, int, const char *, int);
pthread_addr_t _thread_gc(pthread_addr_t);