head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.50 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.48 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.46 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.44 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.42 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.40 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.38 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.36 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.34 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.32 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.30 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.28 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.26 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.24 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.22 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.20 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.18 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.16 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.14 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.12 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.10 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.8 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.6 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.4 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.2 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1; locks; strict; comment @# @; 1.2 date 2004.06.01.21.39.21; author kristerw; state dead; branches; next 1.1; 1.1 date 2001.04.12.15.53.31; author skrll; state Exp; branches; next ; desc @@ 1.2 log @Remove obsolete packages, per discussion on tech-pkg. @ text @$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 #include #include /* for _NSIG */ +#include +#include +#include + +#include /* * 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 @ 1.1 log @Previous commit was pretty much useless without this lot. Support sparc. XXX fp state needs looking at. @ text @d1 1 a1 1 $NetBSD$ @