summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/pthread_private.h
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2003-02-14 03:58:42 +0000
committermarc <marc@openbsd.org>2003-02-14 03:58:42 +0000
commit04397332fe2f3ba54d8fe0b9d437fe75b9e1b00b (patch)
tree42c24a47ced6db25c16d7aab8a2bc7ac8dadbf43 /lib/libpthread/uthread/pthread_private.h
parentwhite space (diff)
downloadwireguard-openbsd-04397332fe2f3ba54d8fe0b9d437fe75b9e1b00b.tar.xz
wireguard-openbsd-04397332fe2f3ba54d8fe0b9d437fe75b9e1b00b.zip
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);