head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.54 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.52 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.50 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.48 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.46 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.44 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.42 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.40 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.38 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.36 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.34 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.32 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.30 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.28 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.26 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.24 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 netbsd-1-6-1:1.5.0.6 netbsd-1-6-1-base:1.5 netbsd-1-6:1.5.0.8 netbsd-1-6-RELEASE-base:1.5 pkgviews:1.5.0.4 pkgviews-base:1.5 buildlink2:1.5.0.2 buildlink2-base:1.5 netbsd-1-5-PATCH003:1.5 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2003.10.05.17.55.34; author martti; state dead; branches; next 1.5; 1.5 date 2002.03.25.15.19.31; author briggs; state Exp; branches; next 1.4; 1.4 date 2001.03.26.13.46.21; author bad; state dead; branches; next 1.3; 1.3 date 2001.01.10.06.03.15; author briggs; state Exp; branches; next 1.2; 1.2 date 99.12.13.20.36.23; author bad; state dead; branches; next 1.1; 1.1 date 99.05.06.23.37.01; author tv; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.05.06.23.37.01; author tv; state Exp; branches; next ; desc @@ 1.6 log @Updated mysql-server to 3.23.58 A lot of bug and security fixes since 3.23.51... @ text @$NetBSD: patch-aj,v 1.5 2002/03/25 15:19:31 briggs Exp $ *** mit-pthreads/machdep/syscall-powerpc-netbsd.S Thu Feb 14 12:30:14 2002 --- mit-pthreads/machdep/syscall-powerpc-netbsd.S Mon Mar 25 09:52:47 2002 *************** *** 1,10 **** #include #define COMPAT_43 #include - #ifndef __CONCAT - #include - #endif - #define CONCAT __CONCAT #undef SYSCALL --- 1,6 ---- *************** *** 26,45 **** SYSCALL invocation. */ ENTRY(machdep_cerror) ! mflr 0 # Save LR in 0 ! stwu 1,-16(1) # allocate new stack frame ! stw 0,20(1) # Stash 0 in stack ! stw 31,8(1) # Stash 31 in stack (since it's callee-saved ! mr 31,3 # and we stash return there) bl PIC_PLT(_C_LABEL(__errno)) ! stw 31,0(3) # *errno() = err ! lwz 0,20(1) # Restore LR from stack to 0 ! neg 3,31 # return -errno to 3 ! lwz 31,8(1) # Restore 31 from stack mtlr 0 ! la 1,16(1) # Restore stack frame ! li 4,-1 # Put -1 in r4 for those syscalls that return ! blr # two values /* The fork system call is special... */ ENTRY(machdep_sys_fork) --- 22,41 ---- SYSCALL invocation. */ ENTRY(machdep_cerror) ! mflr 0 /* Save LR in 0 */ ! stwu 1,-16(1) /* allocate new stack frame */ ! stw 0,20(1) /* Stash 0 in stack */ ! stw 31,8(1) /* Stash 31 in stack (since it's callee-saved */ ! mr 31,3 /* and we stash return there) */ bl PIC_PLT(_C_LABEL(__errno)) ! stw 31,0(3) /* *errno() = err */ ! lwz 0,20(1) /* Restore LR from stack to 0 */ ! neg 3,31 /* return -errno to 3 */ ! lwz 31,8(1) /* Restore 31 from stack */ mtlr 0 ! la 1,16(1) /* Restore stack frame */ ! li 4,-1 /* Put -1 in r4 for those syscalls that ret */ ! blr /* two values */ /* The fork system call is special... */ ENTRY(machdep_sys_fork) *************** *** 55,64 **** li 0,SYS_pipe sc bso PIC_PLT(_C_LABEL(machdep_cerror)) ! stw 3,0(5) # Success, store fds stw 4,4(5) li 3,0 ! blr # And return 0 #ifndef SYS___sigsuspend14 /* The sigsuspend system call is special... */ --- 51,60 ---- li 0,SYS_pipe sc bso PIC_PLT(_C_LABEL(machdep_cerror)) ! stw 3,0(5) /* Success, store fds */ stw 4,4(5) li 3,0 ! blr /* And return 0 */ #ifndef SYS___sigsuspend14 /* The sigsuspend system call is special... */ *************** *** 72,91 **** #ifndef SYS___sigprocmask14 /* The sigprocmask system call is special... */ ENTRY(machdep_sys_sigprocmask) ! or. 4,4,4 # Set == NULL ? ! li 6,1 # how = SIG_BLOCK beq Ldoit ! lwz 4,0(4) # if not, replace it in r4 with #set mr 6,3 ! Ldoit: mr 3,6 # ... using sigprocmask(SIG_BLOCK) li 0,SYS_compat_13_sigprocmask13 sc bso PIC_PLT(_C_LABEL(machdep_cerror)) ! or. 5,5,5 # Check to see if oset requested ! beq Ldone # if oset != NULL ! stw 3,0(5) # *oset = oldmask Ldone: ! li 3,0 # return 0 blr #endif /* SYS_sigprocmask14 */ --- 68,87 ---- #ifndef SYS___sigprocmask14 /* The sigprocmask system call is special... */ ENTRY(machdep_sys_sigprocmask) ! or. 4,4,4 /* Set == NULL ? */ ! li 6,1 /* how = SIG_BLOCK */ beq Ldoit ! lwz 4,0(4) /* if not, replace it in r4 with #set */ mr 6,3 ! Ldoit: mr 3,6 /* ... using sigprocmask(SIG_BLOCK) */ li 0,SYS_compat_13_sigprocmask13 sc bso PIC_PLT(_C_LABEL(machdep_cerror)) ! or. 5,5,5 /* Check to see if oset requested */ ! beq Ldone /* if oset != NULL */ ! stw 3,0(5) /* *oset = oldmask */ Ldone: ! li 3,0 /* return 0 */ blr #endif /* SYS_sigprocmask14 */ @ 1.5 log @Adjust syscalls-powerpc-netbsd.S so it will build correctly again. Problem reported on port-macppc by Ryan La Riviere . @ text @d1 1 a1 1 $NetBSD$ @ 1.4 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-aj,v 1.3 2001/01/10 06:03:15 briggs Exp $ d3 2 a4 2 *** /dev/null Wed Dec 31 19:00:00 1969 --- mit-pthreads/machdep/syscall-powerpc-netbsd.S Tue Jan 9 22:35:59 2001 d6 121 a126 187 *** 0 **** --- 1,185 ---- + #include + #define COMPAT_43 + #include + #ifndef __CONCAT + #include + #endif + #define CONCAT __CONCAT + + #undef SYSCALL + + /* Kernel syscall interface: + Input: + 0 - system call number + 3-8 - arguments, as in C + Output: + so - (summary overflow) clear iff successful + + This macro is similar to SYSCALL in asm.h, but not completely. + There's room for optimization, if we assume this will continue to + be assembled as one file. + + This macro expansions does not include the return instruction. + If there's no other work to be done, use something like: + SYSCALL(foo) ; ret + If there is other work to do (in fork, maybe?), do it after the + SYSCALL invocation. */ + + ENTRY(machdep_cerror) + mflr 0 # Save LR in 0 + stwu 1,-16(1) # allocate new stack frame + stw 0,20(1) # Stash 0 in stack + stw 31,8(1) # Stash 31 in stack (since it's callee-saved + mr 31,3 # and we stash return there) + bl PIC_PLT(_C_LABEL(__errno)) + stw 31,0(3) # *errno() = err + lwz 0,20(1) # Restore LR from stack to 0 + neg 3,31 # return -errno to 3 + lwz 31,8(1) # Restore 31 from stack + mtlr 0 + la 1,16(1) # Restore stack frame + li 4,-1 # Put -1 in r4 for those syscalls that return + blr # two values + + /* The fork system call is special... */ + ENTRY(machdep_sys_fork) + li 0, SYS_fork + sc + bso PIC_PLT(_C_LABEL(machdep_cerror)) + addi 4,4,-1 + blr + + /* The pipe system call is special... */ + ENTRY(machdep_sys_pipe) + mr 5,3 + li 0,SYS_pipe + sc + bso PIC_PLT(_C_LABEL(machdep_cerror)) + stw 3,0(5) # Success, store fds + stw 4,4(5) + li 3,0 + blr # And return 0 + + #ifndef SYS___sigsuspend14 + /* The sigsuspend system call is special... */ + ENTRY(machdep_sys_sigsuspend) + lwz 3,0(3) + li 0,SYS_compat_13_sigsuspend13 + sc + b PIC_PLT(_C_LABEL(machdep_cerror)) + #endif /* SYS_sigsuspend14 */ + + #ifndef SYS___sigprocmask14 + /* The sigprocmask system call is special... */ + ENTRY(machdep_sys_sigprocmask) + or. 4,4,4 # Set == NULL ? + li 6,1 # how = SIG_BLOCK + beq Ldoit + lwz 4,0(4) # if not, replace it in r4 with #set + mr 6,3 + Ldoit: mr 3,6 # ... using sigprocmask(SIG_BLOCK) + li 0,SYS_compat_13_sigprocmask13 + sc + bso PIC_PLT(_C_LABEL(machdep_cerror)) + or. 5,5,5 # Check to see if oset requested + beq Ldone # if oset != NULL + stw 3,0(5) # *oset = oldmask + Ldone: + li 3,0 # return 0 + blr + #endif /* SYS_sigprocmask14 */ + + /* More stuff ... */ + + /* For fstat() we actually syscall fstat13. */ + ENTRY(machdep_sys_fstat) + li 0, SYS___fstat13 + sc + bnslr + b PIC_PLT(_C_LABEL(machdep_cerror)) + + /* Do we need to save the entire floating point state? I think so... */ + ENTRY(__machdep_save_fp_state) + stwu 1,-8(1) + stw 3,4(1) + stfd 0,0(3) + stfdu 1,8(3) + stfdu 2,8(3) + stfdu 3,8(3) + stfdu 4,8(3) + stfdu 5,8(3) + stfdu 6,8(3) + stfdu 7,8(3) + stfdu 8,8(3) + stfdu 9,8(3) + stfdu 10,8(3) + stfdu 11,8(3) + stfdu 12,8(3) + stfdu 13,8(3) + stfdu 14,8(3) + stfdu 15,8(3) + stfdu 16,8(3) + stfdu 17,8(3) + stfdu 18,8(3) + stfdu 19,8(3) + stfdu 20,8(3) + stfdu 21,8(3) + stfdu 22,8(3) + stfdu 23,8(3) + stfdu 24,8(3) + stfdu 25,8(3) + stfdu 26,8(3) + stfdu 27,8(3) + stfdu 28,8(3) + stfdu 29,8(3) + stfdu 30,8(3) + stfdu 31,8(3) + mffs 0 + stfdu 0,8(3) + lwz 3,4(1) + lwz 1,0(1) + blr + + ENTRY(__machdep_restore_fp_state) + stwu 1,-12(1) + stw 3,4(1) + stw 4,8(1) + mr 4,3 + lfdu 1,8(3) + lfdu 2,8(3) + lfdu 3,8(3) + lfdu 4,8(3) + lfdu 5,8(3) + lfdu 6,8(3) + lfdu 7,8(3) + lfdu 8,8(3) + lfdu 9,8(3) + lfdu 10,8(3) + lfdu 11,8(3) + lfdu 12,8(3) + lfdu 13,8(3) + lfdu 14,8(3) + lfdu 15,8(3) + lfdu 16,8(3) + lfdu 17,8(3) + lfdu 18,8(3) + lfdu 19,8(3) + lfdu 20,8(3) + lfdu 21,8(3) + lfdu 22,8(3) + lfdu 23,8(3) + lfdu 24,8(3) + lfdu 25,8(3) + lfdu 26,8(3) + lfdu 27,8(3) + lfdu 28,8(3) + lfdu 29,8(3) + lfdu 30,8(3) + lfdu 31,8(3) + lfdu 0,8(3) + mtfsf 127,0 + lfd 0,0(4) + lwz 3,4(1) + lwz 4,8(1) + lwz 1,0(1) + blr @ 1.3 log @Add support for NetBSD-*-powerpc to embedded mit-pthreads, and enable this package for same. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 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 192 a192 20 $NetBSD: patch-aj,v 1.1 1999/05/06 23:37:01 tv Exp $ --- mit-pthreads/pthreads/fd.c.orig Tue Jan 13 06:28:04 1998 +++ mit-pthreads/pthreads/fd.c Mon Dec 28 23:50:16 1998 @@@@ -44,6 +44,7 @@@@ #include #include +#include #include #include #include @@@@ -702,7 +703,7 @@@@ */ off_t lseek(int fd, off_t offset, int whence) { - int ret; + off_t ret; if ((ret = fd_lock(fd, FD_RDWR, NULL)) == OK) { ret = fd_table[fd]->ops->seek(fd_table[fd]->fd, @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.2 1998/12/29 08:12:04 garbled Exp $ @ 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 @@