diff options
Diffstat (limited to 'devel/pth/patches/patch-ad')
-rw-r--r-- | devel/pth/patches/patch-ad | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/devel/pth/patches/patch-ad b/devel/pth/patches/patch-ad index b5bee8266e1..4b24e1603a0 100644 --- a/devel/pth/patches/patch-ad +++ b/devel/pth/patches/patch-ad @@ -1,8 +1,33 @@ -$NetBSD: patch-ad,v 1.1 2001/05/14 20:21:20 skrll Exp $ +$NetBSD: patch-ad,v 1.2 2002/10/14 11:49:56 skrll Exp $ ---- pth_syscall.c.orig Sat Mar 24 14:50:03 2001 +--- pth_syscall.c.orig Sun Jan 27 11:03:41 2002 +++ pth_syscall.c -@@ -85,11 +85,13 @@ +@@ -63,6 +63,24 @@ pid_t fork(void) + } + #endif + ++/* Pth hard wrapper for nanosleep(2) [internally fully emulated] */ ++#if PTH_SYSCALL_HARD ++int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) ++{ ++ pth_implicit_init(); ++ return pth_nanosleep(rqtp, rmtp); ++} ++#endif ++ ++/* Pth hard wrapper for usleep(3) [internally fully emulated] */ ++#if PTH_SYSCALL_HARD ++int usleep(useconds_t usec) ++{ ++ pth_implicit_init(); ++ return pth_usleep(usec); ++} ++#endif ++ + /* Pth hard wrapper for sleep(3) [internally fully emulated] */ + #if PTH_SYSCALL_HARD + unsigned int sleep(unsigned int sec) +@@ -85,11 +103,13 @@ int system(const char *cmd) #if cpp #if defined(SYS_sigprocmask) #define PTH_SC_sigprocmask(a1,a2,a3) ((int)syscall(SYS_sigprocmask,(a1),(a2),(a3))) @@ -17,7 +42,7 @@ $NetBSD: patch-ad,v 1.1 2001/05/14 20:21:20 skrll Exp $ int sigprocmask(int how, const sigset_t *set, sigset_t *oset) { pth_implicit_init(); -@@ -119,6 +121,22 @@ +@@ -119,6 +139,22 @@ pid_t waitpid(pid_t wpid, int *status, i { pth_implicit_init(); return pth_waitpid(wpid, status, options); |