CVS commit: src
Module Name:src Committed By: jruoho Date: Sun Oct 16 07:40:48 UTC 2011 Modified Files: src/distrib/sets/lists/tests: mi src/tests/lib/libm: Makefile Added Files: src/tests/lib/libm: t_cosh.c t_sinh.c Log Message: Basic IEEE tests for the hyperbolic sine and cosine. To generate a diff of this commit: cvs rdiff -u -r1.409 -r1.410 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libm/Makefile cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_cosh.c \ src/tests/lib/libm/t_sinh.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/tests/mi diff -u src/distrib/sets/lists/tests/mi:1.409 src/distrib/sets/lists/tests/mi:1.410 --- src/distrib/sets/lists/tests/mi:1.409 Sat Oct 15 07:00:49 2011 +++ src/distrib/sets/lists/tests/mi Sun Oct 16 07:40:48 2011 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.409 2011/10/15 07:00:49 jruoho Exp $ +# $NetBSD: mi,v 1.410 2011/10/16 07:40:48 jruoho Exp $ # # Note: don't delete entries from here - mark them as obsolete instead. # @@ -565,6 +565,7 @@ ./usr/libdata/debug/usr/tests/lib/libm/t_atan.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_ceil.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_cos.debug tests-lib-debug debug,atf +./usr/libdata/debug/usr/tests/lib/libm/t_cosh.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_erf.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_exp.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_floor.debug tests-obsolete obsolete @@ -576,6 +577,7 @@ ./usr/libdata/debug/usr/tests/lib/libm/t_round.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_scalbn.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_sin.debug tests-lib-debug debug,atf +./usr/libdata/debug/usr/tests/lib/libm/t_sinh.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_tan.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_tanh.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libobjctests-lib-debug @@ -2295,6 +2297,7 @@ ./usr/tests/lib/libm/t_atan tests-lib-tests atf ./usr/tests/lib/libm/t_ceil tests-lib-tests atf ./usr/tests/lib/libm/t_cos tests-lib-tests atf +./usr/tests/lib/libm/t_cosh tests-lib-tests atf ./usr/tests/lib/libm/t_erf tests-lib-tests atf ./usr/tests/lib/libm/t_exp tests-lib-tests atf ./usr/tests/lib/libm/t_floor tests-obsolete obsolete @@ -2306,6 +2309,7 @@ ./usr/tests/lib/libm/t_round tests-lib-tests atf ./usr/tests/lib/libm/t_scalbn tests-lib-tests atf ./usr/tests/lib/libm/t_sin tests-lib-tests atf +./usr/tests/lib/libm/t_sinh tests-lib-tests atf ./usr/tests/lib/libm/t_tan tests-lib-tests atf ./usr/tests/lib/libm/t_tanh tests-lib-tests atf ./usr/tests/lib/libobjctests-lib-tests atf Index: src/tests/lib/libm/Makefile diff -u src/tests/lib/libm/Makefile:1.13 src/tests/lib/libm/Makefile:1.14 --- src/tests/lib/libm/Makefile:1.13 Sun Sep 18 05:19:18 2011 +++ src/tests/lib/libm/Makefile Sun Oct 16 07:40:48 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2011/09/18 05:19:18 jruoho Exp $ +# $NetBSD: Makefile,v 1.14 2011/10/16 07:40:48 jruoho Exp $ .include bsd.own.mk @@ -9,6 +9,7 @@ TESTS_C+= t_asin TESTS_C+= t_atan TESTS_C+= t_ceil TESTS_C+= t_cos +TESTS_C+= t_cosh TESTS_C+= t_erf TESTS_C+= t_exp TESTS_C+= t_infinity @@ -18,6 +19,7 @@ TESTS_C+= t_pow TESTS_C+= t_round TESTS_C+= t_scalbn TESTS_C+= t_sin +TESTS_C+= t_sinh TESTS_C+= t_tan TESTS_C+= t_tanh Added files: Index: src/tests/lib/libm/t_cosh.c diff -u /dev/null src/tests/lib/libm/t_cosh.c:1.1 --- /dev/null Sun Oct 16 07:40:48 2011 +++ src/tests/lib/libm/t_cosh.c Sun Oct 16 07:40:47 2011 @@ -0,0 +1,278 @@ +/* $NetBSD: t_cosh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $ */ + +/*- + * Copyright (c) 2011 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Jukka Ruohonen. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +
CVS commit: src
Module Name:src Committed By: jruoho Date: Sun Oct 16 08:25:40 UTC 2011 Modified Files: src/distrib/sets/lists/tests: mi Added Files: src/tests/lib/libm: t_cbrt.c t_sqrt.c Log Message: Basic checks for the root functions. To generate a diff of this commit: cvs rdiff -u -r1.410 -r1.411 src/distrib/sets/lists/tests/mi cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_cbrt.c \ src/tests/lib/libm/t_sqrt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/tests/mi diff -u src/distrib/sets/lists/tests/mi:1.410 src/distrib/sets/lists/tests/mi:1.411 --- src/distrib/sets/lists/tests/mi:1.410 Sun Oct 16 07:40:48 2011 +++ src/distrib/sets/lists/tests/mi Sun Oct 16 08:25:40 2011 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.410 2011/10/16 07:40:48 jruoho Exp $ +# $NetBSD: mi,v 1.411 2011/10/16 08:25:40 jruoho Exp $ # # Note: don't delete entries from here - mark them as obsolete instead. # @@ -563,6 +563,7 @@ ./usr/libdata/debug/usr/tests/lib/libm/t_acos.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_asin.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_atan.debug tests-lib-debug debug,atf +./usr/libdata/debug/usr/tests/lib/libm/t_cbrt.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_ceil.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_cos.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_cosh.debug tests-lib-debug debug,atf @@ -578,6 +579,7 @@ ./usr/libdata/debug/usr/tests/lib/libm/t_scalbn.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_sin.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_sinh.debug tests-lib-debug debug,atf +./usr/libdata/debug/usr/tests/lib/libm/t_sqrt.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_tan.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libm/t_tanh.debug tests-lib-debug debug,atf ./usr/libdata/debug/usr/tests/lib/libobjctests-lib-debug @@ -2295,6 +2297,7 @@ ./usr/tests/lib/libm/t_acos tests-lib-tests atf ./usr/tests/lib/libm/t_asin tests-lib-tests atf ./usr/tests/lib/libm/t_atan tests-lib-tests atf +./usr/tests/lib/libm/t_cbrt tests-lib-tests atf ./usr/tests/lib/libm/t_ceil tests-lib-tests atf ./usr/tests/lib/libm/t_cos tests-lib-tests atf ./usr/tests/lib/libm/t_cosh tests-lib-tests atf @@ -2310,6 +2313,7 @@ ./usr/tests/lib/libm/t_scalbn tests-lib-tests atf ./usr/tests/lib/libm/t_sin tests-lib-tests atf ./usr/tests/lib/libm/t_sinh tests-lib-tests atf +./usr/tests/lib/libm/t_sqrt tests-lib-tests atf ./usr/tests/lib/libm/t_tan tests-lib-tests atf ./usr/tests/lib/libm/t_tanh tests-lib-tests atf ./usr/tests/lib/libobjctests-lib-tests atf Added files: Index: src/tests/lib/libm/t_cbrt.c diff -u /dev/null src/tests/lib/libm/t_cbrt.c:1.1 --- /dev/null Sun Oct 16 08:25:40 2011 +++ src/tests/lib/libm/t_cbrt.c Sun Oct 16 08:25:40 2011 @@ -0,0 +1,282 @@ +/* $NetBSD: t_cbrt.c,v 1.1 2011/10/16 08:25:40 jruoho Exp $ */ + +/*- + * Copyright (c) 2011 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Jukka Ruohonen. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#include sys/cdefs.h +__RCSID($NetBSD: t_cbrt.c,v 1.1 2011/10/16 08:25:40 jruoho Exp $); + +#include atf-c.h +#include math.h +#include stdio.h + +/* + * cbrt(3) + */ +ATF_TC(cbrt_nan); +ATF_TC_HEAD(cbrt_nan, tc) +{ +
CVS commit: src/tests/lib/libm
Module Name:src Committed By: jruoho Date: Sun Oct 16 08:25:55 UTC 2011 Modified Files: src/tests/lib/libm: Makefile Log Message: Add t_sqrt and t_cbrt. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libm/Makefile diff -u src/tests/lib/libm/Makefile:1.14 src/tests/lib/libm/Makefile:1.15 --- src/tests/lib/libm/Makefile:1.14 Sun Oct 16 07:40:48 2011 +++ src/tests/lib/libm/Makefile Sun Oct 16 08:25:55 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2011/10/16 07:40:48 jruoho Exp $ +# $NetBSD: Makefile,v 1.15 2011/10/16 08:25:55 jruoho Exp $ .include bsd.own.mk @@ -7,6 +7,7 @@ TESTSDIR= ${TESTSBASE}/lib/libm TESTS_C+= t_acos TESTS_C+= t_asin TESTS_C+= t_atan +TESTS_C+= t_cbrt TESTS_C+= t_ceil TESTS_C+= t_cos TESTS_C+= t_cosh @@ -20,6 +21,7 @@ TESTS_C+= t_round TESTS_C+= t_scalbn TESTS_C+= t_sin TESTS_C+= t_sinh +TESTS_C+= t_sqrt TESTS_C+= t_tan TESTS_C+= t_tanh
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: jruoho Date: Sun Oct 16 08:28:10 UTC 2011 Modified Files: src/tests/lib/libc/sys: t_stat.c Log Message: Remove atf_tc_skip() to see whether this still panics i386/qemu. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_stat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/sys/t_stat.c diff -u src/tests/lib/libc/sys/t_stat.c:1.1 src/tests/lib/libc/sys/t_stat.c:1.2 --- src/tests/lib/libc/sys/t_stat.c:1.1 Thu Jul 7 06:57:54 2011 +++ src/tests/lib/libc/sys/t_stat.c Sun Oct 16 08:28:10 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_stat.c,v 1.1 2011/07/07 06:57:54 jruoho Exp $ */ +/* $NetBSD: t_stat.c,v 1.2 2011/10/16 08:28:10 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include sys/cdefs.h -__RCSID($NetBSD: t_stat.c,v 1.1 2011/07/07 06:57:54 jruoho Exp $); +__RCSID($NetBSD: t_stat.c,v 1.2 2011/10/16 08:28:10 jruoho Exp $); #include sys/stat.h #include sys/types.h @@ -87,18 +87,13 @@ ATF_TC_HEAD(stat_dir, tc) ATF_TC_BODY(stat_dir, tc) { - const short depth = 3; + const short depth = 2; struct stat sa, sb; char *argv[2]; FTSENT *ftse; FTS *fts; int ops; - /* - * XXX: This is verified to panic at least a qemu/i386 guest. - */ - atf_tc_skip(the test may cause a panic); - argv[1] = NULL; argv[0] = __UNCONST(/);
CVS commit: src/sys/miscfs
Module Name:src Committed By: hannken Date: Sun Oct 16 12:26:16 UTC 2011 Modified Files: src/sys/miscfs/fdesc: fdesc_vnops.c src/sys/miscfs/procfs: procfs_map.c Log Message: VOP_GETATTR() needs a shared lock at least. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/sys/miscfs/fdesc/fdesc_vnops.c cvs rdiff -u -r1.40 -r1.41 src/sys/miscfs/procfs/procfs_map.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/miscfs/fdesc/fdesc_vnops.c diff -u src/sys/miscfs/fdesc/fdesc_vnops.c:1.113 src/sys/miscfs/fdesc/fdesc_vnops.c:1.114 --- src/sys/miscfs/fdesc/fdesc_vnops.c:1.113 Sun Jun 12 03:35:58 2011 +++ src/sys/miscfs/fdesc/fdesc_vnops.c Sun Oct 16 12:26:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: fdesc_vnops.c,v 1.113 2011/06/12 03:35:58 rmind Exp $ */ +/* $NetBSD: fdesc_vnops.c,v 1.114 2011/10/16 12:26:16 hannken Exp $ */ /* * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: fdesc_vnops.c,v 1.113 2011/06/12 03:35:58 rmind Exp $); +__KERNEL_RCSID(0, $NetBSD: fdesc_vnops.c,v 1.114 2011/10/16 12:26:16 hannken Exp $); #include sys/param.h #include sys/systm.h @@ -446,7 +446,9 @@ fdesc_attr(int fd, struct vattr *vap, ka switch (fp-f_type) { case DTYPE_VNODE: + vn_lock((struct vnode *) fp-f_data, LK_SHARED | LK_RETRY); error = VOP_GETATTR((struct vnode *) fp-f_data, vap, cred); + VOP_UNLOCK((struct vnode *) fp-f_data); if (error == 0 vap-va_type == VDIR) { /* * directories can cause loops in the namespace, Index: src/sys/miscfs/procfs/procfs_map.c diff -u src/sys/miscfs/procfs/procfs_map.c:1.40 src/sys/miscfs/procfs/procfs_map.c:1.41 --- src/sys/miscfs/procfs/procfs_map.c:1.40 Tue Jul 26 13:18:55 2011 +++ src/sys/miscfs/procfs/procfs_map.c Sun Oct 16 12:26:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_map.c,v 1.40 2011/07/26 13:18:55 yamt Exp $ */ +/* $NetBSD: procfs_map.c,v 1.41 2011/10/16 12:26:16 hannken Exp $ */ /* * Copyright (c) 1993 @@ -76,7 +76,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: procfs_map.c,v 1.40 2011/07/26 13:18:55 yamt Exp $); +__KERNEL_RCSID(0, $NetBSD: procfs_map.c,v 1.41 2011/10/16 12:26:16 hannken Exp $); #include sys/param.h #include sys/systm.h @@ -162,7 +162,9 @@ again: if (UVM_ET_ISOBJ(entry) UVM_OBJ_IS_VNODE(entry-object.uvm_obj)) { vp = (struct vnode *)entry-object.uvm_obj; +vn_lock(vp, LK_SHARED | LK_RETRY); error = VOP_GETATTR(vp, va, curl-l_cred); +VOP_UNLOCK(vp); if (error == 0 vp != pfs-pfs_vnode) { fileid = va.va_fileid; dev = va.va_fsid;
CVS commit: src/sys/fs/nilfs
Module Name:src Committed By: hannken Date: Sun Oct 16 12:41:46 UTC 2011 Modified Files: src/sys/fs/nilfs: nilfs_vnops.c Log Message: VOP_GETATTR() needs a shared lock at least. While here fix a typo (fvp - tvp). To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/fs/nilfs/nilfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/fs/nilfs/nilfs_vnops.c diff -u src/sys/fs/nilfs/nilfs_vnops.c:1.14 src/sys/fs/nilfs/nilfs_vnops.c:1.15 --- src/sys/fs/nilfs/nilfs_vnops.c:1.14 Tue Sep 27 01:34:41 2011 +++ src/sys/fs/nilfs/nilfs_vnops.c Sun Oct 16 12:41:45 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: nilfs_vnops.c,v 1.14 2011/09/27 01:34:41 christos Exp $ */ +/* $NetBSD: nilfs_vnops.c,v 1.15 2011/10/16 12:41:45 hannken Exp $ */ /* * Copyright (c) 2008, 2009 Reinoud Zandijk @@ -28,7 +28,7 @@ #include sys/cdefs.h #ifndef lint -__KERNEL_RCSID(0, $NetBSD: nilfs_vnops.c,v 1.14 2011/09/27 01:34:41 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: nilfs_vnops.c,v 1.15 2011/10/16 12:41:45 hannken Exp $); #endif /* not lint */ @@ -1330,13 +1330,15 @@ nilfs_rename(void *v) } /* get info about the node to be moved */ + vn_lock(fvp, LK_SHARED | LK_RETRY); error = VOP_GETATTR(fvp, fvap, FSCRED); + VOP_UNLOCK(fvp); KASSERT(error == 0); /* check when to delete the old already existing entry */ if (tvp) { /* get info about the node to be moved to */ - error = VOP_GETATTR(fvp, tvap, FSCRED); + error = VOP_GETATTR(tvp, tvap, FSCRED); KASSERT(error == 0); /* if both dirs, make sure the destination is empty */
CVS commit: src/tests/lib/libm
Module Name:src Committed By: jruoho Date: Sun Oct 16 13:42:22 UTC 2011 Modified Files: src/tests/lib/libm: Makefile t_cosh.c t_sinh.c Log Message: As couple of checks fails on i386/qemu, reduce tolerance. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/tests/lib/libm/Makefile cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_cosh.c \ src/tests/lib/libm/t_sinh.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libm/Makefile diff -u src/tests/lib/libm/Makefile:1.15 src/tests/lib/libm/Makefile:1.16 --- src/tests/lib/libm/Makefile:1.15 Sun Oct 16 08:25:55 2011 +++ src/tests/lib/libm/Makefile Sun Oct 16 13:42:22 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2011/10/16 08:25:55 jruoho Exp $ +# $NetBSD: Makefile,v 1.16 2011/10/16 13:42:22 jruoho Exp $ .include bsd.own.mk @@ -17,6 +17,7 @@ TESTS_C+= t_infinity TESTS_C+= t_ldexp TESTS_C+= t_log TESTS_C+= t_pow +TESTS_C+= t_rint TESTS_C+= t_round TESTS_C+= t_scalbn TESTS_C+= t_sin @@ -28,4 +29,8 @@ TESTS_C+= t_tanh LDADD+= -lm #COPTS+= -Wfloat-equal +.if ${MACHINE_ARCH} == alpha +COPTS+= -mieee +.endif + .include bsd.test.mk Index: src/tests/lib/libm/t_cosh.c diff -u src/tests/lib/libm/t_cosh.c:1.1 src/tests/lib/libm/t_cosh.c:1.2 --- src/tests/lib/libm/t_cosh.c:1.1 Sun Oct 16 07:40:47 2011 +++ src/tests/lib/libm/t_cosh.c Sun Oct 16 13:42:22 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_cosh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $ */ +/* $NetBSD: t_cosh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include sys/cdefs.h -__RCSID($NetBSD: t_cosh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $); +__RCSID($NetBSD: t_cosh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $); #include atf-c.h #include math.h @@ -48,7 +48,7 @@ ATF_TC_BODY(cosh_def, tc) { #ifndef __vax__ const double x[] = { -9.0, -1.0, -0.05, 0.0, 1.0, 10.0, 20.0 }; - const double eps = 1.0e-16; + const double eps = 1.0e-8; double y, z; size_t i; Index: src/tests/lib/libm/t_sinh.c diff -u src/tests/lib/libm/t_sinh.c:1.1 src/tests/lib/libm/t_sinh.c:1.2 --- src/tests/lib/libm/t_sinh.c:1.1 Sun Oct 16 07:40:47 2011 +++ src/tests/lib/libm/t_sinh.c Sun Oct 16 13:42:22 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_sinh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $ */ +/* $NetBSD: t_sinh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include sys/cdefs.h -__RCSID($NetBSD: t_sinh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $); +__RCSID($NetBSD: t_sinh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $); #include atf-c.h #include math.h @@ -48,7 +48,7 @@ ATF_TC_BODY(sinh_def, tc) { #ifndef __vax__ const double x[] = { -9.0, -1.0, -0.05, 0.0, 1.0, 10.0, 20.0 }; - const double eps = 1.0e-16; + const double eps = 1.0e-8; double y, z; size_t i; @@ -161,7 +161,7 @@ ATF_TC_BODY(sinhf_def, tc) { #ifndef __vax__ const float x[] = { -9.0, -1.0, -0.05, 0.0, 1.0, 10.0, 20.0 }; - const float eps = 1.0e-7; + const float eps = 1.0e-4; float y, z; size_t i;
CVS commit: src/tests/lib/libm
Module Name:src Committed By: jruoho Date: Sun Oct 16 13:43:26 UTC 2011 Modified Files: src/tests/lib/libm: Makefile Log Message: Remove 't_rint' as it was committed accidentally. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/tests/lib/libm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libm/Makefile diff -u src/tests/lib/libm/Makefile:1.16 src/tests/lib/libm/Makefile:1.17 --- src/tests/lib/libm/Makefile:1.16 Sun Oct 16 13:42:22 2011 +++ src/tests/lib/libm/Makefile Sun Oct 16 13:43:26 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2011/10/16 13:42:22 jruoho Exp $ +# $NetBSD: Makefile,v 1.17 2011/10/16 13:43:26 jruoho Exp $ .include bsd.own.mk @@ -17,7 +17,6 @@ TESTS_C+= t_infinity TESTS_C+= t_ldexp TESTS_C+= t_log TESTS_C+= t_pow -TESTS_C+= t_rint TESTS_C+= t_round TESTS_C+= t_scalbn TESTS_C+= t_sin
CVS commit: src/bin/ksh
Module Name:src Committed By: joerg Date: Sun Oct 16 17:12:11 UTC 2011 Modified Files: src/bin/ksh: Makefile c_ksh.c exec.c expr.c jobs.c lex.c main.c misc.c var.c Log Message: Don't use non-literal format strings. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/bin/ksh/Makefile cvs rdiff -u -r1.17 -r1.18 src/bin/ksh/c_ksh.c cvs rdiff -u -r1.13 -r1.14 src/bin/ksh/exec.c cvs rdiff -u -r1.8 -r1.9 src/bin/ksh/expr.c cvs rdiff -u -r1.9 -r1.10 src/bin/ksh/jobs.c cvs rdiff -u -r1.14 -r1.15 src/bin/ksh/lex.c src/bin/ksh/main.c \ src/bin/ksh/misc.c cvs rdiff -u -r1.16 -r1.17 src/bin/ksh/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/ksh/Makefile diff -u src/bin/ksh/Makefile:1.29 src/bin/ksh/Makefile:1.30 --- src/bin/ksh/Makefile:1.29 Sun Aug 14 10:40:25 2011 +++ src/bin/ksh/Makefile Sun Oct 16 17:12:11 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2011/08/14 10:40:25 christos Exp $ +# $NetBSD: Makefile,v 1.30 2011/10/16 17:12:11 joerg Exp $ WARNS=3 @@ -47,6 +47,4 @@ ksh.1: ksh.Man mkman ${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man ksh.1.tmp \ mv ksh.1.tmp ksh.1 -CWARNFLAGS.clang+= -Wno-format-security - .include bsd.prog.mk Index: src/bin/ksh/c_ksh.c diff -u src/bin/ksh/c_ksh.c:1.17 src/bin/ksh/c_ksh.c:1.18 --- src/bin/ksh/c_ksh.c:1.17 Wed Aug 31 16:24:54 2011 +++ src/bin/ksh/c_ksh.c Sun Oct 16 17:12:11 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: c_ksh.c,v 1.17 2011/08/31 16:24:54 plunky Exp $ */ +/* $NetBSD: c_ksh.c,v 1.18 2011/10/16 17:12:11 joerg Exp $ */ /* * built-in Korn commands: c_* @@ -6,7 +6,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: c_ksh.c,v 1.17 2011/08/31 16:24:54 plunky Exp $); +__RCSID($NetBSD: c_ksh.c,v 1.18 2011/10/16 17:12:11 joerg Exp $); #endif #include sh.h @@ -573,7 +573,7 @@ c_whence(wp) break; } if (vflag || !ret) - shprintf(newline); + shprintf(%s, newline); } return ret; } @@ -873,7 +873,7 @@ c_typeset(wp) else print_value_quoted(s); } - shprintf(newline); + shprintf(%s, newline); } /* Only report first `element' of an array with * no set elements. @@ -964,7 +964,7 @@ c_alias(wp) shf_putc('=', shl_stdout); print_value_quoted(ap-val.s); } -shprintf(newline); +shprintf(%s, newline); } } @@ -988,7 +988,7 @@ c_alias(wp) shf_putc('=', shl_stdout); print_value_quoted(ap-val.s); } -shprintf(newline); +shprintf(%s, newline); } else { shprintf(%s alias not found\n, alias); rv = 1; @@ -1236,7 +1236,7 @@ c_kill(wp) usage: kill [ -s signame | -signum | -signame ] {pid|job}...\n\ kill -l [exit_status]\n ); - bi_errorf(null); + bi_errorf(%s, null); return 1; } @@ -1257,7 +1257,7 @@ c_kill(wp) for (i = 1; i SIGNALS; i++, p = space) if (sigtraps[i].name) shprintf(%s%s, p, sigtraps[i].name); - shprintf(newline); + shprintf(%s, newline); } else { int w, si; int mess_width; Index: src/bin/ksh/exec.c diff -u src/bin/ksh/exec.c:1.13 src/bin/ksh/exec.c:1.14 --- src/bin/ksh/exec.c:1.13 Mon Apr 24 19:58:20 2006 +++ src/bin/ksh/exec.c Sun Oct 16 17:12:11 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: exec.c,v 1.13 2006/04/24 19:58:20 christos Exp $ */ +/* $NetBSD: exec.c,v 1.14 2011/10/16 17:12:11 joerg Exp $ */ /* * execute command tree @@ -6,7 +6,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: exec.c,v 1.13 2006/04/24 19:58:20 christos Exp $); +__RCSID($NetBSD: exec.c,v 1.14 2011/10/16 17:12:11 joerg Exp $); #endif @@ -151,7 +151,7 @@ execute(t, flags) */ if (tp tp-type == CSHELL (tp-flag SPEC_BI)) - errorf(null); + errorf(%s, null); /* Deal with FERREXIT, quitenv(), etc. */ goto Break; } Index: src/bin/ksh/expr.c diff -u src/bin/ksh/expr.c:1.8 src/bin/ksh/expr.c:1.9 --- src/bin/ksh/expr.c:1.8 Sun Jun 26 19:09:00 2005 +++ src/bin/ksh/expr.c Sun Oct 16 17:12:11 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: expr.c,v 1.8 2005/06/26 19:09:00 christos Exp $ */ +/* $NetBSD: expr.c,v 1.9 2011/10/16 17:12:11 joerg Exp $ */ /* * Korn expression evaluation @@ -9,7 +9,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: expr.c,v 1.8 2005/06/26 19:09:00 christos Exp $); +__RCSID($NetBSD: expr.c,v 1.9 2011/10/16 17:12:11 joerg Exp $); #endif @@ -193,7 +193,7 @@ v_evaluate(vp, expr, error_ok) if (i == LAEXPR) { if (error_ok == KSH_RETURN_ERROR) return 0; - errorf(null); + errorf(%s, null); } unwind(i); /*NOTREACHED*/ Index: src/bin/ksh/jobs.c diff -u src/bin/ksh/jobs.c:1.9 src/bin/ksh/jobs.c:1.10 --- src/bin/ksh/jobs.c:1.9 Sat Feb 25 00:58:34 2006 +++ src/bin/ksh/jobs.c Sun Oct 16 17:12:11 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: jobs.c,v 1.9 2006/02/25 00:58:34 wiz Exp $ */ +/* $NetBSD: jobs.c,v 1.10 2011/10/16 17:12:11 joerg Exp $ */ /* *
CVS commit: src/external/public-domain/xz
Module Name:src Committed By: joerg Date: Sun Oct 16 17:24:33 UTC 2011 Modified Files: src/external/public-domain/xz: Makefile.inc Log Message: -Wno-format-security is no longer needed with clang, now that libintl.h is fixed. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/public-domain/xz/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/public-domain/xz/Makefile.inc diff -u src/external/public-domain/xz/Makefile.inc:1.2 src/external/public-domain/xz/Makefile.inc:1.3 --- src/external/public-domain/xz/Makefile.inc:1.2 Thu May 26 12:56:27 2011 +++ src/external/public-domain/xz/Makefile.inc Sun Oct 16 17:24:32 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.2 2011/05/26 12:56:27 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.3 2011/10/16 17:24:32 joerg Exp $ XZHOMEPAGE= http://tukaani.org/xz/ XZVERSION= 5.0.0 @@ -13,5 +13,3 @@ CPPFLAGS+= -DHAVE_CONFIG_H CFLAGS+= -std=c99 WARNS= 2 - -CWARNFLAGS.clang+= -Wno-format-security \ No newline at end of file
CVS commit: src/external/public-domain/sqlite
Module Name:src Committed By: joerg Date: Sun Oct 16 17:24:50 UTC 2011 Modified Files: src/external/public-domain/sqlite: Makefile.inc Log Message: Build with -DSQLITE_ENABLE_FTS3_PARENTHESIS To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/public-domain/sqlite/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/public-domain/sqlite/Makefile.inc diff -u src/external/public-domain/sqlite/Makefile.inc:1.1 src/external/public-domain/sqlite/Makefile.inc:1.2 --- src/external/public-domain/sqlite/Makefile.inc:1.1 Thu Oct 13 21:40:27 2011 +++ src/external/public-domain/sqlite/Makefile.inc Sun Oct 16 17:24:50 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.1 2011/10/13 21:40:27 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.2 2011/10/16 17:24:50 joerg Exp $ WARNS= 2 @@ -8,6 +8,7 @@ SRCDIR:= ${.PARSEDIR}/dist CPPFLAGS+= -DHAVE_READLINE=1 -DHAVE_LOCALTIME_R \ -DSQLITE_HAVE_ISNAN -DSQLITE_ENABLE_FTS4 \ + -DSQLITE_ENABLE_FTS3_PARENTHESIS \ -DSQLITE_ENABLE_LOAD_EXTENSION CWARNFLAGS+= -Wno-shadow -Wno-unused
CVS commit: src/lib/libc/time
Module Name:src Committed By: christos Date: Sun Oct 16 17:59:32 UTC 2011 Modified Files: src/lib/libc/time: Makefile ctime.3 localtime.c Log Message: Add code (not enabled) that allows mktime() to return a value for times in the DST gap when tm_isdst == -1, like glibc does. Document both behaviors. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libc/time/Makefile cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/ctime.3 cvs rdiff -u -r1.58 -r1.59 src/lib/libc/time/localtime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/time/Makefile diff -u src/lib/libc/time/Makefile:1.4 src/lib/libc/time/Makefile:1.5 --- src/lib/libc/time/Makefile:1.4 Sun Sep 4 06:10:26 2011 +++ src/lib/libc/time/Makefile Sun Oct 16 13:59:32 2011 @@ -113,6 +113,8 @@ LDLIBS= # -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1 # if you do not want run time warnings about formats that may cause # year 2000 grief +# -DNO_ERROR_IN_DST_GAP=1 +# if you want mktime() not to return an error in the DST gap. # -DZIC_MAX_ABBR_LEN_WO_WARN=3 # (or some other number) to set the maximum time zone abbreviation length # that zic will accept without a warning (the default is 6) Index: src/lib/libc/time/ctime.3 diff -u src/lib/libc/time/ctime.3:1.42 src/lib/libc/time/ctime.3:1.43 --- src/lib/libc/time/ctime.3:1.42 Sat Jul 9 05:12:11 2011 +++ src/lib/libc/time/ctime.3 Sun Oct 16 13:59:32 2011 @@ -1,8 +1,8 @@ -.\ $NetBSD: ctime.3,v 1.42 2011/07/09 09:12:11 plunky Exp $ +.\ $NetBSD: ctime.3,v 1.43 2011/10/16 17:59:32 christos Exp $ .\ .\ XXX: Lincense missing? .\ -.Dd July 9, 2011 +.Dd October 16, 2011 .Dt CTIME 3 .Os .Sh NAME @@ -245,6 +245,19 @@ are determined. The function returns the specified calendar time; if the calendar time cannot be represented, it returns .Va (time_t)-1 . +This can happen either because the resulting conversion would not fit +in a +.Vt time_t +variable, or because the time specified happens to be in the daylight +savings gap and +.Fa tm_isdst +was set to +.Dv \-1 . +Other +.Fn mktime +implementations do not return an error in the second case and return +the appropriate time offset after the daylight savings gap. +There is code to mimick this behavior, but it is not enabled by default. .It Fn mktime_z tz tm The .Fn mktime_z Index: src/lib/libc/time/localtime.c diff -u src/lib/libc/time/localtime.c:1.58 src/lib/libc/time/localtime.c:1.59 --- src/lib/libc/time/localtime.c:1.58 Sun Sep 4 06:10:26 2011 +++ src/lib/libc/time/localtime.c Sun Oct 16 13:59:32 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: localtime.c,v 1.58 2011/09/04 10:10:26 christos Exp $ */ +/* $NetBSD: localtime.c,v 1.59 2011/10/16 17:59:32 christos Exp $ */ /* ** This file is in the public domain, so clarified as of @@ -10,7 +10,7 @@ #if 0 static char elsieid[] = @(#)localtime.c 8.17; #else -__RCSID($NetBSD: localtime.c,v 1.58 2011/09/04 10:10:26 christos Exp $); +__RCSID($NetBSD: localtime.c,v 1.59 2011/10/16 17:59:32 christos Exp $); #endif #endif /* LIBC_SCCS and not lint */ @@ -1912,6 +1912,27 @@ time2sub(const timezone_t sp, struct tm return WRONG; --hi; } +#ifdef NO_ERROR_IN_DST_GAP + if (lo - 1 == hi yourtm.tm_isdst 0) { +time_t off = 0; +for (i = sp-typecnt - 1; i = 0; --i) { + for (j = sp-typecnt - 1; j = 0; --j) { + if (sp-ttis[j].tt_isdst == + sp-ttis[i].tt_isdst) + continue; + off = sp-ttis[j].tt_gmtoff - + sp-ttis[i].tt_gmtoff; + break; + } + if (j = 0) + break; +} +if (off) { + t = hi + off; + break; +} + } +#endif if (lo hi) return WRONG; if (dir 0)
CVS commit: src/external/gpl3/gdb/lib/libreadline
Module Name:src Committed By: christos Date: Sun Oct 16 19:41:07 UTC 2011 Modified Files: src/external/gpl3/gdb/lib/libreadline: Makefile Log Message: make this compile. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libreadline/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/lib/libreadline/Makefile diff -u src/external/gpl3/gdb/lib/libreadline/Makefile:1.1 src/external/gpl3/gdb/lib/libreadline/Makefile:1.2 --- src/external/gpl3/gdb/lib/libreadline/Makefile:1.1 Sun Sep 25 23:02:46 2011 +++ src/external/gpl3/gdb/lib/libreadline/Makefile Sun Oct 16 15:41:07 2011 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2011/09/26 03:02:46 christos Exp $ +# $NetBSD: Makefile,v 1.2 2011/10/16 19:41:07 christos Exp $ .include bsd.own.mk +.include ../Makefile.inc LIBISPRIVATE= yes @@ -10,10 +11,9 @@ NOGCCERROR= yes .include ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk -DIST= ${NETBSDSRCDIR}/gnu/dist/gdb6 - CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/arch/${MACHINE_ARCH} \ -I${DIST}/ \ + -DHAVE_SYS_IOCTL_H \ ${G_CCFLAGS:M-DRL_*} \ SRCS= ${G_OBJECTS:.o=.c}
CVS commit: src/external/gpl3/gdb/dist/readline
Module Name:src Committed By: christos Date: Sun Oct 16 19:41:30 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/readline: display.c rltty.c terminal.c Log Message: add necessary headers for this to compile without warnings To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/readline/display.c \ src/external/gpl3/gdb/dist/readline/rltty.c \ src/external/gpl3/gdb/dist/readline/terminal.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/readline/display.c diff -u src/external/gpl3/gdb/dist/readline/display.c:1.1.1.1 src/external/gpl3/gdb/dist/readline/display.c:1.2 --- src/external/gpl3/gdb/dist/readline/display.c:1.1.1.1 Sat Sep 24 15:56:39 2011 +++ src/external/gpl3/gdb/dist/readline/display.c Sun Oct 16 15:41:30 2011 @@ -47,6 +47,7 @@ /* System-specific feature definitions and include files. */ #include rldefs.h +#include rltty.h #include rlmbutil.h /* Termcap library stuff. */ Index: src/external/gpl3/gdb/dist/readline/rltty.c diff -u src/external/gpl3/gdb/dist/readline/rltty.c:1.1.1.1 src/external/gpl3/gdb/dist/readline/rltty.c:1.2 --- src/external/gpl3/gdb/dist/readline/rltty.c:1.1.1.1 Sat Sep 24 15:56:44 2011 +++ src/external/gpl3/gdb/dist/readline/rltty.c Sun Oct 16 15:41:30 2011 @@ -37,9 +37,9 @@ #include rldefs.h -#if defined (GWINSZ_IN_SYS_IOCTL) +#if defined (HAVE_SYS_IOCTL_H) # include sys/ioctl.h -#endif /* GWINSZ_IN_SYS_IOCTL */ +#endif /* HAVE_SYS_IOCTL_H */ #include rltty.h #include readline.h Index: src/external/gpl3/gdb/dist/readline/terminal.c diff -u src/external/gpl3/gdb/dist/readline/terminal.c:1.1.1.1 src/external/gpl3/gdb/dist/readline/terminal.c:1.2 --- src/external/gpl3/gdb/dist/readline/terminal.c:1.1.1.1 Sat Sep 24 15:56:45 2011 +++ src/external/gpl3/gdb/dist/readline/terminal.c Sun Oct 16 15:41:30 2011 @@ -32,6 +32,10 @@ # include sys/file.h #endif /* HAVE_SYS_FILE_H */ +#if defined (HAVE_SYS_IOCTL_H) +#include sys/ioctl.h +#endif /* HAVE_SYS_IOCTL_H */ + #if defined (HAVE_UNISTD_H) # include unistd.h #endif /* HAVE_UNISTD_H */
CVS commit: src/external/gpl3/gdb/dist/gdb
Module Name:src Committed By: christos Date: Sun Oct 16 19:45:47 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/gdb: shnbsd-tdep.c Log Message: make this compile again. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c diff -u src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.2 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.3 --- src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.2 Sun Sep 25 12:30:25 2011 +++ src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c Sun Oct 16 15:45:47 2011 @@ -268,8 +268,9 @@ shnbsd_get_next_pc (CORE_ADDR pc) int reg; CORE_ADDR next_pc; int delay_slot; + enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch); - insn = read_memory_integer (pc, sizeof (insn)); + insn = read_memory_integer (pc, sizeof (insn), byte_order); delay_slot = 0; /* As we cannot step through the delay slot, we break at the target @@ -356,7 +357,8 @@ shnbsd_get_next_pc (CORE_ADDR pc) which would be executed. */ void -shnbsd_software_single_step (enum target_signal sig, +shnbsd_software_single_step (struct gdbarch *gdbarch, + enum target_signal sig, int insert_breakpoints_p) { static CORE_ADDR next_pc; @@ -372,7 +374,7 @@ shnbsd_software_single_step (enum target if (sig == 0 || pc != next_pc) next_pc = shnbsd_get_next_pc (pc); - insert_single_step_breakpoint (next_pc); + insert_single_step_breakpoint (gdbarch, next_pc); } else remove_single_step_breakpoints (); @@ -450,13 +452,13 @@ static const struct tramp_frame shnbsd_s static void shnbsd_sigtramp_cache_init (const struct tramp_frame *self, - struct frame_info *next_frame, - struct trad_frame_cache *this_cache, - CORE_ADDR func) + struct frame_info *next_frame, + struct trad_frame_cache *this_cache, + CORE_ADDR func) { struct gdbarch *gdbarch = get_frame_arch (next_frame); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - CORE_ADDR sp = frame_unwind_register_unsigned (next_frame, SP_REGNUM); + CORE_ADDR sp = get_frame_register_unsigned (next_frame, SP_REGNUM); CORE_ADDR base; const int *reg_offset; int num_regs;
CVS commit: src/external/bsd/less/dist
Module Name:src Committed By: jym Date: Sun Oct 16 21:02:32 UTC 2011 Modified Files: src/external/bsd/less/dist: less.1 Log Message: Document the MORE environment variable. Noted by James K. Lowden jklowden _at_ schemamania _dot_ org in a private mail. Will submit upstream. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/less/dist/less.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/bsd/less/dist/less.1 diff -u src/external/bsd/less/dist/less.1:1.1.1.1 src/external/bsd/less/dist/less.1:1.2 --- src/external/bsd/less/dist/less.1:1.1.1.1 Sun Jul 3 18:01:00 2011 +++ src/external/bsd/less/dist/less.1 Sun Oct 16 21:02:31 2011 @@ -1666,6 +1666,10 @@ Takes precedence over the number of line (But if you have a windowing system which supports TIOCGWINSZ or WIOCGETD, the window system's idea of the screen size takes precedence over the LINES and COLUMNS environment variables.) +.IP MORE +Options which are passed to +.I more +automatically. .IP PATH User's search path (used to find a lesskey file on MS-DOS and OS/2 systems).
CVS commit: src/external/public-domain/sqlite/bin
Module Name:src Committed By: he Date: Sun Oct 16 21:31:16 UTC 2011 Modified Files: src/external/public-domain/sqlite/bin: Makefile Log Message: Make this build statically also by linking with -lterminfo as well. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/public-domain/sqlite/bin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/public-domain/sqlite/bin/Makefile diff -u src/external/public-domain/sqlite/bin/Makefile:1.1 src/external/public-domain/sqlite/bin/Makefile:1.2 --- src/external/public-domain/sqlite/bin/Makefile:1.1 Thu Oct 13 21:40:27 2011 +++ src/external/public-domain/sqlite/bin/Makefile Sun Oct 16 21:31:15 2011 @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.1 2011/10/13 21:40:27 joerg Exp $ +# $NetBSD: Makefile,v 1.2 2011/10/16 21:31:15 he Exp $ PROG= sqlite3 SRCS= shell.c -DPADD+= ${LIBSQLITE3} ${LIBEDIT} -LDADD+= -lsqlite3 -ledit +DPADD+= ${LIBSQLITE3} ${LIBEDIT} ${LIBTERIMINFO} +LDADD+= -lsqlite3 -ledit -lterminfo NOMAN=
CVS commit: [netbsd-5] src/sys/arch/i386/stand/lib
Module Name:src Committed By: riz Date: Sun Oct 16 23:38:52 UTC 2011 Modified Files: src/sys/arch/i386/stand/lib [netbsd-5]: gatea20.c Log Message: Pull up following revision(s) (requested by jmcneill in ticket #923): sys/arch/i386/stand/lib/gatea20.c: revision 1.12 PR# kern/39726: Soekris 5501-60 boot/bootxx 120 second delay PR# port-i386/41162: A20 gate legacy hook cause long pxeboot delay on Soekris net5501 Remove calls to delay() before polling KBD registers in gateA20(). To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.4.1 src/sys/arch/i386/stand/lib/gatea20.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/i386/stand/lib/gatea20.c diff -u src/sys/arch/i386/stand/lib/gatea20.c:1.11 src/sys/arch/i386/stand/lib/gatea20.c:1.11.4.1 --- src/sys/arch/i386/stand/lib/gatea20.c:1.11 Tue Oct 14 14:18:11 2008 +++ src/sys/arch/i386/stand/lib/gatea20.c Sun Oct 16 23:38:52 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: gatea20.c,v 1.11 2008/10/14 14:18:11 ad Exp $ */ +/* $NetBSD: gatea20.c,v 1.11.4.1 2011/10/16 23:38:52 riz Exp $ */ /* extracted from freebsd:sys/i386/boot/biosboot/io.c */ @@ -67,12 +67,10 @@ gateA20(void) outb(K_CMD, KC_CMD_WOUT); - delay(100); while (inb(K_STATUS) K_IBUF_FUL); outb(K_RDWR, x_20); - delay(100); while (inb(K_STATUS) K_IBUF_FUL); while (inb(K_STATUS) K_OBUF_FUL)
CVS commit: [netbsd-5] src/sbin/ifconfig
Module Name:src Committed By: riz Date: Sun Oct 16 23:48:11 UTC 2011 Modified Files: src/sbin/ifconfig [netbsd-5]: carp.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1670): sbin/ifconfig/carp.c: revision 1.13 This should fix 'carpdev lt;ifnamegt;' or, at least, not break it more badly than before. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.12.2.1 src/sbin/ifconfig/carp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/ifconfig/carp.c diff -u src/sbin/ifconfig/carp.c:1.12 src/sbin/ifconfig/carp.c:1.12.2.1 --- src/sbin/ifconfig/carp.c:1.12 Tue Jul 15 21:27:58 2008 +++ src/sbin/ifconfig/carp.c Sun Oct 16 23:48:11 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: carp.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $ */ +/* $NetBSD: carp.c,v 1.12.2.1 2011/10/16 23:48:11 riz Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -28,7 +28,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: carp.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $); +__RCSID($NetBSD: carp.c,v 1.12.2.1 2011/10/16 23:48:11 riz Exp $); #endif /* not lint */ #include sys/param.h @@ -257,18 +257,18 @@ int setcarpdev(prop_dictionary_t env, prop_dictionary_t oenv) { struct carpreq carpr; - prop_data_t data; + prop_string_t s; - data = (prop_data_t)prop_dictionary_get(env, carpdev); - if (data == NULL) { + s = (prop_string_t)prop_dictionary_get(env, carpdev); + if (s == NULL) { errno = ENOENT; return -1; } carp_get(env, carpr); - strlcpy(carpr.carpr_carpdev, prop_data_data_nocopy(data), - MIN(sizeof(carpr.carpr_carpdev), prop_data_size(data))); + strlcpy(carpr.carpr_carpdev, prop_string_cstring_nocopy(s), + sizeof(carpr.carpr_carpdev)); carp_set(env, carpr); return 0;
CVS commit: [netbsd-5-1] src/sbin/ifconfig
Module Name:src Committed By: riz Date: Sun Oct 16 23:48:28 UTC 2011 Modified Files: src/sbin/ifconfig [netbsd-5-1]: carp.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1670): sbin/ifconfig/carp.c: revision 1.13 This should fix 'carpdev lt;ifnamegt;' or, at least, not break it more badly than before. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.12.10.1 src/sbin/ifconfig/carp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/ifconfig/carp.c diff -u src/sbin/ifconfig/carp.c:1.12 src/sbin/ifconfig/carp.c:1.12.10.1 --- src/sbin/ifconfig/carp.c:1.12 Tue Jul 15 21:27:58 2008 +++ src/sbin/ifconfig/carp.c Sun Oct 16 23:48:27 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: carp.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $ */ +/* $NetBSD: carp.c,v 1.12.10.1 2011/10/16 23:48:27 riz Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -28,7 +28,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: carp.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $); +__RCSID($NetBSD: carp.c,v 1.12.10.1 2011/10/16 23:48:27 riz Exp $); #endif /* not lint */ #include sys/param.h @@ -257,18 +257,18 @@ int setcarpdev(prop_dictionary_t env, prop_dictionary_t oenv) { struct carpreq carpr; - prop_data_t data; + prop_string_t s; - data = (prop_data_t)prop_dictionary_get(env, carpdev); - if (data == NULL) { + s = (prop_string_t)prop_dictionary_get(env, carpdev); + if (s == NULL) { errno = ENOENT; return -1; } carp_get(env, carpr); - strlcpy(carpr.carpr_carpdev, prop_data_data_nocopy(data), - MIN(sizeof(carpr.carpr_carpdev), prop_data_size(data))); + strlcpy(carpr.carpr_carpdev, prop_string_cstring_nocopy(s), + sizeof(carpr.carpr_carpdev)); carp_set(env, carpr); return 0;
CVS commit: [netbsd-5-1] src/doc
Module Name:src Committed By: riz Date: Sun Oct 16 23:48:47 UTC 2011 Modified Files: src/doc [netbsd-5-1]: CHANGES-5.1.1 Log Message: Ticket 1670. To generate a diff of this commit: cvs rdiff -u -r1.1.2.33 -r1.1.2.34 src/doc/CHANGES-5.1.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-5.1.1 diff -u src/doc/CHANGES-5.1.1:1.1.2.33 src/doc/CHANGES-5.1.1:1.1.2.34 --- src/doc/CHANGES-5.1.1:1.1.2.33 Mon Aug 22 17:50:28 2011 +++ src/doc/CHANGES-5.1.1 Sun Oct 16 23:48:47 2011 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-5.1.1,v 1.1.2.33 2011/08/22 17:50:28 riz Exp $ +# $NetBSD: CHANGES-5.1.1,v 1.1.2.34 2011/10/16 23:48:47 riz Exp $ A complete list of changes from the NetBSD 5.1 release to the NetBSD 5.1.1 release: @@ -2510,3 +2510,8 @@ xsrc/xfree/xc/lib/font/fontfile/decompre Address CVE-2011-2895, buffer overflow in decompression. [joerg, ticket #1661] +sbin/ifconfig/carp.c1.13 + + Stop ifconfig dumping core when attaching carp to an interface. + [bouyer, ticket #1670] +
CVS commit: [netbsd-5-0] src/sbin/ifconfig
Module Name:src Committed By: riz Date: Sun Oct 16 23:49:02 UTC 2011 Modified Files: src/sbin/ifconfig [netbsd-5-0]: carp.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1670): sbin/ifconfig/carp.c: revision 1.13 This should fix 'carpdev lt;ifnamegt;' or, at least, not break it more badly than before. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.12.6.1 src/sbin/ifconfig/carp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/ifconfig/carp.c diff -u src/sbin/ifconfig/carp.c:1.12 src/sbin/ifconfig/carp.c:1.12.6.1 --- src/sbin/ifconfig/carp.c:1.12 Tue Jul 15 21:27:58 2008 +++ src/sbin/ifconfig/carp.c Sun Oct 16 23:49:02 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: carp.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $ */ +/* $NetBSD: carp.c,v 1.12.6.1 2011/10/16 23:49:02 riz Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -28,7 +28,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: carp.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $); +__RCSID($NetBSD: carp.c,v 1.12.6.1 2011/10/16 23:49:02 riz Exp $); #endif /* not lint */ #include sys/param.h @@ -257,18 +257,18 @@ int setcarpdev(prop_dictionary_t env, prop_dictionary_t oenv) { struct carpreq carpr; - prop_data_t data; + prop_string_t s; - data = (prop_data_t)prop_dictionary_get(env, carpdev); - if (data == NULL) { + s = (prop_string_t)prop_dictionary_get(env, carpdev); + if (s == NULL) { errno = ENOENT; return -1; } carp_get(env, carpr); - strlcpy(carpr.carpr_carpdev, prop_data_data_nocopy(data), - MIN(sizeof(carpr.carpr_carpdev), prop_data_size(data))); + strlcpy(carpr.carpr_carpdev, prop_string_cstring_nocopy(s), + sizeof(carpr.carpr_carpdev)); carp_set(env, carpr); return 0;
CVS commit: [netbsd-5-0] src/doc
Module Name:src Committed By: riz Date: Sun Oct 16 23:49:21 UTC 2011 Modified Files: src/doc [netbsd-5-0]: CHANGES-5.0.3 Log Message: Ticket 1670. To generate a diff of this commit: cvs rdiff -u -r1.1.2.47 -r1.1.2.48 src/doc/CHANGES-5.0.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-5.0.3 diff -u src/doc/CHANGES-5.0.3:1.1.2.47 src/doc/CHANGES-5.0.3:1.1.2.48 --- src/doc/CHANGES-5.0.3:1.1.2.47 Mon Aug 22 17:50:07 2011 +++ src/doc/CHANGES-5.0.3 Sun Oct 16 23:49:21 2011 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-5.0.3,v 1.1.2.47 2011/08/22 17:50:07 riz Exp $ +# $NetBSD: CHANGES-5.0.3,v 1.1.2.48 2011/10/16 23:49:21 riz Exp $ A complete list of changes from the NetBSD 5.0.2 release to the NetBSD 5.0.3 release: @@ -2814,3 +2814,8 @@ xsrc/xfree/xc/lib/font/fontfile/decompre Address CVE-2011-2895, buffer overflow in decompression. [joerg, ticket #1661] +sbin/ifconfig/carp.c1.13 + + Stop ifconfig dumping core when attaching carp to an interface. + [bouyer, ticket #1670] +
CVS commit: [netbsd-5] src/gnu/dist/xcvs
Module Name:src Committed By: riz Date: Mon Oct 17 00:02:11 UTC 2011 Modified Files: src/gnu/dist/xcvs/doc [netbsd-5]: cvs.1 cvs.texinfo src/gnu/dist/xcvs/src [netbsd-5]: patch.c Log Message: Pull up following revision(s) (requested by spz in ticket #1673): external/gpl2/xcvs/dist/src/patch.c: revision 1.4 external/gpl2/xcvs/dist/src/patch.c: revision 1.5 external/gpl2/xcvs/dist/doc/cvs.texinfo: revision 1.2 external/gpl2/xcvs/dist/doc/cvs.1: revision 1.2 implement cvs rdiff -p. (someone please upate the manual for me :) Document 'cvs rdiff -p'. To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.1.1.2.26.1 src/gnu/dist/xcvs/doc/cvs.1 \ src/gnu/dist/xcvs/doc/cvs.texinfo cvs rdiff -u -r1.3 -r1.3.26.1 src/gnu/dist/xcvs/src/patch.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/gnu/dist/xcvs/doc/cvs.1 diff -u src/gnu/dist/xcvs/doc/cvs.1:1.1.1.2 src/gnu/dist/xcvs/doc/cvs.1:1.1.1.2.26.1 --- src/gnu/dist/xcvs/doc/cvs.1:1.1.1.2 Fri Jun 23 22:25:59 2006 +++ src/gnu/dist/xcvs/doc/cvs.1 Mon Oct 17 00:02:11 2011 @@ -3205,6 +3205,11 @@ see node `Keyword substitution\(aq in th Local; don\(aqt descend subdirectories. .SP .IP 0 +\fB-p\fR +.IP 2 +Show which C function each change is in. +.SP +.IP 0 \fB-R\fR .IP 2 Examine directories recursively. This option is on by default. Index: src/gnu/dist/xcvs/doc/cvs.texinfo diff -u src/gnu/dist/xcvs/doc/cvs.texinfo:1.1.1.2 src/gnu/dist/xcvs/doc/cvs.texinfo:1.1.1.2.26.1 --- src/gnu/dist/xcvs/doc/cvs.texinfo:1.1.1.2 Fri Jun 23 22:25:58 2006 +++ src/gnu/dist/xcvs/doc/cvs.texinfo Mon Oct 17 00:02:11 2011 @@ -10533,6 +10533,9 @@ Process keywords according to @var{kflag @item -l Local; don't descend subdirectories. +@item -p +Show which C function each change is in. + @item -R Examine directories recursively. This option is on by default. Index: src/gnu/dist/xcvs/src/patch.c diff -u src/gnu/dist/xcvs/src/patch.c:1.3 src/gnu/dist/xcvs/src/patch.c:1.3.26.1 --- src/gnu/dist/xcvs/src/patch.c:1.3 Thu May 4 15:39:34 2006 +++ src/gnu/dist/xcvs/src/patch.c Mon Oct 17 00:02:11 2011 @@ -44,16 +44,18 @@ static char *tmpfile1 = NULL; static char *tmpfile2 = NULL; static char *tmpfile3 = NULL; static int unidiff = 0; +static int show_c_func = 0; static const char *const patch_usage[] = { -Usage: %s %s [-flR] [-c|-u] [-s|-t] [-V %%d] [-k kopt]\n, +Usage: %s %s [-flpR] [-c|-u] [-s|-t] [-V %%d] [-k kopt]\n, -r rev|-D date [-r rev2 | -D date2] modules...\n, \t-f\tForce a head revision match if tag/date not found.\n, \t-l\tLocal directory only, not recursive\n, \t-R\tProcess directories recursively.\n, \t-c\tContext diffs (default)\n, \t-u\tUnidiff format.\n, +\t-p\tShow which C function each change is in.\n,/* --show-c-function */ \t-s\tShort patch - one liner per file.\n, \t-t\tTop two diffs - last change made to the file.\n, \t-V vers\tUse RCS Version \vers\ for keyword expansion.\n, @@ -81,7 +83,7 @@ patch (argc, argv) usage (patch_usage); optind = 0; -while ((c = getopt (argc, argv, +V:k:cuftsQqlRD:r:)) != -1) +while ((c = getopt (argc, argv, +V:k:cuftsQqlRD:r:p)) != -1) { switch (c) { @@ -165,6 +167,9 @@ patch (argc, argv) case 'c': /* Context diff */ unidiff = 0; break; + case 'p': + show_c_func = 1; + break; case '?': default: usage (patch_usage); @@ -213,6 +218,8 @@ patch (argc, argv) send_arg(-s); if (unidiff) send_arg(-u); + if (show_c_func) + send_arg(-p); if (rev1) option_with_arg (-r, rev1); @@ -592,6 +599,8 @@ patch_fileproc (callerdat, finfo) if (unidiff) run_add_arg_p (dargc, darg_allocated, dargv, -u); else run_add_arg_p (dargc, darg_allocated, dargv, -c); +if (show_c_func) + run_add_arg_p (dargc, darg_allocated, dargv, -p); switch (diff_exec (tmpfile1, tmpfile2, NULL, NULL, dargc, dargv, tmpfile3)) {
CVS commit: [netbsd-5] src/doc
Module Name:src Committed By: riz Date: Mon Oct 17 00:03:22 UTC 2011 Modified Files: src/doc [netbsd-5]: CHANGES-5.2 Log Message: Tickets 923, 1670, 1673. To generate a diff of this commit: cvs rdiff -u -r1.1.2.104 -r1.1.2.105 src/doc/CHANGES-5.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-5.2 diff -u src/doc/CHANGES-5.2:1.1.2.104 src/doc/CHANGES-5.2:1.1.2.105 --- src/doc/CHANGES-5.2:1.1.2.104 Fri Sep 23 12:45:14 2011 +++ src/doc/CHANGES-5.2 Mon Oct 17 00:03:22 2011 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-5.2,v 1.1.2.104 2011/09/23 12:45:14 sborrill Exp $ +# $NetBSD: CHANGES-5.2,v 1.1.2.105 2011/10/17 00:03:22 riz Exp $ A complete list of changes from the NetBSD 5.1 release to the NetBSD 5.2 release: @@ -5638,3 +5638,20 @@ sys/arch/xen/xenbus/xenbus_probe.c 1.35 entries (or even modify part of it if the domain has enough rights). [jym, ticket #1672] +sys/arch/i386/stand/lib/gatea20.c 1.12 + + Fix long boot delay on some Soekris hardware. PR#39726, PR#41162 + [jmcneill, ticket #923] + +sbin/ifconfig/carp.c1.13 + + Stop ifconfig dumping core when attaching carp to an interface. + [bouyer, ticket #1670] + +gnu/dist/xcvs/doc/cvs.1 patch +gnu/dist/xcvs/doc/cvs.texinfo patch +gnu/dist/xcvs/src/patch.c patch + + Implement and document cvs rdiff -p. + [spz, ticket #1673] +