openbsd-ports/devel/pth/patches/patch-pthread_h_in
brad a9434885b2 patches to add thread-safe usleep() soft syscall wrapper.
--
From: vedge <vedge2@vedge.com.ar>
2001-05-24 00:07:13 +00:00

20 lines
864 B
Plaintext

$OpenBSD: patch-pthread_h_in,v 1.1 2001/05/24 00:07:15 brad Exp $
--- pthread.h.in.orig Mon May 21 11:18:42 2001
+++ pthread.h.in Mon May 21 11:19:27 2001
@@ -483,6 +483,7 @@
extern pid_t __pthread_fork(void);
extern unsigned int __pthread_sleep(unsigned int);
+extern int __pthread_usleep(unsigned int);
extern int __pthread_sigwait(const sigset_t *, int *);
extern pid_t __pthread_waitpid(pid_t, int *, int);
extern int __pthread_connect(int, struct sockaddr *, socklen_t);
@@ -503,6 +504,7 @@
#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE)
#define fork __pthread_fork
#define sleep __pthread_sleep
+#define usleep __pthread_usleep
#define sigwait __pthread_sigwait
#define waitpid __pthread_waitpid
#define connect __pthread_connect