diff options
author | skrll <skrll> | 2001-04-12 15:53:30 +0000 |
---|---|---|
committer | skrll <skrll> | 2001-04-12 15:53:30 +0000 |
commit | 4e18354da00e0696e7351817373ceb9eeac645f0 (patch) | |
tree | 842746c2adc42703d9a8dabe90c93d9fe962bd21 /devel/unproven-pthreads/patches | |
parent | fc472c0f7b1f5bac0f0d5846da34c8604f92d740 (diff) | |
download | pkgsrc-4e18354da00e0696e7351817373ceb9eeac645f0.tar.gz |
Previous commit was pretty much useless without this lot.
Support sparc.
XXX fp state needs looking at.
Diffstat (limited to 'devel/unproven-pthreads/patches')
-rw-r--r-- | devel/unproven-pthreads/patches/patch-aj | 14 | ||||
-rw-r--r-- | devel/unproven-pthreads/patches/patch-ak | 16 | ||||
-rw-r--r-- | devel/unproven-pthreads/patches/patch-at | 16 | ||||
-rw-r--r-- | devel/unproven-pthreads/patches/patch-au | 52 | ||||
-rw-r--r-- | devel/unproven-pthreads/patches/patch-av | 70 |
5 files changed, 156 insertions, 12 deletions
diff --git a/devel/unproven-pthreads/patches/patch-aj b/devel/unproven-pthreads/patches/patch-aj index 2c30b16f340..118aa21c634 100644 --- a/devel/unproven-pthreads/patches/patch-aj +++ b/devel/unproven-pthreads/patches/patch-aj @@ -1,8 +1,8 @@ -$NetBSD: patch-aj,v 1.1 2001/01/09 16:14:20 briggs Exp $ +$NetBSD: patch-aj,v 1.2 2001/04/12 15:53:31 skrll Exp $ ---- config/configure.orig Mon Jan 8 17:43:59 2001 -+++ config/configure Mon Jan 8 23:15:28 2001 -@@ -1161,6 +1161,11 @@ +--- config/configure.orig Thu Apr 12 09:04:07 2001 ++++ config/configure +@@ -1161,7 +1161,17 @@ except="fork lseek ftruncate pipe fstat" available_syscalls="sigsuspend sigaction sigprocmask" ;; @@ -12,5 +12,11 @@ $NetBSD: patch-aj,v 1.1 2001/01/09 16:14:20 briggs Exp $ + available_syscalls="sigprocmask sigaction sigsuspend" + ;; sparc-*-netbsd1.4*) ++ name=sparc-netbsd-1.3 ++ except="fork lseek ftruncate pipe fstat" ++ available_syscalls="sigprocmask sigaction sigsuspend" ++ ;; ++ sparc-*-netbsd1.5*) name=sparc-netbsd-1.3 except="fork lseek ftruncate pipe fstat" + available_syscalls="sigprocmask sigaction sigsuspend" diff --git a/devel/unproven-pthreads/patches/patch-ak b/devel/unproven-pthreads/patches/patch-ak index 7311805f4ae..9710fb316ba 100644 --- a/devel/unproven-pthreads/patches/patch-ak +++ b/devel/unproven-pthreads/patches/patch-ak @@ -1,8 +1,8 @@ -$NetBSD: patch-ak,v 1.1 2001/01/09 16:14:21 briggs Exp $ +$NetBSD: patch-ak,v 1.2 2001/04/12 15:53:31 skrll Exp $ ---- config/configure.in.orig Mon Jan 8 17:43:57 2001 -+++ config/configure.in Mon Jan 8 23:15:34 2001 -@@ -97,6 +97,13 @@ +--- config/configure.in.orig Thu Apr 12 08:59:55 2001 ++++ config/configure.in +@@ -97,7 +97,21 @@ ;; changequote([,])dnl changequote(,)dnl @@ -14,5 +14,13 @@ $NetBSD: patch-ak,v 1.1 2001/01/09 16:14:21 briggs Exp $ +changequote([,])dnl +changequote(,)dnl sparc-*-netbsd1.4*) ++ name=sparc-netbsd-1.3 ++ except="fork lseek ftruncate pipe fstat" ++ available_syscalls="sigprocmask sigaction sigsuspend" ++ ;; ++changequote([,])dnl ++changequote(,)dnl ++ sparc-*-netbsd1.5*) name=sparc-netbsd-1.3 except="fork lseek ftruncate pipe fstat" + available_syscalls="sigprocmask sigaction sigsuspend" diff --git a/devel/unproven-pthreads/patches/patch-at b/devel/unproven-pthreads/patches/patch-at index 18c90238c0a..562e06e2d08 100644 --- a/devel/unproven-pthreads/patches/patch-at +++ b/devel/unproven-pthreads/patches/patch-at @@ -1,8 +1,8 @@ -$NetBSD: patch-at,v 1.1 2001/04/12 07:53:18 skrll Exp $ +$NetBSD: patch-at,v 1.2 2001/04/12 15:53:31 skrll Exp $ ---- machdep/syscall-template-sparc-netbsd-1.3.S.orig Thu Apr 12 08:33:16 2001 +--- machdep/syscall-template-sparc-netbsd-1.3.S.orig Sat Nov 6 23:33:03 1999 +++ machdep/syscall-template-sparc-netbsd-1.3.S -@@ -4,6 +4,7 @@ +@@ -4,19 +4,25 @@ * */ @@ -10,7 +10,15 @@ $NetBSD: patch-at,v 1.1 2001/04/12 07:53:18 skrll Exp $ #include <sys/syscall.h> #ifdef SYS___sigsuspend14 -@@ -14,9 +15,9 @@ + #define SYS_sigsuspend SYS___sigsuspend14 + #endif ++ ++#ifdef SYS___sigaction14 ++#define SYS_sigaction SYS___sigaction14 ++#endif ++ + #ifdef SYS___sigprocmask14 + #define SYS_sigprocmask SYS___sigprocmask14 #endif #define SYSCALL(x) \ diff --git a/devel/unproven-pthreads/patches/patch-au b/devel/unproven-pthreads/patches/patch-au new file mode 100644 index 00000000000..a6f4b2ead85 --- /dev/null +++ b/devel/unproven-pthreads/patches/patch-au @@ -0,0 +1,52 @@ +$NetBSD: patch-au,v 1.1 2001/04/12 15:53:31 skrll Exp $ + +--- machdep/engine-sparc-netbsd-1.3.c.orig Fri Dec 10 18:40:41 1999 ++++ machdep/engine-sparc-netbsd-1.3.c +@@ -124,8 +124,6 @@ + */ + void * __machdep_stack_alloc(size_t size) + { +- void * stack; +- + return(malloc(size)); + } + +@@ -133,7 +131,7 @@ + * __machdep_pthread_create() + */ + void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, +- void *(* start_routine)(), void *start_argument, ++ void *(* start_routine)(void *), void *start_argument, + long stack_size, long nsec, long flags) + { + machdep_pthread->start_routine = start_routine; +@@ -164,20 +162,10 @@ + } + + /* ========================================================================== +- * machdep_sys_getdirentries() +- * +- * Always use getdents in place of getdirentries if possible --proven +- */ +-int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) +-{ +- return(machdep_sys_getdents(fd, buf, len)); +-} +- +-/* ========================================================================== + * machdep_sys_wait3() + */ + int +-machdep_sys_wait3(int * b, int c, int * d) ++machdep_sys_wait3(int * b, int c, struct rusage * d) + { + return(machdep_sys_wait4(0, b, c, d)); + } +@@ -234,6 +222,7 @@ + /* ========================================================================== + * machdep_sys_getdtablesize() + */ ++int + machdep_sys_getdtablesize() + { + return(sysconf(_SC_OPEN_MAX)); diff --git a/devel/unproven-pthreads/patches/patch-av b/devel/unproven-pthreads/patches/patch-av new file mode 100644 index 00000000000..9d965444534 --- /dev/null +++ b/devel/unproven-pthreads/patches/patch-av @@ -0,0 +1,70 @@ +$NetBSD: patch-av,v 1.1 2001/04/12 15:53:31 skrll Exp $ + +--- machdep/engine-sparc-netbsd-1.3.h.orig Thu Apr 12 09:31:32 2001 ++++ machdep/engine-sparc-netbsd-1.3.h +@@ -10,7 +10,12 @@ + #include <sys/time.h> + #include <sys/cdefs.h> + #include <sys/signal.h> /* for _NSIG */ ++#include <sys/syscall.h> + ++#include <stdlib.h> ++#include <fcntl.h> ++ ++#include <pthread/sysfunc.h> + /* + * The first machine dependent functions are the SEMAPHORES + * needing the test and set instruction. +@@ -65,7 +70,7 @@ + * For initial thread only. + */ + #define MACHDEP_PTHREAD_INIT \ +-{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, 0 } ++{ NULL, NULL, NULL, { { 0, 0 }, { 0, 100000 } }, { 0 } } + + /* + * Minimum stack size +@@ -76,7 +81,7 @@ + * Some fd flag defines that are necessary to distinguish between posix + * behavior and bsd4.3 behavior. + */ +-#define __FD_NONBLOCK (O_NONBLOCK | O_NDELAY) ++#define __FD_NONBLOCK O_NONBLOCK + + /* + * New functions +@@ -90,7 +95,7 @@ + #define __machdep_stack_set(x, y) (x)->machdep_stack = y + #define __machdep_stack_repl(x, y) \ + { \ +- if (stack = __machdep_stack_get(x)) { \ ++ if ((stack = __machdep_stack_get(x))) { \ + __machdep_stack_free(stack); \ + } \ + __machdep_stack_set(x, y); \ +@@ -100,6 +105,25 @@ + void __machdep_stack_free(void *); + + int machdep_save_state(void); ++ ++int machdep_sys_getdtablesize(void); ++ ++void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread); ++void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread); ++void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread); ++void machdep_pthread_start(void); ++void __machdep_stack_free(void * stack); ++void * __machdep_stack_alloc(size_t size); ++int machdep_sys_creat(char * path, int mode); ++pid_t machdep_sys_wait3(int * b, int c, struct rusage * d); ++pid_t machdep_sys_waitpid(int a, int * b, int c); ++int machdep_sys_getdtablesize(void); ++ ++ ++static inline int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) ++{ ++ return(machdep_sys_getdents(fd, buf, len)); ++} + + #endif + |