head 1.8; access; symbols pkgsrc-2013Q2:1.8.0.54 pkgsrc-2013Q2-base:1.8 pkgsrc-2012Q4:1.8.0.52 pkgsrc-2012Q4-base:1.8 pkgsrc-2011Q4:1.8.0.50 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q2:1.8.0.48 pkgsrc-2011Q2-base:1.8 pkgsrc-2009Q4:1.8.0.46 pkgsrc-2009Q4-base:1.8 pkgsrc-2008Q4:1.8.0.44 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.42 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.40 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.38 pkgsrc-2008Q2-base:1.8 pkgsrc-2008Q1:1.8.0.36 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.34 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.32 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.30 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.28 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.8.0.26 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.8.0.24 pkgsrc-2006Q3-base:1.8 pkgsrc-2006Q2:1.8.0.22 pkgsrc-2006Q2-base:1.8 pkgsrc-2006Q1:1.8.0.20 pkgsrc-2006Q1-base:1.8 pkgsrc-2005Q4:1.8.0.18 pkgsrc-2005Q4-base:1.8 pkgsrc-2005Q3:1.8.0.16 pkgsrc-2005Q3-base:1.8 pkgsrc-2005Q2:1.8.0.14 pkgsrc-2005Q2-base:1.8 pkgsrc-2005Q1:1.8.0.12 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.8.0.10 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.8.0.8 pkgsrc-2004Q3-base:1.8 pkgsrc-2004Q2:1.8.0.6 pkgsrc-2004Q2-base:1.8 pkgsrc-2004Q1:1.8.0.4 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.8.0.2 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.7.0.6 netbsd-1-6-1-base:1.7 netbsd-1-6:1.7.0.8 netbsd-1-6-RELEASE-base:1.7 pkgviews:1.7.0.4 pkgviews-base:1.7 buildlink2:1.7.0.2 buildlink2-base:1.7 netbsd-1-5-PATCH003:1.7 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.8 date 2003.10.05.17.55.34; author martti; state dead; branches; next 1.7; 1.7 date 2001.10.08.17.28.13; author veego; state Exp; branches; next 1.6; 1.6 date 2001.03.26.13.46.21; author bad; state dead; branches; next 1.5; 1.5 date 2001.01.10.06.03.15; author briggs; state Exp; branches; next 1.4; 1.4 date 2000.02.15.04.46.25; author bad; state dead; branches; next 1.3; 1.3 date 99.12.13.20.36.23; author bad; state Exp; branches; next 1.2; 1.2 date 99.08.03.20.30.41; author bad; state Exp; branches; next 1.1; 1.1 date 99.05.06.23.37.00; author tv; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.05.06.23.37.00; author tv; state Exp; branches; next ; desc @@ 1.8 log @Updated mysql-server to 3.23.58 A lot of bug and security fixes since 3.23.51... @ text @$NetBSD: patch-ah,v 1.7 2001/10/08 17:28:13 veego Exp $ --- mit-pthreads/include/unistd.h-orig Wed Oct 3 18:08:36 2001 +++ mit-pthreads/include/unistd.h Mon Oct 8 08:15:37 2001 @@@@ -177,6 +177,12 @@@@ void usleep __P_((unsigned)); int vfork __P_((void)); +/* FIXME: this should go to ! */ +#if __STDC__ +struct timeval; /* select(2) XXX */ +#endif +int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *)); + #endif /* !_POSIX_SOURCE */ __END_DECLS @ 1.7 log @Fix a build problem with the new toolchain, where you would get: mysqld.cc:2268: implicit declaration of function `int select(...)' Patch from Christoph Badura. @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @Update to mysql-3.23.35. Enable use of tcp_wrappers in the server. BDB and Innobase table types are not configured in, so no transaction support yet. The 3.23 release has several major features that are not present in previous versions. We have added new table types: MyISAM, a new ISAM library which is tuned for SQL and supports large files; BDB, which uses the Berkeley DB library from Sleepycat Software to implement transaction-safe tables; INNOBASE, which uses the Innobase database backend to implement transaction-safe tables. The 3.23 release also includes support for database replication between a master and many slaves, full-text indexing, and much more. For a detailed list of changes see appendix E of the online documentation at http://www.mysql.com/. The replication code and BerkeleyDB code is still not as tested and as the rest of the code, so we will probably need to do a couple of future releases of 3.23 with small fixes for this part of the code. As long as you don't use these features, you should be quite safe with MySQL 3.23! Note that the above doesn't mean that replication or Berkeley DB doesn't work; We have done a lot of testing of all code, including replication and BDB without finding any problems. It only means that not as many users uses this code as the rest of the code and because of this we are not yet 100 % confident in this code. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.5 2001/01/10 06:03:15 briggs Exp $ d3 15 a17 232 *** /dev/null Wed Dec 31 19:00:00 1969 --- mit-pthreads/machdep/engine-powerpc-netbsd.c Tue Jan 9 22:35:36 2001 *************** *** 0 **** --- 1,227 ---- + /* ==== machdep.c ============================================================ + * Copyright (c) 1993, 1994 Chris Provenzano, proven@@athena.mit.edu + * + * Description : Machine dependent functions for NetBSD/PowerPC (1.5+) + * + * 1.00 93/08/04 proven + * -Started coding this file. + * + * 2001/01/10 briggs + * -Modified to make it go with NetBSD/PowerPC + */ + + #ifndef lint + static const char rcsid[] = "engine-alpha-osf1.c,v 1.4.4.1 1995/12/13 05:41:37 proven Exp"; + #endif + + #include + #include + #include + #include + #include + #include + #include + + /* ========================================================================== + * machdep_pthread_start() + */ + void machdep_pthread_start(void) + { + context_switch_done(); + pthread_sched_resume (); + + /* XXXMLG + * This is EXTREMELY bogus, but it seems that this function is called + * with the pthread kernel locked. If this happens, __errno() will + * return the wrong address until after the first context switch. + * + * Clearly there is a leak of pthread_kernel somewhere, but until + * it is found, we force a context switch here, just before calling + * the thread start routine. When we return from pthread_yield + * the kernel will be unlocked. + */ + pthread_yield(); + + /* Run current threads start routine with argument */ + pthread_exit(pthread_run->machdep_data.start_routine + (pthread_run->machdep_data.start_argument)); + + /* should never reach here */ + PANIC(); + } + + /* ========================================================================== + * __machdep_pthread_create() + */ + void __machdep_pthread_create(struct machdep_pthread *machdep_pthread, + void *(* start_routine)(void *), void *start_argument, + long stack_size, long nsec, long flags) + { + machdep_pthread->start_routine = start_routine; + machdep_pthread->start_argument = start_argument; + + machdep_pthread->machdep_timer.it_value.tv_sec = 0; + machdep_pthread->machdep_timer.it_interval.tv_sec = 0; + machdep_pthread->machdep_timer.it_interval.tv_usec = 0; + machdep_pthread->machdep_timer.it_value.tv_usec = nsec / 1000; + + /* Set up new stack frame so that it looks like it returned from a + longjmp() to the beginning of machdep_pthread_start(). */ + /* state is sigmask, then r8-r31 where r11 is the LR + * So, istate[3] is r10, which is the SP + * So, istate[4] is r11, which is the LR + * So, istate[5] is r12, which is the CR + */ + machdep_pthread->machdep_istate[4] = (long)machdep_pthread_start; + machdep_pthread->machdep_istate[5] = 0; + + /* PowerPC stack starts high and builds down, and needs to be 16-byte + aligned. */ + machdep_pthread->machdep_istate[3] = + ((long) machdep_pthread->machdep_stack + stack_size) & ~0xf; + } + + /* ========================================================================== + * machdep_save_state() + */ + int machdep_save_state(void) + { + return( _setjmp(pthread_run->machdep_data.machdep_istate) ); + } + + void machdep_restore_state(void) + { + _longjmp(pthread_run->machdep_data.machdep_istate, 1); + } + + void machdep_save_float_state (struct pthread *pthread) + { + __machdep_save_fp_state(pthread->machdep_data.machdep_fstate); + } + + void machdep_restore_float_state (void) + { + __machdep_restore_fp_state(pthread_run->machdep_data.machdep_fstate); + } + + /* ========================================================================== + * machdep_set_thread_timer() + */ + void machdep_set_thread_timer(struct machdep_pthread *machdep_pthread) + { + if (setitimer(ITIMER_VIRTUAL, &(machdep_pthread->machdep_timer), NULL)) { + PANIC(); + } + } + + /* ========================================================================== + * machdep_unset_thread_timer() + */ + void machdep_unset_thread_timer(struct machdep_pthread *machdep_pthread) + { + struct itimerval zeroval = { { 0, 0 }, { 0, 0} }; + + if (setitimer(ITIMER_VIRTUAL, &zeroval, NULL)) { + PANIC(); + } + } + + /* ========================================================================== + * machdep_pthread_cleanup() + */ + void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread) + { + return(machdep_pthread->machdep_stack); + } + + void *machdep_pthread_cleanup(struct machdep_pthread *machdep_pthread); + void machdep_pthread_start(void); + + /* ========================================================================== + * __machdep_stack_free() + */ + void + __machdep_stack_free(void * stack) + { + free(stack); + } + + /* ========================================================================== + * __machdep_stack_alloc() + */ + void * + __machdep_stack_alloc(size_t size) + { + return(malloc(size)); + } + + /* ========================================================================== + * machdep_sys_creat() + */ + int + machdep_sys_creat(char * path, int mode) + { + return(machdep_sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode)); + } + + /* ========================================================================== + * machdep_sys_wait3() + */ + int + machdep_sys_wait3(int * b, int c, int *d) + { + return(machdep_sys_wait4(0, b, c, d)); + } + + /* ========================================================================== + * machdep_sys_waitpid() + */ + int + machdep_sys_waitpid(int a, int * b, int c) + { + return(machdep_sys_wait4(a, b, c, NULL)); + } + + /* ========================================================================== + * machdep_sys_getdtablesize() + */ + int + machdep_sys_getdtablesize(void) + { + return(sysconf(_SC_OPEN_MAX)); + } + + /* ========================================================================== + * machdep_sys_lseek() + */ + off_t + machdep_sys_lseek(int fd, off_t offset, int whence) + { + return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence)); + } + + int + machdep_sys_ftruncate( int fd, off_t length) + { + quad_t q; + int rv; + + q = __syscall((quad_t)SYS_ftruncate, fd,0, length); + if( /* LINTED constant */ sizeof( quad_t ) == sizeof( register_t ) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN ) + rv = (int)q; + else + rv = (int)((u_quad_t)q >> 32); + + return rv; + } + + + /* ========================================================================== + * machdep_sys_getdirentries() + */ + int + machdep_sys_getdirentries(int fd, char * buf, int len, int * seek) + { + return(machdep_sys_getdents(fd, buf, len)); + } @ 1.5 log @Add support for NetBSD-*-powerpc to embedded mit-pthreads, and enable this package for same. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update mysql to 3.22.32. This includes a security fix for the remote password checking protocol. Other wise it's just the regular bunch of bugfixes. See appendix D of the manual. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.3 1999/12/13 20:36:23 bad Exp $ d3 232 a234 12 --- mit-pthreads/config/configure.orig Mon Jun 7 12:34:01 1999 +++ mit-pthreads/config/configure Tue Aug 17 00:18:32 1999 @@@@ -1313,6 +1313,9 @@@@ ;; m68*-*-netbsd*) name=m68000-netbsd + sysincludes=netbsd-1.1 + except="lseek ftruncate pipe fstat" + available_syscalls="sigsuspend sigprocmask" ;; i386-*-freebsd2.*) name=i386-freebsd-2.0 @ 1.3 log @Update MySQL to 3.22.27. There are a bunch of bug fixes to the server. For a complete list see the documentation. Also, get rid of USE_GMAKE. The normal make works just fine. Delete a whole bunch of patches that have been integrated into the distribution. Update the mit-pthreads patches to use _C_LABEL where appropriate so that mit-pthreads works on ELF and a.out for the affected platforms. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Add support for m68k machines. Patches by Andy Finnell. Thanks to Greg Oster for testing. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.1.1.1 1999/05/06 23:37:00 tv Exp $ d3 3 a5 65 --- mit-pthreads/config/configure.orig Tue Mar 10 10:11:25 1998 +++ mit-pthreads/config/configure Thu Jul 29 19:17:31 1999 @@@@ -1165,6 +1165,12 @@@@ name=$host_cpu-$host_os case $host in + alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.4*) + name=alpha-netbsd-1.3 + sysincludes=netbsd-1.1 + except="fork lseek pipe fstat" + available_syscalls="sigsuspend sigprocmask" + ;; alpha-*-netbsd1.3*) name=alpha-netbsd-1.3 sysincludes=netbsd-1.1 @@@@ -1183,6 +1189,17 @@@@ CFLAGS="$CFLAGS -std" fi ;; + arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.4*) + name=arm32-netbsd-1.3 + sysincludes=netbsd-1.1 + except="fork pipe lseek ftruncate fstat" + available_syscalls="sigsuspend sigprocmask" + ;; + arm32-*-netbsd1.3*) + name=arm32-netbsd-1.3 + sysincludes=netbsd-1.1 + except="fork pipe lseek ftruncate sigsuspend sigprocmask fstat" + ;; hppa1.0-*-hpux10.20 | hppa1.1-*-hpux10.20) name=hppa-hpux-10.20 sysincludes=hpux-10.20 @@@@ -1232,6 +1249,17 @@@@ EOF ;; + sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.4*) + name=sparc-netbsd-1.3 + sysincludes=netbsd-1.1 + except="pipe fork lseek ftruncate fstat" + available_syscalls="sigprocmask sigsuspend" + ;; + sparc-*-netbsd1.3*) + name=sparc-netbsd-1.3 + sysincludes=netbsd-1.1 + except="pipe fork lseek ftruncate sigprocmask sigsuspend fstat" + ;; sparc-*-netbsd1.0A | sparc-*-netbsd1.1* | sparc-*-netbsd1.2*) name=sparc-sunos-4.1.3 sysincludes=netbsd-1.0 @@@@ -1257,6 +1285,12 @@@@ syscall=i386-bsdi-2.0 except="fork lseek ftruncate sigsuspend" ;; + i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.4*) + name=i386-netbsd-1.3 + sysincludes=netbsd-1.1 + except="fork lseek ftruncate pipe fstat" + available_syscalls="sigsuspend sigprocmask" + ;; i386-*-netbsd1.3*) name=i386-netbsd-1.3 sysincludes=netbsd-1.1 @@@@ -1279,6 +1313,9 @@@@ a14 39 @@@@ -1898,6 +1935,38 @@@@ if test $pthreads_cv_timespec_in_time = yes ; then cat >> confdefs.h <<\EOF #define _OS_HAS_TIMESPEC 1 +EOF +fi + +echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'pthreads_cv_socklen_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { return 0; } +int t() { +socklen_t foo; +; return 0; } +EOF +if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + pthreads_cv_socklen_t=yes +else + rm -rf conftest* + pthreads_cv_socklen_t=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$pthreads_cv_socklen_t" 1>&6 +if test $pthreads_cv_socklen_t = yes ; then + cat >> confdefs.h <<\EOF +#define _OS_HAS_SOCKLEN_T 1 EOF fi @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.4 1999/04/16 16:21:27 bad Exp $ d4 1 a4 1 +++ mit-pthreads/config/configure Fri Apr 16 18:16:36 1999 d67 11 a77 1 @@@@ -1898,6 +1932,38 @@@@ @ 1.1.1.1 log @Second half of the split mysql pkg (server). Works on alpha, arm32, i386, and sparc (more to come when this works properly with PTL2). @ text @@