CVS commit: src/usr.bin/genassym
Module Name:src Committed By: matt Date: Tue Jul 5 05:19:02 UTC 2011 Modified Files: src/usr.bin/genassym: genassym.sh Log Message: Use __builtin_offsetof if __GNUC__ >= 4 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/genassym/genassym.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/genassym/genassym.sh diff -u src/usr.bin/genassym/genassym.sh:1.6 src/usr.bin/genassym/genassym.sh:1.7 --- src/usr.bin/genassym/genassym.sh:1.6 Sat Nov 28 20:30:01 2009 +++ src/usr.bin/genassym/genassym.sh Tue Jul 5 05:19:02 2011 @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: genassym.sh,v 1.6 2009/11/28 20:30:01 dsl Exp $ +# $NetBSD: genassym.sh,v 1.7 2011/07/05 05:19:02 matt Exp $ # # Copyright (c) 1997 Matthias Pfaller. # All rights reserved. @@ -79,7 +79,11 @@ $AWK ' BEGIN { + printf("#if __GNUC__ >= 4\n"); + printf("#define offsetof(type, member) __builtin_offsetof(type, member)\n"); + printf("#else\n"); printf("#define offsetof(type, member) ((size_t)(&((type *)0)->member))\n"); + printf("#endif\n"); defining = 0; type = "long"; asmtype = "n";
CVS commit: src/tests/syscall
Module Name:src Committed By: jruoho Date: Tue Jul 5 04:33:23 UTC 2011 Modified Files: src/tests/syscall: t_mknod.c Log Message: Remove the xfail check after all (PR kern/45113 is bogus or fs-dependent). To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/syscall/t_mknod.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/syscall/t_mknod.c diff -u src/tests/syscall/t_mknod.c:1.7 src/tests/syscall/t_mknod.c:1.8 --- src/tests/syscall/t_mknod.c:1.7 Mon Jul 4 09:29:37 2011 +++ src/tests/syscall/t_mknod.c Tue Jul 5 04:33:23 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_mknod.c,v 1.7 2011/07/04 09:29:37 jruoho Exp $ */ +/* $NetBSD: t_mknod.c,v 1.8 2011/07/05 04:33:23 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_mknod.c,v 1.7 2011/07/04 09:29:37 jruoho Exp $"); +__RCSID("$NetBSD: t_mknod.c,v 1.8 2011/07/05 04:33:23 jruoho Exp $"); #include @@ -57,13 +57,6 @@ (void)memset(buf, 'x', sizeof(buf)); - errno = 0; - - if (mknod(path, -1, 0) != -1 || errno != EINVAL) { - atf_tc_expect_fail("PR kern/45113"); - atf_tc_fail("mknod(2) did not fail properly"); - } - /* * See the old PR kern/45111. */
CVS commit: src/sys/lib/libkern
Module Name:src Committed By: matt Date: Tue Jul 5 01:56:45 UTC 2011 Modified Files: src/sys/lib/libkern: libkern.h Log Message: If GCC 4.0 or later, use __builtin_offsetof for offsetof. This make GCC 4.5 with offsetof in mbuf.h and kern_cpu.c To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/lib/libkern/libkern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/lib/libkern/libkern.h diff -u src/sys/lib/libkern/libkern.h:1.97 src/sys/lib/libkern/libkern.h:1.98 --- src/sys/lib/libkern/libkern.h:1.97 Sat Feb 19 02:02:14 2011 +++ src/sys/lib/libkern/libkern.h Tue Jul 5 01:56:45 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: libkern.h,v 1.97 2011/02/19 02:02:14 matt Exp $ */ +/* $NetBSD: libkern.h,v 1.98 2011/07/05 01:56:45 matt Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -245,9 +245,13 @@ #define SMALL_RANDOM #ifndef offsetof +#if __GNUC_PREREQ__(4, 0) +#define offsetof(type, member) __builtin_offsetof(type, member) +#else #define offsetof(type, member) \ ((size_t)(unsigned long)(&(((type *)0)->member))) #endif +#endif #define MTPRNG_RLEN 624 struct mtprng_state {
CVS commit: src/sys/dev/filemon
Module Name:src Committed By: sjg Date: Mon Jul 4 23:37:30 UTC 2011 Modified Files: src/sys/dev/filemon: filemon.c filemon.h Log Message: Set FILEMON_VERSION to 3 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/filemon/filemon.c cvs rdiff -u -r1.1 -r1.2 src/sys/dev/filemon/filemon.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/filemon/filemon.c diff -u src/sys/dev/filemon/filemon.c:1.2 src/sys/dev/filemon/filemon.c:1.3 --- src/sys/dev/filemon/filemon.c:1.2 Fri May 13 22:31:08 2011 +++ src/sys/dev/filemon/filemon.c Mon Jul 4 23:37:30 2011 @@ -24,7 +24,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.2 2011/05/13 22:31:08 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.3 2011/07/04 23:37:30 sjg Exp $"); #include #include @@ -126,8 +126,8 @@ int len; len = snprintf(filemon->fm_msgbufr, sizeof(filemon->fm_msgbufr), - "# filemon version 2\n# Target pid %d\nV 2\n", - curproc->p_pid); + "# filemon version %d\n# Target pid %d\nV %d\n", + FILEMON_VERSION, curproc->p_pid, FILEMON_VERSION); filemon_output(filemon, filemon->fm_msgbufr, len); } Index: src/sys/dev/filemon/filemon.h diff -u src/sys/dev/filemon/filemon.h:1.1 src/sys/dev/filemon/filemon.h:1.2 --- src/sys/dev/filemon/filemon.h:1.1 Thu Sep 9 00:10:16 2010 +++ src/sys/dev/filemon/filemon.h Mon Jul 4 23:37:30 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: filemon.h,v 1.1 2010/09/09 00:10:16 sjg Exp $ */ +/* $NetBSD: filemon.h,v 1.2 2011/07/04 23:37:30 sjg Exp $ */ /* * Copyright (c) 2010, Juniper Networks, Inc. * @@ -31,6 +31,8 @@ #define FILEMON_SET_FD _IOWR('S', 1, int) #define FILEMON_SET_PID _IOWR('S', 2, pid_t) +#define FILEMON_VERSION 3 + #ifdef _KERNEL struct filemon { pid_t fm_pid; /* The process ID being monitored. */
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: mrg Date: Mon Jul 4 22:44:56 UTC 2011 Modified Files: src/external/gpl3/gcc/dist/gcc/config/arm: t-netbsd src/external/gpl3/gcc/lib/libgcc/arch: arm.mk armeb.mk Log Message: oops, put back _arm_fixunssfsi into arm libgcc. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/arm.mk cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk 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/gcc/dist/gcc/config/arm/t-netbsd diff -u src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.2 src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.3 --- src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.2 Sun Jul 3 06:40:38 2011 +++ src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd Mon Jul 4 22:44:56 2011 @@ -26,7 +26,7 @@ # This list is from t-arm-elf, but with some things removed. LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \ _call_via_rX _interwork_call_via_rX \ - _arm_fixunsdfsi \ + _arm_fixunsdfsi _arm_fixunssfsi \ _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \ _lshrdi3 _ashrdi3 _ashldi3 \ _clzsi2 _clzdi2 Index: src/external/gpl3/gcc/lib/libgcc/arch/arm.mk diff -u src/external/gpl3/gcc/lib/libgcc/arch/arm.mk:1.3 src/external/gpl3/gcc/lib/libgcc/arch/arm.mk:1.4 --- src/external/gpl3/gcc/lib/libgcc/arch/arm.mk:1.3 Sun Jul 3 14:41:51 2011 +++ src/external/gpl3/gcc/lib/libgcc/arch/arm.mk Mon Jul 4 22:44:55 2011 @@ -6,7 +6,7 @@ G_LIB2ADD=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c G_LIB2ADDEH=${GNUHOSTDIST}/gcc/unwind-dw2.c ${GNUHOSTDIST}/gcc/unwind-dw2-fde.c ${GNUHOSTDIST}/gcc/unwind-sjlj.c ${GNUHOSTDIST}/gcc/gthr-gnat.c ${GNUHOSTDIST}/gcc/unwind-c.c G_LIB2ADD_ST= -G_LIB1ASMFUNCS=_thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi _thumb1_case_uhi _thumb1_case_si _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX _arm_fixunsdfsi _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf _lshrdi3 _ashrdi3 _ashldi3 _clzsi2 _clzdi2 +G_LIB1ASMFUNCS=_thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi _thumb1_case_uhi _thumb1_case_si _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX _arm_fixunsdfsi _arm_fixunssfsi _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf _lshrdi3 _ashrdi3 _ashldi3 _clzsi2 _clzdi2 G_LIB1ASMSRC=arm/lib1funcs.asm G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp Index: src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk diff -u src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk:1.2 src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk:1.3 --- src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk:1.2 Sun Jul 3 14:41:51 2011 +++ src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk Mon Jul 4 22:44:55 2011 @@ -6,7 +6,7 @@ G_LIB2ADD=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c G_LIB2ADDEH=${GNUHOSTDIST}/gcc/unwind-dw2.c ${GNUHOSTDIST}/gcc/unwind-dw2-fde.c ${GNUHOSTDIST}/gcc/unwind-sjlj.c ${GNUHOSTDIST}/gcc/gthr-gnat.c ${GNUHOSTDIST}/gcc/unwind-c.c G_LIB2ADD_ST= -G_LIB1ASMFUNCS=_thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi _thumb1_case_uhi _thumb1_case_si _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX _arm_fixunsdfsi _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf _lshrdi3 _ashrdi3 _ashldi3 _clzsi2 _clzdi2 +G_LIB1ASMFUNCS=_thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi _thumb1_case_uhi _thumb1_case_si _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX _arm_fixunsdfsi _arm_fixunssfsi _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf _lshrdi3 _ashrdi3 _ashldi3 _clzsi2 _clzdi2 G_LIB1ASMSRC=arm/lib1funcs.asm G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp
CVS commit: src
Module Name:src Committed By: joerg Date: Mon Jul 4 22:37:59 UTC 2011 Modified Files: src/external/bsd/llvm/bin/clang: Makefile src/external/bsd/llvm/bin/llc: Makefile src/external/bsd/llvm/bin/llvm-mc: Makefile src/external/bsd/llvm/config/llvm/Config: AsmPrinters.def Targets.def src/external/bsd/llvm/lib: Makefile src/tools/llvm: Makefile Added Files: src/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo: Makefile src/tools/llvm-lib/libLLVMPowerPCAsmPrinter: Makefile src/tools/llvm-lib/libLLVMPowerPCCodeGen: Makefile src/tools/llvm-lib/libLLVMPowerPCTargetInfo: Makefile Log Message: Hook up LLVM's PowerPC. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/bin/clang/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/bin/llc/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/bin/llvm-mc/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def \ src/external/bsd/llvm/config/llvm/Config/Targets.def cvs rdiff -u -r1.6 -r1.7 src/external/bsd/llvm/lib/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile cvs rdiff -u -r1.4 -r1.5 src/tools/llvm/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPowerPCTargetInfo/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/bsd/llvm/bin/clang/Makefile diff -u src/external/bsd/llvm/bin/clang/Makefile:1.5 src/external/bsd/llvm/bin/clang/Makefile:1.6 --- src/external/bsd/llvm/bin/clang/Makefile:1.5 Mon Jul 4 16:10:39 2011 +++ src/external/bsd/llvm/bin/clang/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2011/07/04 16:10:39 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2011/07/04 22:37:59 joerg Exp $ PROG_CXX= clang NOMAN= yes @@ -38,6 +38,9 @@ AsmParser \ BitReader \ BitWriter \ + PowerPCCodeGen \ + PowerPCTargetInfo \ + PowerPCAsmPrinter \ X86CodeGen \ X86TargetInfo \ X86Utils \ Index: src/external/bsd/llvm/bin/llc/Makefile diff -u src/external/bsd/llvm/bin/llc/Makefile:1.2 src/external/bsd/llvm/bin/llc/Makefile:1.3 --- src/external/bsd/llvm/bin/llc/Makefile:1.2 Fri Mar 18 23:32:01 2011 +++ src/external/bsd/llvm/bin/llc/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:01 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2011/07/04 22:37:59 joerg Exp $ PROG_CXX= llc NOMAN= yes @@ -13,6 +13,9 @@ AsmPrinter \ AsmParser \ BitReader \ + PowerPCCodeGen \ + PowerPCTargetInfo \ + PowerPCAsmPrinter \ X86CodeGen \ X86TargetInfo \ X86AsmParser \ Index: src/external/bsd/llvm/bin/llvm-mc/Makefile diff -u src/external/bsd/llvm/bin/llvm-mc/Makefile:1.2 src/external/bsd/llvm/bin/llvm-mc/Makefile:1.3 --- src/external/bsd/llvm/bin/llvm-mc/Makefile:1.2 Fri Mar 18 23:32:02 2011 +++ src/external/bsd/llvm/bin/llvm-mc/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:02 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2011/07/04 22:37:59 joerg Exp $ PROG_CXX= llvm-mc NOMAN= yes @@ -11,6 +11,9 @@ Disassembler.cpp LLVM_LIBS+= \ + PowerPCCodeGen \ + PowerPCTargetInfo \ + PowerPCAsmPrinter \ X86CodeGen \ X86TargetInfo \ X86AsmParser \ Index: src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def diff -u src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.1 src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.2 --- src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.1 Sun Feb 6 01:13:49 2011 +++ src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Mon Jul 4 22:37:59 2011 @@ -24,6 +24,6 @@ # error Please define the macro LLVM_ASM_PRINTER(TargetName) #endif -LLVM_ASM_PRINTER(X86) +LLVM_ASM_PRINTER(X86) LLVM_ASM_PRINTER(PowerPC) #undef LLVM_ASM_PRINTER Index: src/external/bsd/llvm/config/llvm/Config/Targets.def diff -u src/external/bsd/llvm/config/llvm/Config/Targets.def:1.1 src/external/bsd/llvm/config/llvm/Config/Targets.def:1.2 --- src/external/bsd/llvm/config/llvm/Config/Targets.def:1.1 Sun Feb 6 01:13:50 2011 +++ src/external/bsd/llvm/config/llvm/Config/Targets.def Mon Jul 4 22:37:59 2011 @@ -23,6 +23,6 @@ # error Please define the macro LLVM_TARGET(TargetName) #endif -LLVM_TARGET(X86) +LLVM_TARGET(X86) LLVM_TARGET(PowerPC) #undef LLVM_TARGET Index: src/external/bsd/llvm/lib/Makefile diff -u src/external/bsd/llvm/lib/Makef
CVS commit: src/tests/lib
Module Name:src Committed By: mrg Date: Mon Jul 4 22:33:29 UTC 2011 Modified Files: src/tests/lib/libc/stdlib: t_strtod.c src/tests/lib/libm: t_ceil.c t_floor.c t_round.c Log Message: XXX: ugly hack to make these valid for vax fp. XXX: could consolidate some of this into a common header, but i'll leave that clean up for another time. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/tests/lib/libc/stdlib/t_strtod.c cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_ceil.c cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_floor.c cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_round.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/stdlib/t_strtod.c diff -u src/tests/lib/libc/stdlib/t_strtod.c:1.21 src/tests/lib/libc/stdlib/t_strtod.c:1.22 --- src/tests/lib/libc/stdlib/t_strtod.c:1.21 Tue Jun 14 02:37:31 2011 +++ src/tests/lib/libc/stdlib/t_strtod.c Mon Jul 4 22:33:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_strtod.c,v 1.21 2011/06/14 02:37:31 jruoho Exp $ */ +/* $NetBSD: t_strtod.c,v 1.22 2011/07/04 22:33:29 mrg Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ /* Public domain, Otto Moerbeek , 2006. */ #include -__RCSID("$NetBSD: t_strtod.c,v 1.21 2011/06/14 02:37:31 jruoho Exp $"); +__RCSID("$NetBSD: t_strtod.c,v 1.22 2011/07/04 22:33:29 mrg Exp $"); #include #include @@ -82,6 +82,12 @@ atf_tc_set_md_var(tc, "descr", "A strtod(3) with hexadecimals"); } +#ifdef __vax__ +#define SMALL_NUM 1.0e-38 +#else +#define SMALL_NUM 1.0e-40 +#endif + ATF_TC_BODY(strtod_hex, tc) { const char *str; @@ -93,14 +99,14 @@ ATF_REQUIRE(end == str + 4); ATF_REQUIRE(signbit(d) != 0); - ATF_REQUIRE(fabs(d) < 1.0e-40); + ATF_REQUIRE(fabs(d) < SMALL_NUM); str = "-0x"; d = strtod(str, &end); /* -0.0 */ ATF_REQUIRE(end == str + 2); ATF_REQUIRE(signbit(d) != 0); - ATF_REQUIRE(fabs(d) < 1.0e-40); + ATF_REQUIRE(fabs(d) < SMALL_NUM); } ATF_TC(strtod_inf); Index: src/tests/lib/libm/t_ceil.c diff -u src/tests/lib/libm/t_ceil.c:1.3 src/tests/lib/libm/t_ceil.c:1.4 --- src/tests/lib/libm/t_ceil.c:1.3 Fri Mar 25 10:42:38 2011 +++ src/tests/lib/libm/t_ceil.c Mon Jul 4 22:33:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_ceil.c,v 1.3 2011/03/25 10:42:38 jruoho Exp $ */ +/* $NetBSD: t_ceil.c,v 1.4 2011/07/04 22:33:29 mrg Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_ceil.c,v 1.3 2011/03/25 10:42:38 jruoho Exp $"); +__RCSID("$NetBSD: t_ceil.c,v 1.4 2011/07/04 22:33:29 mrg Exp $"); #include #include @@ -42,6 +42,12 @@ atf_tc_set_md_var(tc, "descr", "A basic test of ceil(3)"); } +#ifdef __vax__ +#define SMALL_NUM 1.0e-38 +#else +#define SMALL_NUM 1.0e-40 +#endif + ATF_TC_BODY(ceil, tc) { const int n = 10240; @@ -53,8 +59,8 @@ x = i + 0.9; y = i + 0.1; - ATF_REQUIRE(fabs(ceil(x) - (double)(i + 1)) < 1.0e-40); - ATF_REQUIRE(fabs(ceil(x) - (double)(i + 1)) < 1.0e-40); + ATF_REQUIRE(fabs(ceil(x) - (double)(i + 1)) < SMALL_NUM); + ATF_REQUIRE(fabs(ceil(x) - (double)(i + 1)) < SMALL_NUM); } } Index: src/tests/lib/libm/t_floor.c diff -u src/tests/lib/libm/t_floor.c:1.4 src/tests/lib/libm/t_floor.c:1.5 --- src/tests/lib/libm/t_floor.c:1.4 Fri Mar 25 10:42:38 2011 +++ src/tests/lib/libm/t_floor.c Mon Jul 4 22:33:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_floor.c,v 1.4 2011/03/25 10:42:38 jruoho Exp $ */ +/* $NetBSD: t_floor.c,v 1.5 2011/07/04 22:33:29 mrg Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_floor.c,v 1.4 2011/03/25 10:42:38 jruoho Exp $"); +__RCSID("$NetBSD: t_floor.c,v 1.5 2011/07/04 22:33:29 mrg Exp $"); #include #include @@ -43,6 +43,12 @@ atf_tc_set_md_var(tc, "descr", "A basic test of floor(3)"); } +#ifdef __vax__ +#define SMALL_NUM 1.0e-38 +#else +#define SMALL_NUM 1.0e-40 +#endif + ATF_TC_BODY(floor, tc) { const int n = 10240; @@ -60,8 +66,8 @@ x = i + 0.9; y = i + 0.1; - ATF_REQUIRE(fabs(floor(x) - (double)i) < 1.0e-40); - ATF_REQUIRE(fabs(floor(y) - (double)i) < 1.0e-40); + ATF_REQUIRE(fabs(floor(x) - (double)i) < SMALL_NUM); + ATF_REQUIRE(fabs(floor(y) - (double)i) < SMALL_NUM); } } Index: src/tests/lib/libm/t_round.c diff -u src/tests/lib/libm/t_round.c:1.1 src/tests/lib/libm/t_round.c:1.2 --- src/tests/lib/libm/t_round.c:1.1 Fri Apr 8 06:49:21 2011 +++ src/tests/lib/libm/t_round.c Mon Jul 4 22:33:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_round.c,v 1.1 2011/04/08 06:49:21 jruoho Exp $ */ +/* $NetBSD: t_round.c,v 1.2 2011/07/04 22:33:29 mrg Exp $ */ #include #include @@ -13,6 +13,12 @@ #define VAL 0x0.7cp0 #define VALF 0x0.7f8p0 +#ifdef __vax__ +#define SMALL_NUM 1.0e-38 +#else
CVS commit: src/external/bsd/llvm
Module Name:src Committed By: joerg Date: Mon Jul 4 22:20:45 UTC 2011 Modified Files: src/external/bsd/llvm: Makefile.inc Log Message: Update LLVM/Clang to r134393 for NetBSD/PowerPC changes. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/external/bsd/llvm/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/bsd/llvm/Makefile.inc diff -u src/external/bsd/llvm/Makefile.inc:1.12 src/external/bsd/llvm/Makefile.inc:1.13 --- src/external/bsd/llvm/Makefile.inc:1.12 Mon Jul 4 16:10:38 2011 +++ src/external/bsd/llvm/Makefile.inc Mon Jul 4 22:20:45 2011 @@ -1,12 +1,12 @@ -# $NetBSD: Makefile.inc,v 1.12 2011/07/04 16:10:38 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.13 2011/07/04 22:20:45 joerg Exp $ .if !defined(LLVM_TOPLEVEL_MK) LLVM_TOPLEVEL_MK= .include -LLVM_REVISION= 134374 -CLANG_REVISION= 134374 +LLVM_REVISION= 134393 +CLANG_REVISION= 134393 LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
CVS commit: src/lib/csu/arch/powerpc
Module Name:src Committed By: matt Date: Mon Jul 4 21:55:09 UTC 2011 Modified Files: src/lib/csu/arch/powerpc: crtbegin.S Log Message: Add missing */ To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/powerpc/crtbegin.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/csu/arch/powerpc/crtbegin.S diff -u src/lib/csu/arch/powerpc/crtbegin.S:1.1 src/lib/csu/arch/powerpc/crtbegin.S:1.2 --- src/lib/csu/arch/powerpc/crtbegin.S:1.1 Tue Feb 8 02:02:25 2011 +++ src/lib/csu/arch/powerpc/crtbegin.S Mon Jul 4 21:55:09 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: crtbegin.S,v 1.1 2011/02/08 02:02:25 matt Exp $ */ +/* $NetBSD: crtbegin.S,v 1.2 2011/07/04 21:55:09 matt Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. * All rights reserved. @@ -30,7 +30,7 @@ #include -RCSID("$NetBSD: crtbegin.S,v 1.1 2011/02/08 02:02:25 matt Exp $") +RCSID("$NetBSD: crtbegin.S,v 1.2 2011/07/04 21:55:09 matt Exp $") .section .ctors, "aw", @progbits .p2align 2 @@ -182,7 +182,7 @@ addis %r4,%r3,__initialized-1b@ha /* pcrel (hi) */ lbzu %r0,__initialized-1b@l(%r4) /* pcrel (lo) load+update */ cmpwi %r0,0/* have we already done this? */ - bnelr /* yep, return + bnelr /* yep, return */ li %r0,1 stb %r0,0(%r4) /* remember we've been here */
CVS commit: src/lib/csu/sparc64
Module Name:src Committed By: mrg Date: Mon Jul 4 21:54:18 UTC 2011 Modified Files: src/lib/csu/sparc64: Makefile Log Message: XXX: for now, build sparc64 csu with -O1 if using GCC 4.5. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/csu/sparc64/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/csu/sparc64/Makefile diff -u src/lib/csu/sparc64/Makefile:1.6 src/lib/csu/sparc64/Makefile:1.7 --- src/lib/csu/sparc64/Makefile:1.6 Fri May 19 19:11:12 2006 +++ src/lib/csu/sparc64/Makefile Mon Jul 4 21:54:18 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2006/05/19 19:11:12 christos Exp $ +# $NetBSD: Makefile,v 1.7 2011/07/04 21:54:18 mrg Exp $ #Uncomment the next line to enable the new .init fallthru CPPFLAGS+= -I${.CURDIR}/../sparc_elf @@ -6,3 +6,9 @@ ELFSIZE=64 .include "${.CURDIR}/../common_elf/Makefile.inc" + +# XXX something is wrong with the -O2 crt0.o and the code in ___start +# accesses data outside of the mapped space -> crash +.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 +DBG+= -O1 +.endif
CVS commit: src/common/lib/libc/net
Module Name:src Committed By: joerg Date: Mon Jul 4 21:29:16 UTC 2011 Modified Files: src/common/lib/libc/net: htonl.c htons.c ntohl.c ntohs.c Log Message: ANSIfy To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/net/htonl.c \ src/common/lib/libc/net/htons.c src/common/lib/libc/net/ntohl.c \ src/common/lib/libc/net/ntohs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/net/htonl.c diff -u src/common/lib/libc/net/htonl.c:1.1 src/common/lib/libc/net/htonl.c:1.2 --- src/common/lib/libc/net/htonl.c:1.1 Tue Dec 20 19:28:51 2005 +++ src/common/lib/libc/net/htonl.c Mon Jul 4 21:29:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: htonl.c,v 1.1 2005/12/20 19:28:51 christos Exp $ */ +/* $NetBSD: htonl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $ */ /* * Written by J.T. Conklin . @@ -7,7 +7,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: htonl.c,v 1.1 2005/12/20 19:28:51 christos Exp $"); +__RCSID("$NetBSD: htonl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $"); #endif #include @@ -15,8 +15,7 @@ #undef htonl uint32_t -htonl(x) - uint32_t x; +htonl(uint32_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *)&x; Index: src/common/lib/libc/net/htons.c diff -u src/common/lib/libc/net/htons.c:1.1 src/common/lib/libc/net/htons.c:1.2 --- src/common/lib/libc/net/htons.c:1.1 Tue Dec 20 19:28:51 2005 +++ src/common/lib/libc/net/htons.c Mon Jul 4 21:29:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: htons.c,v 1.1 2005/12/20 19:28:51 christos Exp $ */ +/* $NetBSD: htons.c,v 1.2 2011/07/04 21:29:16 joerg Exp $ */ /* * Written by J.T. Conklin . @@ -7,7 +7,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: htons.c,v 1.1 2005/12/20 19:28:51 christos Exp $"); +__RCSID("$NetBSD: htons.c,v 1.2 2011/07/04 21:29:16 joerg Exp $"); #endif #include @@ -15,8 +15,7 @@ #undef htons uint16_t -htons(x) - uint16_t x; +htons(uint16_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x; Index: src/common/lib/libc/net/ntohl.c diff -u src/common/lib/libc/net/ntohl.c:1.1 src/common/lib/libc/net/ntohl.c:1.2 --- src/common/lib/libc/net/ntohl.c:1.1 Tue Dec 20 19:28:51 2005 +++ src/common/lib/libc/net/ntohl.c Mon Jul 4 21:29:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ntohl.c,v 1.1 2005/12/20 19:28:51 christos Exp $ */ +/* $NetBSD: ntohl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $ */ /* * Written by J.T. Conklin . @@ -7,7 +7,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: ntohl.c,v 1.1 2005/12/20 19:28:51 christos Exp $"); +__RCSID("$NetBSD: ntohl.c,v 1.2 2011/07/04 21:29:16 joerg Exp $"); #endif #include @@ -15,8 +15,7 @@ #undef ntohl uint32_t -ntohl(x) - uint32_t x; +ntohl(uint32_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *)&x; Index: src/common/lib/libc/net/ntohs.c diff -u src/common/lib/libc/net/ntohs.c:1.1 src/common/lib/libc/net/ntohs.c:1.2 --- src/common/lib/libc/net/ntohs.c:1.1 Tue Dec 20 19:28:51 2005 +++ src/common/lib/libc/net/ntohs.c Mon Jul 4 21:29:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ntohs.c,v 1.1 2005/12/20 19:28:51 christos Exp $ */ +/* $NetBSD: ntohs.c,v 1.2 2011/07/04 21:29:16 joerg Exp $ */ /* * Written by J.T. Conklin . @@ -7,7 +7,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: ntohs.c,v 1.1 2005/12/20 19:28:51 christos Exp $"); +__RCSID("$NetBSD: ntohs.c,v 1.2 2011/07/04 21:29:16 joerg Exp $"); #endif #include @@ -15,8 +15,7 @@ #undef ntohs uint16_t -ntohs(x) - uint16_t x; +ntohs(uint16_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x;
CVS commit: src/common/lib/libc/gen
Module Name:src Committed By: joerg Date: Mon Jul 4 21:20:27 UTC 2011 Modified Files: src/common/lib/libc/gen: bswap16.c bswap32.c Log Message: ANSIfy To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/gen/bswap16.c \ src/common/lib/libc/gen/bswap32.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/gen/bswap16.c diff -u src/common/lib/libc/gen/bswap16.c:1.2 src/common/lib/libc/gen/bswap16.c:1.3 --- src/common/lib/libc/gen/bswap16.c:1.2 Sat Feb 16 17:37:13 2008 +++ src/common/lib/libc/gen/bswap16.c Mon Jul 4 21:20:27 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: bswap16.c,v 1.2 2008/02/16 17:37:13 apb Exp $*/ +/* $NetBSD: bswap16.c,v 1.3 2011/07/04 21:20:27 joerg Exp $*/ /* * Written by Manuel Bouyer . @@ -7,7 +7,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: bswap16.c,v 1.2 2008/02/16 17:37:13 apb Exp $"); +__RCSID("$NetBSD: bswap16.c,v 1.3 2011/07/04 21:20:27 joerg Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -16,8 +16,7 @@ #undef bswap16 uint16_t -bswap16(x) - uint16_t x; +bswap16(uint16_t x) { return ((x << 8) & 0xff00) | ((x >> 8) & 0x00ff); } Index: src/common/lib/libc/gen/bswap32.c diff -u src/common/lib/libc/gen/bswap32.c:1.2 src/common/lib/libc/gen/bswap32.c:1.3 --- src/common/lib/libc/gen/bswap32.c:1.2 Sat Feb 16 17:37:13 2008 +++ src/common/lib/libc/gen/bswap32.c Mon Jul 4 21:20:27 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: bswap32.c,v 1.2 2008/02/16 17:37:13 apb Exp $*/ +/* $NetBSD: bswap32.c,v 1.3 2011/07/04 21:20:27 joerg Exp $*/ /* * Written by Manuel Bouyer . @@ -7,7 +7,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: bswap32.c,v 1.2 2008/02/16 17:37:13 apb Exp $"); +__RCSID("$NetBSD: bswap32.c,v 1.3 2011/07/04 21:20:27 joerg Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -16,8 +16,7 @@ #undef bswap32 uint32_t -bswap32(x) - uint32_t x; +bswap32(uint32_t x) { return ((x << 24) & 0xff00 ) | ((x << 8) & 0x00ff ) |
CVS commit: src/tests/syscall
Module Name:src Committed By: jruoho Date: Mon Jul 4 20:09:29 UTC 2011 Modified Files: src/tests/syscall: t_pselect.c Log Message: As the Qemu clocks are not accurate, switch the usleep(3) delays to sleep(1). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/syscall/t_pselect.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/syscall/t_pselect.c diff -u src/tests/syscall/t_pselect.c:1.4 src/tests/syscall/t_pselect.c:1.5 --- src/tests/syscall/t_pselect.c:1.4 Sun May 29 22:12:32 2011 +++ src/tests/syscall/t_pselect.c Mon Jul 4 20:09:28 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_pselect.c,v 1.4 2011/05/29 22:12:32 christos Exp $ */ +/* $NetBSD: t_pselect.c,v 1.5 2011/07/04 20:09:28 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -151,10 +151,10 @@ case -1: err(1, "fork"); default: - usleep(1); + sleep(1); if (kill(pid, SIGTERM) == -1) err(1, "kill"); - usleep(500); + sleep(1); switch (waitpid(pid, &status, WNOHANG)) { case -1: err(1, "wait");
CVS commit: src/sys
Module Name:src Committed By: joerg Date: Mon Jul 4 16:20:46 UTC 2011 Modified Files: src/sys/arch/i386/conf: Makefile.i386 src/sys/modules/padlock: Makefile Log Message: Use integrated assembler with clang for Via PadLock. To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 src/sys/arch/i386/conf/Makefile.i386 cvs rdiff -u -r1.2 -r1.3 src/sys/modules/padlock/Makefile 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/conf/Makefile.i386 diff -u src/sys/arch/i386/conf/Makefile.i386:1.172 src/sys/arch/i386/conf/Makefile.i386:1.173 --- src/sys/arch/i386/conf/Makefile.i386:1.172 Fri Jun 10 03:19:25 2011 +++ src/sys/arch/i386/conf/Makefile.i386 Mon Jul 4 16:20:45 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.i386,v 1.172 2011/06/10 03:19:25 joerg Exp $ +# $NetBSD: Makefile.i386,v 1.173 2011/07/04 16:20:45 joerg Exp $ # Makefile for NetBSD # @@ -35,7 +35,6 @@ ## CPPFLAGS+= -Di386 -AFLAGS.via_padlock.c= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} AFLAGS.mptramp.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":?-Wno-error:} AFLAGS.spl.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} Index: src/sys/modules/padlock/Makefile diff -u src/sys/modules/padlock/Makefile:1.2 src/sys/modules/padlock/Makefile:1.3 --- src/sys/modules/padlock/Makefile:1.2 Fri Jun 10 04:45:41 2011 +++ src/sys/modules/padlock/Makefile Mon Jul 4 16:20:46 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/06/10 04:45:41 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2011/07/04 16:20:46 joerg Exp $ .include "../Makefile.inc" @@ -10,6 +10,4 @@ WARNS= 4 -COPTS.via_padlock.c+= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} - .include
CVS commit: src
Module Name:src Committed By: joerg Date: Mon Jul 4 16:10:40 UTC 2011 Modified Files: src/external/bsd/llvm: Makefile.inc src/external/bsd/llvm/bin/clang: Makefile src/external/bsd/llvm/bin/tblgen: Makefile src/external/bsd/llvm/lib: Makefile src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMMC: Makefile src/external/bsd/llvm/lib/libLLVMObject: Makefile src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile src/external/bsd/llvm/lib/libLLVMSupport: Makefile src/external/bsd/llvm/lib/libLLVMTarget: Makefile src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile src/external/bsd/llvm/lib/libLLVMX86CodeGen: Makefile src/external/bsd/llvm/lib/libclangSema: Makefile Added Files: src/external/bsd/llvm/lib/libLLVMX86MCTargetDesc: Makefile src/external/bsd/llvm/lib/libclangARCMigrate: Makefile src/tools/llvm-lib/libclangARCMigrate: Makefile Log Message: Update LLVM/Clang to r134374. This brings the xstorerng alias for Via PadLock, a bugfix for the C++ ABI in one edge condition and various compiler improvements. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/bsd/llvm/Makefile.inc cvs rdiff -u -r1.4 -r1.5 src/external/bsd/llvm/bin/clang/Makefile cvs rdiff -u -r1.4 -r1.5 src/external/bsd/llvm/bin/tblgen/Makefile cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/lib/Makefile cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/lib/libLLVMCodeGen/Makefile cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/lib/libLLVMMC/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/lib/libLLVMObject/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile cvs rdiff -u -r1.1 -r1.2 src/external/bsd/llvm/lib/libLLVMSupport/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/lib/libLLVMTarget/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile cvs rdiff -u -r1.1 -r1.2 src/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMX86MCTargetDesc/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/lib/libclangARCMigrate/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/lib/libclangSema/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libclangARCMigrate/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/bsd/llvm/Makefile.inc diff -u src/external/bsd/llvm/Makefile.inc:1.11 src/external/bsd/llvm/Makefile.inc:1.12 --- src/external/bsd/llvm/Makefile.inc:1.11 Wed Jun 8 08:48:38 2011 +++ src/external/bsd/llvm/Makefile.inc Mon Jul 4 16:10:38 2011 @@ -1,12 +1,12 @@ -# $NetBSD: Makefile.inc,v 1.11 2011/06/08 08:48:38 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.12 2011/07/04 16:10:38 joerg Exp $ .if !defined(LLVM_TOPLEVEL_MK) LLVM_TOPLEVEL_MK= .include -LLVM_REVISION= 132736 -CLANG_REVISION= 132736 +LLVM_REVISION= 134374 +CLANG_REVISION= 134374 LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang Index: src/external/bsd/llvm/bin/clang/Makefile diff -u src/external/bsd/llvm/bin/clang/Makefile:1.4 src/external/bsd/llvm/bin/clang/Makefile:1.5 --- src/external/bsd/llvm/bin/clang/Makefile:1.4 Thu May 12 14:56:22 2011 +++ src/external/bsd/llvm/bin/clang/Makefile Mon Jul 4 16:10:39 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2011/05/12 14:56:22 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2011/07/04 16:10:39 joerg Exp $ PROG_CXX= clang NOMAN= yes @@ -18,6 +18,7 @@ CLANG_LIBS+= \ clangFrontendTool \ clangFrontend \ + clangARCMigrate \ clangStaticAnalyzerFrontend \ clangStaticAnalyzerCheckers \ clangStaticAnalyzerCore \ Index: src/external/bsd/llvm/bin/tblgen/Makefile diff -u src/external/bsd/llvm/bin/tblgen/Makefile:1.4 src/external/bsd/llvm/bin/tblgen/Makefile:1.5 --- src/external/bsd/llvm/bin/tblgen/Makefile:1.4 Wed Jun 8 08:48:38 2011 +++ src/external/bsd/llvm/bin/tblgen/Makefile Mon Jul 4 16:10:39 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2011/06/08 08:48:38 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2011/07/04 16:10:39 joerg Exp $ PROG_CXX= llvm-tblgen NOMAN= yes @@ -19,6 +19,7 @@ CodeEmitterGen.cpp \ CodeGenDAGPatterns.cpp \ CodeGenInstruction.cpp \ + CodeGenRegisters.cpp \ CodeGenTarget.cpp \ DAGISelEmitter.cpp \ DAGISelMatcher.cpp \ @@ -27,6 +28,7 @@ DAGISelMatcherOpt.cpp \ DisassemblerEmitter.cpp \ EDEmitter.cpp \ + Error.cpp \ FastISelEmitter.cpp \ FixedLenDecoderEmitter.cpp \ FixedLenDecoderEmitter.h \ Index: src/external/bsd/llvm/lib/Makefile diff -u src/external/bsd/llvm/lib/Makefile:1.5 src/external/bsd/llvm/lib/Makefile:1.6 --- src/external/bsd/llvm/lib/Makefile:1.5 Thu May
CVS commit: src/sys/dev
Module Name:src Committed By: joerg Date: Mon Jul 4 16:06:45 UTC 2011 Modified Files: src/sys/dev: ccd.c Log Message: Fix memset usage. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/sys/dev/ccd.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/dev/ccd.c diff -u src/sys/dev/ccd.c:1.140 src/sys/dev/ccd.c:1.141 --- src/sys/dev/ccd.c:1.140 Tue Jun 21 06:23:38 2011 +++ src/sys/dev/ccd.c Mon Jul 4 16:06:45 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ccd.c,v 1.140 2011/06/21 06:23:38 jruoho Exp $ */ +/* $NetBSD: ccd.c,v 1.141 2011/07/04 16:06:45 joerg Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc. @@ -88,7 +88,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.140 2011/06/21 06:23:38 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.141 2011/07/04 16:06:45 joerg Exp $"); #include #include @@ -290,7 +290,7 @@ /* * Copy in the pathname of the component. */ - memset(tmppath, 0, sizeof(tmppath)); /* sanity */ + memset(tmppath, 0, MAXPATHLEN); /* sanity */ error = copyinstr(cpaths[ix], tmppath, MAXPATHLEN, &ci->ci_pathlen); if (ci->ci_pathlen == 0)
CVS commit: src/sys
Module Name:src Committed By: joerg Date: Mon Jul 4 16:06:18 UTC 2011 Modified Files: src/sys/dev/ic: ncr53c9x.c rtw.c src/sys/opencrypto: cryptodev.c Log Message: Fix memset usage. To generate a diff of this commit: cvs rdiff -u -r1.141 -r1.142 src/sys/dev/ic/ncr53c9x.c cvs rdiff -u -r1.118 -r1.119 src/sys/dev/ic/rtw.c cvs rdiff -u -r1.67 -r1.68 src/sys/opencrypto/cryptodev.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/dev/ic/ncr53c9x.c diff -u src/sys/dev/ic/ncr53c9x.c:1.141 src/sys/dev/ic/ncr53c9x.c:1.142 --- src/sys/dev/ic/ncr53c9x.c:1.141 Mon Sep 7 13:31:44 2009 +++ src/sys/dev/ic/ncr53c9x.c Mon Jul 4 16:06:17 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ncr53c9x.c,v 1.141 2009/09/07 13:31:44 tsutsui Exp $ */ +/* $NetBSD: ncr53c9x.c,v 1.142 2011/07/04 16:06:17 joerg Exp $ */ /*- * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.141 2009/09/07 13:31:44 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.142 2011/07/04 16:06:17 joerg Exp $"); #include #include @@ -511,7 +511,7 @@ TAILQ_INIT(&sc->ready_list); sc->sc_nexus = NULL; - memset(sc->sc_tinfo, 0, sizeof(sc->sc_tinfo)); + memset(sc->sc_tinfo, 0, sizeof(*sc->sc_tinfo)); for (r = 0; r < sc->sc_ntarg; r++) { LIST_INIT(&sc->sc_tinfo[r].luns); } Index: src/sys/dev/ic/rtw.c diff -u src/sys/dev/ic/rtw.c:1.118 src/sys/dev/ic/rtw.c:1.119 --- src/sys/dev/ic/rtw.c:1.118 Mon Nov 15 05:56:29 2010 +++ src/sys/dev/ic/rtw.c Mon Jul 4 16:06:17 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rtw.c,v 1.118 2010/11/15 05:56:29 uebayasi Exp $ */ +/* $NetBSD: rtw.c,v 1.119 2011/07/04 16:06:17 joerg Exp $ */ /*- * Copyright (c) 2004, 2005, 2006, 2007 David Young. All rights * reserved. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.118 2010/11/15 05:56:29 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.119 2011/07/04 16:06:17 joerg Exp $"); #include @@ -640,7 +640,7 @@ regs = &sc->sc_regs; rk = &sc->sc_keys; - (void)memset(rk, 0, sizeof(rk)); + (void)memset(rk, 0, sizeof(*rk)); /* Temporarily use software crypto for all keys. */ for (i = 0; i < IEEE80211_WEP_NKID; i++) { Index: src/sys/opencrypto/cryptodev.c diff -u src/sys/opencrypto/cryptodev.c:1.67 src/sys/opencrypto/cryptodev.c:1.68 --- src/sys/opencrypto/cryptodev.c:1.67 Thu Jun 9 14:41:24 2011 +++ src/sys/opencrypto/cryptodev.c Mon Jul 4 16:06:17 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: cryptodev.c,v 1.67 2011/06/09 14:41:24 drochner Exp $ */ +/* $NetBSD: cryptodev.c,v 1.68 2011/07/04 16:06:17 joerg Exp $ */ /* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */ /* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */ @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.67 2011/06/09 14:41:24 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.68 2011/07/04 16:06:17 joerg Exp $"); #include #include @@ -2029,7 +2029,7 @@ { struct fcrypt *fcr = fp->f_data; - (void)memset(st, 0, sizeof(st)); + (void)memset(st, 0, sizeof(*st)); mutex_enter(&crypto_mtx); st->st_dev = makedev(cdevsw_lookup_major(&crypto_cdevsw), fcr->sesn);
CVS commit: src
Module Name:src Committed By: jruoho Date: Mon Jul 4 15:46:10 UTC 2011 Modified Files: src/distrib/sets/lists/tests: mi src/tests/syscall: Makefile Added Files: src/tests/syscall: t_mkfifo.c Log Message: Few tests for mkfifo(2). To generate a diff of this commit: cvs rdiff -u -r1.362 -r1.363 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.39 -r1.40 src/tests/syscall/Makefile cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_mkfifo.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.362 src/distrib/sets/lists/tests/mi:1.363 --- src/distrib/sets/lists/tests/mi:1.362 Mon Jul 4 08:09:11 2011 +++ src/distrib/sets/lists/tests/mi Mon Jul 4 15:46:09 2011 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.362 2011/07/04 08:09:11 jruoho Exp $ +# $NetBSD: mi,v 1.363 2011/07/04 15:46:09 jruoho Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -636,6 +636,7 @@ ./usr/libdata/debug/usr/tests/syscall/t_kill.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_link.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_mincore.debug tests-syscall-debug debug,atf +./usr/libdata/debug/usr/tests/syscall/t_mkfifo.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_mknod.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_mmap.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_mprotect.debug tests-syscall-debug debug,atf @@ -2388,6 +2389,7 @@ ./usr/tests/syscall/t_kill tests-syscall-tests atf ./usr/tests/syscall/t_link tests-syscall-tests atf ./usr/tests/syscall/t_mincore tests-syscall-tests atf +./usr/tests/syscall/t_mkfifo tests-syscall-tests atf ./usr/tests/syscall/t_mknod tests-syscall-tests atf ./usr/tests/syscall/t_mmap tests-syscall-tests atf ./usr/tests/syscall/t_mprotect tests-syscall-tests atf Index: src/tests/syscall/Makefile diff -u src/tests/syscall/Makefile:1.39 src/tests/syscall/Makefile:1.40 --- src/tests/syscall/Makefile:1.39 Mon Jul 4 08:09:11 2011 +++ src/tests/syscall/Makefile Mon Jul 4 15:46:10 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2011/07/04 08:09:11 jruoho Exp $ +# $NetBSD: Makefile,v 1.40 2011/07/04 15:46:10 jruoho Exp $ .include @@ -8,7 +8,8 @@ TESTS_C+= t_getgroups t_getlogin t_getpid TESTS_C+= t_getrusage t_getsid t_gettimeofday TESTS_C+= t_issetugid t_itimer t_kill t_link -TESTS_C+= t_mincore t_mknod t_mmap t_mprotect t_msync t_nanosleep +TESTS_C+= t_mincore t_mkfifo t_mknod t_mmap +TESTS_C+= t_mprotect t_msync t_nanosleep TESTS_C+= t_poll t_pollts t_pselect t_revoke TESTS_C+= t_setrlimit t_setuid t_stat t_timer t_truncate TESTS_C+= t_umask t_unlink Added files: Index: src/tests/syscall/t_mkfifo.c diff -u /dev/null src/tests/syscall/t_mkfifo.c:1.1 --- /dev/null Mon Jul 4 15:46:10 2011 +++ src/tests/syscall/t_mkfifo.c Mon Jul 4 15:46:10 2011 @@ -0,0 +1,280 @@ +/* $NetBSD: t_mkfifo.c,v 1.1 2011/07/04 15:46:10 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 +__RCSID("$NetBSD: t_mkfifo.c,v 1.1 2011/07/04 15:46:10 jruoho Exp $"); + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +static const char path[] = "fifo"; +static void support(void); + +static void +support
CVS commit: src/sys/conf
Module Name:src Committed By: mrg Date: Mon Jul 4 13:00:19 UTC 2011 Modified Files: src/sys/conf: Makefile.kern.inc Log Message: apply some -Wno-foo to 3 files that are non-trivial to solve, for GCC 4.5. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/sys/conf/Makefile.kern.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/conf/Makefile.kern.inc diff -u src/sys/conf/Makefile.kern.inc:1.140 src/sys/conf/Makefile.kern.inc:1.141 --- src/sys/conf/Makefile.kern.inc:1.140 Mon Jun 20 06:52:38 2011 +++ src/sys/conf/Makefile.kern.inc Mon Jul 4 13:00:19 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.kern.inc,v 1.140 2011/06/20 06:52:38 mrg Exp $ +# $NetBSD: Makefile.kern.inc,v 1.141 2011/07/04 13:00:19 mrg Exp $ # # This file contains common `MI' targets and definitions and it is included # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. @@ -510,12 +510,19 @@ uvm/uvm_pager.c dev/ic/aic7xxx.c dev/ic/aic79xx.c arch/xen/i386/gdt.c \ dev/ofw/ofw_subr.c -. if defined(HAVE_GCC) || defined(HAVE_PCC) +.if defined(HAVE_GCC) || defined(HAVE_PCC) .for __varstack in ${VARSTACK} COPTS.${__varstack:T} += -Wno-stack-protector .endfor .endif +# XXX ugly ugly to fix +.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 +CWARNFLAGS.tulip.c+= -Wno-array-bounds +CWARNFLAGS.radeonfb.c+= -Wno-cast-qual +CWARNFLAGS.dbcool.c+= -Wno-cast-qual +.endif + AFLAGS+= ${AOPTS.${.IMPSRC:T}} CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} CPPFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: mrg Date: Mon Jul 4 12:54:24 UTC 2011 Modified Files: src/external/gpl3/gcc/dist/gcc/config/sh: t-netbsd src/external/gpl3/gcc/lib/libgcc/arch: sh3eb.mk sh3el.mk src/external/gpl3/gcc/usr.bin/gcc/arch/sh3el: configargs.h Log Message: don't use libgcc softfloat stuff now that it is in our libc. regenerate. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/sh/t-netbsd cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk \ src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/usr.bin/gcc/arch/sh3el/configargs.h 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/gcc/dist/gcc/config/sh/t-netbsd diff -u src/external/gpl3/gcc/dist/gcc/config/sh/t-netbsd:1.2 src/external/gpl3/gcc/dist/gcc/config/sh/t-netbsd:1.3 --- src/external/gpl3/gcc/dist/gcc/config/sh/t-netbsd:1.2 Tue Jun 21 02:41:37 2011 +++ src/external/gpl3/gcc/dist/gcc/config/sh/t-netbsd Mon Jul 4 12:54:24 2011 @@ -21,7 +21,7 @@ # Use sh specific libgcc-std.ver to avoid exporting some # lib1func routines which shoud not be called via PLT. -SHLIB_MAPFILES = $(srcdir)/config/sh/libgcc-std.ver +#SHLIB_MAPFILES = $(srcdir)/config/sh/libgcc-std.ver LIB2FUNCS_EXTRA= Index: src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk diff -u src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk:1.2 src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk:1.3 --- src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk:1.2 Sun Jul 3 14:41:51 2011 +++ src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk Mon Jul 4 12:54:24 2011 @@ -3,14 +3,14 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf -G_LIB2ADD=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c +G_LIB2ADD= G_LIB2ADDEH=${GNUHOSTDIST}/gcc/unwind-dw2.c ${GNUHOSTDIST}/gcc/unwind-dw2-fde.c ${GNUHOSTDIST}/gcc/unwind-sjlj.c ${GNUHOSTDIST}/gcc/gthr-gnat.c ${GNUHOSTDIST}/gcc/unwind-c.c G_LIB2ADD_ST= G_LIB1ASMFUNCS=_ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr _div_table _udiv_qrnnd_16 _ic_invalidate G_LIB1ASMSRC=sh/lib1funcs.asm G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp -G_LIB2FUNCS_EXTRA=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c +G_LIB2FUNCS_EXTRA= G_LIBGCC2_CFLAGS=-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mieee -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED G_SHLIB_MKMAP=${GNUHOSTDIST}/gcc/mkmap-symver.awk G_SHLIB_MKMAP_OPTS= Index: src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk diff -u src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk:1.2 src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk:1.3 --- src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk:1.2 Sun Jul 3 14:41:51 2011 +++ src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk Mon Jul 4 12:54:24 2011 @@ -3,14 +3,14 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf -G_LIB2ADD=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c +G_LIB2ADD= G_LIB2ADDEH=${GNUHOSTDIST}/gcc/unwind-dw2.c ${GNUHOSTDIST}/gcc/unwind-dw2-fde.c ${GNUHOSTDIST}/gcc/unwind-sjlj.c ${GNUHOSTDIST}/gcc/gthr-gnat.c ${GNUHOSTDIST}/gcc/unwind-c.c G_LIB2ADD_ST= G_LIB1ASMFUNCS=_ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr _div_table _udiv_qrnnd_16 _ic_invalidate G_LIB1ASMSRC=sh/lib1funcs.asm G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp -G_LIB2FUNCS_EXTRA=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c +G_LIB2FUNCS_EXTRA= G_LIBGCC2_CFLAGS=-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mieee -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED G_SHLIB_MKMAP=${GNUHOSTDIST}/gcc/mkmap-symver.awk G_SHLIB_MKMAP_OPTS= Index: src/external/gpl3/gcc/usr.bin/gcc/arch/sh3el/configargs.h diff -u src/external/gpl3/gcc/u
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: mrg Date: Mon Jul 4 12:39:36 UTC 2011 Modified Files: src/sys/compat/linux/common: linux_termios.h Log Message: avoid array bounds violation on netbsd/mips when dealing with termio structures. (did linux/mips ever support termio?). the effect of this is that termio linux apps won't have VEOF support. i can't tell what it should be since that code isn't in linux going back quite some years. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/compat/linux/common/linux_termios.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/common/linux_termios.h diff -u src/sys/compat/linux/common/linux_termios.h:1.19 src/sys/compat/linux/common/linux_termios.h:1.20 --- src/sys/compat/linux/common/linux_termios.h:1.19 Sun Mar 15 15:55:51 2009 +++ src/sys/compat/linux/common/linux_termios.h Mon Jul 4 12:39:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_termios.h,v 1.19 2009/03/15 15:55:51 cegger Exp $ */ +/* $NetBSD: linux_termios.h,v 1.20 2011/07/04 12:39:36 mrg Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -263,7 +263,9 @@ bts->c_cc[VQUIT] = lt->c_cc[LINUX_OLD_VQUIT]; bts->c_cc[VERASE] = lt->c_cc[LINUX_OLD_VERASE]; bts->c_cc[VKILL] = lt->c_cc[LINUX_OLD_VKILL]; +#if LINUX_VEOF < LINUX_NCC bts->c_cc[VEOF] = lt->c_cc[LINUX_OLD_VEOF]; +#endif bts->c_cc[VTIME] = lt->c_cc[LINUX_OLD_VTIME]; bts->c_cc[VMIN] = lt->c_cc[LINUX_OLD_VMIN]; } @@ -347,7 +349,9 @@ lt->c_cc[LINUX_VQUIT] = bts->c_cc[VQUIT]; lt->c_cc[LINUX_VERASE] = bts->c_cc[VERASE]; lt->c_cc[LINUX_VKILL] = bts->c_cc[VKILL]; +#if LINUX_VEOF < LINUX_NCC lt->c_cc[LINUX_VEOF] = bts->c_cc[VEOF]; +#endif lt->c_cc[LINUX_VTIME] = bts->c_cc[VTIME]; lt->c_cc[LINUX_VMIN] = bts->c_cc[VMIN]; lt->c_cc[LINUX_VSWTC] = 0;
CVS commit: src/external/lgpl3/mpfr/lib/libmpfr
Module Name:src Committed By: mrg Date: Mon Jul 4 12:38:29 UTC 2011 Modified Files: src/external/lgpl3/mpfr/lib/libmpfr: Makefile Log Message: support LIBMPFR_MACHINE_ARCH, for compat. expand the list of platforms here significantly. XXX: someone who knows FP well across our platforms should have a look XXX: at this list and fix any errors / omissions i've made. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/mpfr/lib/libmpfr/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/lgpl3/mpfr/lib/libmpfr/Makefile diff -u src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.4 src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.5 --- src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.4 Sat Jul 2 14:08:45 2011 +++ src/external/lgpl3/mpfr/lib/libmpfr/Makefile Mon Jul 4 12:38:29 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2011/07/02 14:08:45 mrg Exp $ +# $NetBSD: Makefile,v 1.5 2011/07/04 12:38:29 mrg Exp $ .include @@ -470,12 +470,29 @@ -DHAVE_CEIL=1 \ -DHAVE_ATTRIBUTE_MODE=1 +LIBMPFR_MACHINE_ARCH?= ${MACHINE_ARCH} + +# XXX +# XXX XXX check mips* # XXX XXX do something more, more ports!! -.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" +# XXX +# XXX missing: arm* sparc sh3* m68k/m68000 (powerpc64/ia64) + +# IEEE FP support. No VAX here. +.if ${LIBMPFR_MACHINE_ARCH} == "x86_64" || \ +${LIBMPFR_MACHINE_ARCH} == "i386" +${LIBMPFR_MACHINE_ARCH} == "mipsel" CPPFLAGS+= -DHAVE_LDOUBLE_IEEE_EXT_LITTLE=1 .endif -.if ${MACHINE_ARCH} == "sparc64" +.if ${LIBMPFR_MACHINE_ARCH} == "mips64el" +CPPFLAGS+= -DHAVE_LDOUBLE_IEEE_QUAD_LITTLE=1 +.endif + +.if ${LIBMPFR_MACHINE_ARCH} == "sparc64" || \ +${LIBMPFR_MACHINE_ARCH} == "powerpc" || \ +${LIBMPFR_MACHINE_ARCH} == "powerpc64" || \ +${LIBMPFR_MACHINE_ARCH} == "mips64eb" CPPFLAGS+= -DHAVE_LDOUBLE_IEEE_QUAD_BIG=1 .endif @@ -490,6 +507,6 @@ .PATH: ${.CURDIR}/../../dist -.if ${MACHINE_ARCH} == "vax" +.if ${LIBMPFR_MACHINE_ARCH} == "vax" COPTS.set_ld.c+= -Wno-error .endif
CVS commit: src/external/bsd/less/dist
Module Name:src Committed By: joerg Date: Mon Jul 4 12:31:53 UTC 2011 Modified Files: src/external/bsd/less/dist: command.c Log Message: Fix const usage to be consistent with the other files. ml_shell and ml_examine are constant pointers, not pointers to constant data. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/bsd/less/dist/command.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/bsd/less/dist/command.c diff -u src/external/bsd/less/dist/command.c:1.3 src/external/bsd/less/dist/command.c:1.4 --- src/external/bsd/less/dist/command.c:1.3 Sun Jul 3 20:14:12 2011 +++ src/external/bsd/less/dist/command.c Mon Jul 4 12:31:53 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: command.c,v 1.3 2011/07/03 20:14:12 tron Exp $ */ +/* $NetBSD: command.c,v 1.4 2011/07/04 12:31:53 joerg Exp $ */ /* * Copyright (C) 1984-2011 Mark Nudelman @@ -44,9 +44,9 @@ extern struct scrpos initial_scrpos; extern IFILE curr_ifile; extern void constant *ml_search; -extern void constant *ml_examine; +extern void * constant ml_examine; #if SHELL_ESCAPE || PIPEC -extern void constant *ml_shell; +extern void * constant ml_shell; #endif #if EDITOR extern char *editor;
CVS commit: src/sys/arch/sgimips/include
Module Name:src Committed By: mrg Date: Mon Jul 4 12:18:53 UTC 2011 Modified Files: src/sys/arch/sgimips/include: param.h Log Message: don't mark delay as extern inline. it's defined normally in machdep.c. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sgimips/include/param.h 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/sgimips/include/param.h diff -u src/sys/arch/sgimips/include/param.h:1.15 src/sys/arch/sgimips/include/param.h:1.16 --- src/sys/arch/sgimips/include/param.h:1.15 Fri Mar 18 16:33:41 2011 +++ src/sys/arch/sgimips/include/param.h Mon Jul 4 12:18:53 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.15 2011/03/18 16:33:41 tsutsui Exp $ */ +/* $NetBSD: param.h,v 1.16 2011/07/04 12:18:53 mrg Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -54,7 +54,7 @@ #ifdef _KERNEL #ifndef _LOCORE -__inline extern void delay(unsigned long); +extern void delay(unsigned long); #define DELAY(n) delay(n) #include
CVS commit: src/common/lib/libc/arch/sh3/string
Module Name:src Committed By: mrg Date: Mon Jul 4 12:18:06 UTC 2011 Modified Files: src/common/lib/libc/arch/sh3/string: ffs.S Log Message: sh3 needs the __ffssi2 weak symbol, too. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/arch/sh3/string/ffs.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/arch/sh3/string/ffs.S diff -u src/common/lib/libc/arch/sh3/string/ffs.S:1.2 src/common/lib/libc/arch/sh3/string/ffs.S:1.3 --- src/common/lib/libc/arch/sh3/string/ffs.S:1.2 Mon Apr 28 20:22:52 2008 +++ src/common/lib/libc/arch/sh3/string/ffs.S Mon Jul 4 12:18:05 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs.S,v 1.2 2008/04/28 20:22:52 martin Exp $ */ +/* $NetBSD: ffs.S,v 1.3 2011/07/04 12:18:05 mrg Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) - RCSID("$NetBSD: ffs.S,v 1.2 2008/04/28 20:22:52 martin Exp $") + RCSID("$NetBSD: ffs.S,v 1.3 2011/07/04 12:18:05 mrg Exp $") #endif /* @@ -42,6 +42,7 @@ * The remaining 8bit is tested in every 2bit. */ +WEAK_ALIAS(__ffssi2,ffs) ENTRY(ffs) mov r4,r0 ! using r0 specific instructions tst #0xff,r0
CVS commit: src
Module Name:src Committed By: manu Date: Mon Jul 4 12:05:02 UTC 2011 Modified Files: src/distrib/sets/lists/comp: mi src/lib/libc/rpc: Makefile.inc Log Message: Add documentation link xdr_sizeof(3) -> xdr(3) To generate a diff of this commit: cvs rdiff -u -r1.1637 -r1.1638 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.19 -r1.20 src/lib/libc/rpc/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/distrib/sets/lists/comp/mi diff -u src/distrib/sets/lists/comp/mi:1.1637 src/distrib/sets/lists/comp/mi:1.1638 --- src/distrib/sets/lists/comp/mi:1.1637 Fri Jul 1 12:09:34 2011 +++ src/distrib/sets/lists/comp/mi Mon Jul 4 12:05:00 2011 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.1637 2011/07/01 12:09:34 njoly Exp $ +# $NetBSD: mi,v 1.1638 2011/07/04 12:05:00 manu Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -9193,6 +9193,7 @@ ./usr/share/man/cat3/xdr_replymsg.0 comp-c-catman .cat ./usr/share/man/cat3/xdr_setpos.0 comp-c-catman .cat ./usr/share/man/cat3/xdr_short.0 comp-c-catman .cat +./usr/share/man/cat3/xdr_sizeof.0 comp-c-catman .cat ./usr/share/man/cat3/xdr_string.0 comp-c-catman .cat ./usr/share/man/cat3/xdr_u_char.0 comp-c-catman .cat ./usr/share/man/cat3/xdr_u_long.0 comp-c-catman .cat @@ -15206,6 +15207,7 @@ ./usr/share/man/html3/xdr_replymsg.html comp-c-htmlman html ./usr/share/man/html3/xdr_setpos.html comp-c-htmlman html ./usr/share/man/html3/xdr_short.html comp-c-htmlman html +./usr/share/man/html3/xdr_sizeof.html comp-c-htmlman html ./usr/share/man/html3/xdr_string.html comp-c-htmlman html ./usr/share/man/html3/xdr_u_char.html comp-c-htmlman html ./usr/share/man/html3/xdr_u_long.html comp-c-htmlman html @@ -21294,6 +21296,7 @@ ./usr/share/man/man3/xdr_replymsg.3 comp-c-man .man ./usr/share/man/man3/xdr_setpos.3 comp-c-man .man ./usr/share/man/man3/xdr_short.3 comp-c-man .man +./usr/share/man/man3/xdr_sizeof.3 comp-c-man .man ./usr/share/man/man3/xdr_string.3 comp-c-man .man ./usr/share/man/man3/xdr_u_char.3 comp-c-man .man ./usr/share/man/man3/xdr_u_long.3 comp-c-man .man Index: src/lib/libc/rpc/Makefile.inc diff -u src/lib/libc/rpc/Makefile.inc:1.19 src/lib/libc/rpc/Makefile.inc:1.20 --- src/lib/libc/rpc/Makefile.inc:1.19 Mon Jul 4 07:54:38 2011 +++ src/lib/libc/rpc/Makefile.inc Mon Jul 4 12:05:00 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.19 2011/07/04 07:54:38 manu Exp $ +# $NetBSD: Makefile.inc,v 1.20 2011/07/04 12:05:00 manu Exp $ # librpc sources .PATH: ${.CURDIR}/rpc @@ -157,6 +157,7 @@ xdr.3 xdr_reference.3 \ xdr.3 xdr_setpos.3 \ xdr.3 xdr_short.3 \ + xdr.3 xdr_sizeof.3 \ xdr.3 xdrstdio_create.3 \ xdr.3 xdr_string.3 \ xdr.3 xdr_u_char.3 \
CVS commit: src/sys/arch/mmeye/stand/boot
Module Name:src Committed By: mrg Date: Mon Jul 4 12:03:56 UTC 2011 Modified Files: src/sys/arch/mmeye/stand/boot: wd.c Log Message: convert a cast & structure assignment to a memcpy() to avoid potential pointer aliasing issues. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mmeye/stand/boot/wd.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/mmeye/stand/boot/wd.c diff -u src/sys/arch/mmeye/stand/boot/wd.c:1.1 src/sys/arch/mmeye/stand/boot/wd.c:1.2 --- src/sys/arch/mmeye/stand/boot/wd.c:1.1 Thu Mar 3 05:59:37 2011 +++ src/sys/arch/mmeye/stand/boot/wd.c Mon Jul 4 12:03:56 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: wd.c,v 1.1 2011/03/03 05:59:37 kiyohara Exp $ */ +/* $NetBSD: wd.c,v 1.2 2011/07/04 12:03:56 mrg Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -58,7 +58,7 @@ if ((error = wdc_exec_identify(wd, buf)) != 0) return error; - wd->sc_params = *(struct ataparams *)buf; + memcpy(&wd->sc_params, buf, sizeof wd->sc_params); /* 48-bit LBA addressing */ if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0)
CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el
Module Name:src Committed By: mrg Date: Mon Jul 4 12:01:56 UTC 2011 Modified Files: src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el: c++config.h config.h Log Message: regenerate To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/config.h 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/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h:1.2 src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h:1.3 --- src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h:1.2 Sun Jul 3 14:41:54 2011 +++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h Mon Jul 4 12:01:56 2011 @@ -499,7 +499,7 @@ /* #undef _GLIBCXX_HAVE_FABSL */ /* Define to 1 if you have the header file. */ -#define _GLIBCXX_HAVE_FENV_H 1 +/* #undef _GLIBCXX_HAVE_FENV_H */ /* Define to 1 if you have the `finite' function. */ #define _GLIBCXX_HAVE_FINITE 1 @@ -662,7 +662,7 @@ /* #undef _GLIBCXX_HAVE_NAN_H */ /* Define if poll is available in . */ -/* #undef _GLIBCXX_HAVE_POLL */ +#define _GLIBCXX_HAVE_POLL 1 /* Define to 1 if you have the `powf' function. */ /* #undef _GLIBCXX_HAVE_POWF */ @@ -773,7 +773,7 @@ /* #undef _GLIBCXX_HAVE_S_IFREG */ /* Define if S_IFREG is available in . */ -/* #undef _GLIBCXX_HAVE_S_ISREG */ +#define _GLIBCXX_HAVE_S_ISREG 1 /* Define to 1 if you have the `tanf' function. */ /* #undef _GLIBCXX_HAVE_TANF */ @@ -788,7 +788,7 @@ /* #undef _GLIBCXX_HAVE_TANL */ /* Define to 1 if you have the header file. */ -#define _GLIBCXX_HAVE_TGMATH_H 1 +/* #undef _GLIBCXX_HAVE_TGMATH_H */ /* Define to 1 if the target supports thread-local storage. */ /* #undef _GLIBCXX_HAVE_TLS */ @@ -815,7 +815,7 @@ #define _GLIBCXX_HAVE_WCTYPE_H 1 /* Define if writev is available in . */ -/* #undef _GLIBCXX_HAVE_WRITEV */ +#define _GLIBCXX_HAVE_WRITEV 1 /* Define to 1 if you have the `_acosf' function. */ /* #undef _GLIBCXX_HAVE__ACOSF */ Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/config.h diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/config.h:1.2 src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/config.h:1.3 --- src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/config.h:1.2 Sun Jul 3 14:41:54 2011 +++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/config.h Mon Jul 4 12:01:56 2011 @@ -120,7 +120,7 @@ /* #undef HAVE_FABSL */ /* Define to 1 if you have the header file. */ -#define HAVE_FENV_H 1 +/* #undef HAVE_FENV_H */ /* Define to 1 if you have the `finite' function. */ #define HAVE_FINITE 1 @@ -283,7 +283,7 @@ /* #undef HAVE_NAN_H */ /* Define if poll is available in . */ -/* #undef HAVE_POLL */ +#define HAVE_POLL 1 /* Define to 1 if you have the `powf' function. */ /* #undef HAVE_POWF */ @@ -394,7 +394,7 @@ /* #undef HAVE_S_IFREG */ /* Define if S_IFREG is available in . */ -/* #undef HAVE_S_ISREG */ +#define HAVE_S_ISREG 1 /* Define to 1 if you have the `tanf' function. */ /* #undef HAVE_TANF */ @@ -409,7 +409,7 @@ /* #undef HAVE_TANL */ /* Define to 1 if you have the header file. */ -#define HAVE_TGMATH_H 1 +/* #undef HAVE_TGMATH_H */ /* Define to 1 if the target supports thread-local storage. */ /* #undef HAVE_TLS */ @@ -436,7 +436,7 @@ #define HAVE_WCTYPE_H 1 /* Define if writev is available in . */ -/* #undef HAVE_WRITEV */ +#define HAVE_WRITEV 1 /* Define to 1 if you have the `_acosf' function. */ /* #undef HAVE__ACOSF */
CVS commit: src/compat/mips64
Module Name:src Committed By: mrg Date: Mon Jul 4 12:00:49 UTC 2011 Modified Files: src/compat/mips64/64: bsd.64.mk src/compat/mips64/o32: bsd.o32.mk Log Message: the gmp/mpfr subdirs are mipsel/mipseb. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/compat/mips64/64/bsd.64.mk cvs rdiff -u -r1.5 -r1.6 src/compat/mips64/o32/bsd.o32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/compat/mips64/64/bsd.64.mk diff -u src/compat/mips64/64/bsd.64.mk:1.5 src/compat/mips64/64/bsd.64.mk:1.6 --- src/compat/mips64/64/bsd.64.mk:1.5 Fri Jul 1 01:30:16 2011 +++ src/compat/mips64/64/bsd.64.mk Mon Jul 4 12:00:49 2011 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.64.mk,v 1.5 2011/07/01 01:30:16 mrg Exp $ +# $NetBSD: bsd.64.mk,v 1.6 2011/07/04 12:00:49 mrg Exp $ .if ${MACHINE_ARCH} == "mips64eb" LD+= -m elf64btsmip @@ -13,7 +13,7 @@ LDFLAGS+= -mabi=64 MKDEPFLAGS+= -mabi=64 -LIBMPFR_MACHINE_ARCH= ${MLIBDIR} -LIBGMP_MACHINE_ARCH= ${MLIBDIR} +LIBMPFR_MACHINE_ARCH= mipseb +LIBGMP_MACHINE_ARCH= mipseb .include "${.PARSEDIR}/../../Makefile.compat" Index: src/compat/mips64/o32/bsd.o32.mk diff -u src/compat/mips64/o32/bsd.o32.mk:1.5 src/compat/mips64/o32/bsd.o32.mk:1.6 --- src/compat/mips64/o32/bsd.o32.mk:1.5 Fri Jul 1 01:30:16 2011 +++ src/compat/mips64/o32/bsd.o32.mk Mon Jul 4 12:00:49 2011 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.o32.mk,v 1.5 2011/07/01 01:30:16 mrg Exp $ +# $NetBSD: bsd.o32.mk,v 1.6 2011/07/04 12:00:49 mrg Exp $ .if ${MACHINE_ARCH} == "mips64eb" LD+= -m elf32btsmip @@ -13,7 +13,7 @@ LDFLAGS+= -mabi=32 -march=mips3 MKDEPFLAGS+= -mabi=32 -march=mips3 -LIBMPFR_MACHINE_ARCH= ${MLIBDIR} -LIBGMP_MACHINE_ARCH= ${MLIBDIR} +LIBMPFR_MACHINE_ARCH= mipsel +LIBGMP_MACHINE_ARCH= mipsel .include "${.PARSEDIR}/../../Makefile.compat"
CVS commit: src/external/lgpl3/gmp/lib/libgmp
Module Name:src Committed By: mrg Date: Mon Jul 4 12:00:15 UTC 2011 Modified Files: src/external/lgpl3/gmp/lib/libgmp: Makefile Log Message: don't force LIBGMP_MACHINE_ARCH:=${MLIBDIR}. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/lgpl3/gmp/lib/libgmp/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/lgpl3/gmp/lib/libgmp/Makefile diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.7 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.8 --- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.7 Sun Jul 3 15:25:11 2011 +++ src/external/lgpl3/gmp/lib/libgmp/Makefile Mon Jul 4 12:00:15 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2011/07/03 15:25:11 mrg Exp $ +# $NetBSD: Makefile,v 1.8 2011/07/04 12:00:15 mrg Exp $ .include @@ -176,7 +176,7 @@ CLEANFILES+= ${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr gen-trialdivtab .if defined(MLIBDIR) -LIBGMP_MACHINE_ARCH:=${MLIBDIR} +LIBGMP_MACHINE_ARCH?=${MLIBDIR} .endif LIBGMP_MACHINE_ARCH?=${MACHINE_ARCH}
CVS commit: src/lib
Module Name:src Committed By: mrg Date: Mon Jul 4 11:46:42 UTC 2011 Modified Files: src/lib/libc/gdtoa: hdtoa.c src/lib/libm/src: s_fmaxl.c s_fminl.c Log Message: avoid some uninitalised variable warnings. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/libc/gdtoa/hdtoa.c cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_fmaxl.c \ src/lib/libm/src/s_fminl.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/gdtoa/hdtoa.c diff -u src/lib/libc/gdtoa/hdtoa.c:1.8 src/lib/libc/gdtoa/hdtoa.c:1.9 --- src/lib/libc/gdtoa/hdtoa.c:1.8 Mon Mar 21 23:37:42 2011 +++ src/lib/libc/gdtoa/hdtoa.c Mon Jul 4 11:46:41 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: hdtoa.c,v 1.8 2011/03/21 23:37:42 enami Exp $ */ +/* $NetBSD: hdtoa.c,v 1.9 2011/07/04 11:46:41 mrg Exp $ */ /*- * Copyright (c) 2004, 2005 David Schultz @@ -30,7 +30,7 @@ #if 0 __FBSDID("$FreeBSD: src/lib/libc/gdtoa/_hdtoa.c,v 1.4 2007/01/03 04:57:58 das Exp $"); #else -__RCSID("$NetBSD: hdtoa.c,v 1.8 2011/03/21 23:37:42 enami Exp $"); +__RCSID("$NetBSD: hdtoa.c,v 1.9 2011/07/04 11:46:41 mrg Exp $"); #endif #include @@ -261,6 +261,7 @@ char *s, *s0; size_t bufsize; + memset(&u, 0, sizeof u); u.extu_ld = e; *sign = u.extu_ext.ext_sign; Index: src/lib/libm/src/s_fmaxl.c diff -u src/lib/libm/src/s_fmaxl.c:1.2 src/lib/libm/src/s_fmaxl.c:1.3 --- src/lib/libm/src/s_fmaxl.c:1.2 Mon Mar 8 01:05:20 2010 +++ src/lib/libm/src/s_fmaxl.c Mon Jul 4 11:46:41 2011 @@ -25,11 +25,12 @@ */ #include -__RCSID("$NetBSD: s_fmaxl.c,v 1.2 2010/03/08 01:05:20 snj Exp $"); +__RCSID("$NetBSD: s_fmaxl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $"); #ifdef notdef __FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp $"); #endif +#include #include #include @@ -39,6 +40,7 @@ { union ieee_ext_u u[2]; + memset(&u, 0, sizeof u); u[0].extu_ld = x; u[0].extu_ext.ext_frach &= ~0x8000; u[1].extu_ld = y; Index: src/lib/libm/src/s_fminl.c diff -u src/lib/libm/src/s_fminl.c:1.2 src/lib/libm/src/s_fminl.c:1.3 --- src/lib/libm/src/s_fminl.c:1.2 Mon Mar 8 01:05:20 2010 +++ src/lib/libm/src/s_fminl.c Mon Jul 4 11:46:41 2011 @@ -25,12 +25,13 @@ */ #include -__RCSID("$NetBSD: s_fminl.c,v 1.2 2010/03/08 01:05:20 snj Exp $"); +__RCSID("$NetBSD: s_fminl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $"); #ifdef notdef __FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp $"); #endif #include +#include #include #ifdef EXT_EXP_INFNAN @@ -39,6 +40,7 @@ { union ieee_ext_u u[2]; + memset(&u, 0, sizeof u); u[0].extu_ld = x; u[0].extu_ext.ext_frach &= ~0x8000; u[1].extu_ld = y;
CVS commit: src/common/lib/libc/arch/mips/string
Module Name:src Committed By: mrg Date: Mon Jul 4 11:35:26 UTC 2011 Modified Files: src/common/lib/libc/arch/mips/string: ffs.S Log Message: add a weak alias from ffs to __ffssi2. newsmips kernels link now. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/common/lib/libc/arch/mips/string/ffs.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/arch/mips/string/ffs.S diff -u src/common/lib/libc/arch/mips/string/ffs.S:1.3 src/common/lib/libc/arch/mips/string/ffs.S:1.4 --- src/common/lib/libc/arch/mips/string/ffs.S:1.3 Sun Jan 23 06:47:14 2011 +++ src/common/lib/libc/arch/mips/string/ffs.S Mon Jul 4 11:35:26 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs.S,v 1.3 2011/01/23 06:47:14 matt Exp $ */ +/* $NetBSD: ffs.S,v 1.4 2011/07/04 11:35:26 mrg Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -31,13 +31,14 @@ #include -RCSID("$NetBSD: ffs.S,v 1.3 2011/01/23 06:47:14 matt Exp $") +RCSID("$NetBSD: ffs.S,v 1.4 2011/07/04 11:35:26 mrg Exp $") /* bit = ffs(value) */ .text .set noreorder +WEAK_ALIAS(__ffssi2,ffs) #if __mips == 64 || __mips == 32 LEAF(ffs) #ifndef _LP64
CVS commit: src/sys/rump/librump/rumpvfs
Module Name:src Committed By: mrg Date: Mon Jul 4 11:31:37 UTC 2011 Modified Files: src/sys/rump/librump/rumpvfs: rump_vfs.c Log Message: don't define multiple cwdi0's, mark this one as extern. fixes various mips build issues i've seen with both GCC 4.1 and 4.5. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/rump/librump/rumpvfs/rump_vfs.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/rump/librump/rumpvfs/rump_vfs.c diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.66 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.67 --- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.66 Sun Jun 12 03:35:59 2011 +++ src/sys/rump/librump/rumpvfs/rump_vfs.c Mon Jul 4 11:31:37 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rump_vfs.c,v 1.66 2011/06/12 03:35:59 rmind Exp $ */ +/* $NetBSD: rump_vfs.c,v 1.67 2011/07/04 11:31:37 mrg Exp $ */ /* * Copyright (c) 2008 Antti Kantee. All Rights Reserved. @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.66 2011/06/12 03:35:59 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.67 2011/07/04 11:31:37 mrg Exp $"); #include #include @@ -56,7 +56,7 @@ #include "rump_private.h" #include "rump_vfs_private.h" -struct cwdinfo cwdi0; +extern struct cwdinfo cwdi0; const char *rootfstype = ROOT_FSTYPE_ANY; static void
CVS commit: src
Module Name:src Committed By: mrg Date: Mon Jul 4 11:22:39 UTC 2011 Modified Files: src/common/lib/libc/quad: quad.h src/lib/libc/quad: Makefile.inc Added Files: src/lib/libc/quad: floatundisf.c Log Message: add support for __floatunsisf(). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/quad/quad.h cvs rdiff -u -r1.12 -r1.13 src/lib/libc/quad/Makefile.inc cvs rdiff -u -r0 -r1.1 src/lib/libc/quad/floatundisf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/quad/quad.h diff -u src/common/lib/libc/quad/quad.h:1.2 src/common/lib/libc/quad/quad.h:1.3 --- src/common/lib/libc/quad/quad.h:1.2 Mon Jul 4 06:23:50 2011 +++ src/common/lib/libc/quad/quad.h Mon Jul 4 11:22:39 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: quad.h,v 1.2 2011/07/04 06:23:50 matt Exp $ */ +/* $NetBSD: quad.h,v 1.3 2011/07/04 11:22:39 mrg Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -123,6 +123,7 @@ double __floatdidf __P((quad_t)); float __floatdisf __P((quad_t)); double __floatundidf __P((u_quad_t)); +float __floatundisf __P((u_quad_t)); quad_t __iordi3 __P((quad_t, quad_t)); quad_t __lshldi3 __P((quad_t, qshift_t)); quad_t __lshrdi3 __P((quad_t, qshift_t)); Index: src/lib/libc/quad/Makefile.inc diff -u src/lib/libc/quad/Makefile.inc:1.12 src/lib/libc/quad/Makefile.inc:1.13 --- src/lib/libc/quad/Makefile.inc:1.12 Mon Jul 4 06:23:50 2011 +++ src/lib/libc/quad/Makefile.inc Mon Jul 4 11:22:39 2011 @@ -1,9 +1,9 @@ -# $NetBSD: Makefile.inc,v 1.12 2011/07/04 06:23:50 matt Exp $ +# $NetBSD: Makefile.inc,v 1.13 2011/07/04 11:22:39 mrg Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 # Quad support SRCS.quad= cmpdi2.c divdi3.c fixdfdi.c fixsfdi.c fixunsdfdi.c \ - fixunssfdi.c floatdidf.c floatdisf.c floatundidf.c \ + fixunssfdi.c floatdidf.c floatdisf.c floatundisf.c floatundidf.c \ moddi3.c muldi3.c negdi2.c qdivrem.c \ ucmpdi2.c udivdi3.c umoddi3.c Added files: Index: src/lib/libc/quad/floatundisf.c diff -u /dev/null src/lib/libc/quad/floatundisf.c:1.1 --- /dev/null Mon Jul 4 11:22:39 2011 +++ src/lib/libc/quad/floatundisf.c Mon Jul 4 11:22:39 2011 @@ -0,0 +1,71 @@ +/* $NetBSD: floatundisf.c,v 1.1 2011/07/04 11:22:39 mrg Exp $ */ + +/*- + * Copyright (c) 1992, 1993 + * The Regents of the University of California. All rights reserved. + * + * This software was developed by the Computer Systems Engineering group + * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and + * contributed to Berkeley. + * + * 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. + * 3. Neither the name of the University nor the names of its contributors + *may be used to endorse or promote products derived from this software + *without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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 +#if defined(LIBC_SCCS) && !defined(lint) +#if 0 +static char sccsid[] = "@(#)floatdisf.c 8.1 (Berkeley) 6/4/93"; +#else +__RCSID("$NetBSD: floatundisf.c,v 1.1 2011/07/04 11:22:39 mrg Exp $"); +#endif +#endif /* LIBC_SCCS and not lint */ + +#include "quad.h" + +/* + * Convert (unsigned) quad to float. + */ +float +__floatundisf(u_quad_t x) +{ + float f; + union uu u; + + u.q = x; + + /* + * Now u.ul[H] has the factor of 2^32 (or whatever) and u.ul[L] + * has the units. Ideally we could just set f, add INT_BITS to + * its exponent, and then add the units, but this is portable + * code and does not know how to get at an exponent. Machine- + * specific code may be able to do this more efficiently. + * + * Using double here may be excessive paranoia. + */ + f = (double)u.ul[H] * (((int)1 << (INT_BITS - 2)) * 4.0); + f += u.ul[L]; + + re
CVS commit: src/common/lib/libc/arch/sparc/string
Module Name:src Committed By: mrg Date: Mon Jul 4 11:18:23 UTC 2011 Modified Files: src/common/lib/libc/arch/sparc/string: ffs.S Log Message: add a weak alias from ffs to __ffssi2. sparc dynamic works with gcc 4.5 now. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/arch/sparc/string/ffs.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/arch/sparc/string/ffs.S diff -u src/common/lib/libc/arch/sparc/string/ffs.S:1.2 src/common/lib/libc/arch/sparc/string/ffs.S:1.3 --- src/common/lib/libc/arch/sparc/string/ffs.S:1.2 Sat Dec 19 19:09:48 2009 +++ src/common/lib/libc/arch/sparc/string/ffs.S Mon Jul 4 11:18:23 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka Exp $ */ +/* $NetBSD: ffs.S,v 1.3 2011/07/04 11:18:23 mrg Exp $ */ /* * Copyright (c) 1992, 1993 @@ -40,7 +40,7 @@ #if 0 .asciz "@(#)ffs.s 8.1 (Berkeley) 6/4/93" #else - RCSID("$NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka Exp $") + RCSID("$NetBSD: ffs.S,v 1.3 2011/07/04 11:18:23 mrg Exp $") #endif #endif /* LIBC_SCCS and not lint */ @@ -58,6 +58,7 @@ * one, we just return the table value plus 24. This means * that ffstab[0] must be -24 so that ffs(0) will return 0. */ +WEAK_ALIAS(__ffssi2,ffs) ENTRY(ffs) #ifdef PIC PICCY_SET(ffstab, %o2, %o3)
CVS commit: src/lib/libc/rpc
Module Name:src Committed By: mrg Date: Mon Jul 4 11:01:41 UTC 2011 Modified Files: src/lib/libc/rpc: xdr_sizeof.c Log Message: insert some (uintptr_t) between int and pointer casts. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/rpc/xdr_sizeof.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/rpc/xdr_sizeof.c diff -u src/lib/libc/rpc/xdr_sizeof.c:1.1 src/lib/libc/rpc/xdr_sizeof.c:1.2 --- src/lib/libc/rpc/xdr_sizeof.c:1.1 Mon Jul 4 07:54:38 2011 +++ src/lib/libc/rpc/xdr_sizeof.c Mon Jul 4 11:01:40 2011 @@ -39,7 +39,7 @@ #if 0 __FBSDID("$FreeBSD: src/lib/libc/xdr/xdr_sizeof.c,v 1.5.38.1 2010/12/21 17:10:29 kensmith Exp $"); #else -__RCSID("$NetBSD: xdr_sizeof.c,v 1.1 2011/07/04 07:54:38 manu Exp $"); +__RCSID("$NetBSD: xdr_sizeof.c,v 1.2 2011/07/04 11:01:40 mrg Exp $"); #endif #include "namespace.h" @@ -109,7 +109,7 @@ if (xdrs->x_op != XDR_ENCODE) { return (NULL); } - if (len < (u_int)xdrs->x_base) { + if (len < (u_int)(uintptr_t)xdrs->x_base) { /* x_private was already allocated */ xdrs->x_handy += len; return ((int32_t *) xdrs->x_private); @@ -121,7 +121,7 @@ xdrs->x_base = 0; return (NULL); } - xdrs->x_base = (caddr_t) len; + xdrs->x_base = (caddr_t)(uintptr_t)len; xdrs->x_handy += len; return ((int32_t *) xdrs->x_private); }
CVS commit: src/tests/syscall
Module Name:src Committed By: jruoho Date: Mon Jul 4 09:29:37 UTC 2011 Modified Files: src/tests/syscall: t_mknod.c Log Message: Adjust the EEXIST-check once more. (This failed incorrectly in the Qemu-runs.) To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/syscall/t_mknod.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/syscall/t_mknod.c diff -u src/tests/syscall/t_mknod.c:1.6 src/tests/syscall/t_mknod.c:1.7 --- src/tests/syscall/t_mknod.c:1.6 Mon Jul 4 04:10:34 2011 +++ src/tests/syscall/t_mknod.c Mon Jul 4 09:29:37 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_mknod.c,v 1.6 2011/07/04 04:10:34 jruoho Exp $ */ +/* $NetBSD: t_mknod.c,v 1.7 2011/07/04 09:29:37 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_mknod.c,v 1.6 2011/07/04 04:10:34 jruoho Exp $"); +__RCSID("$NetBSD: t_mknod.c,v 1.7 2011/07/04 09:29:37 jruoho Exp $"); #include @@ -85,7 +85,7 @@ (void)unlink(path); } -ATF_TC(mknod_exist); +ATF_TC_WITH_CLEANUP(mknod_exist); ATF_TC_HEAD(mknod_exist, tc) { atf_tc_set_md_var(tc, "descr", "Test EEXIST from mknod(2)"); @@ -96,16 +96,28 @@ { int fd; - fd = open(_PATH_DEVNULL, O_RDONLY); + fd = open("/etc/passwd", O_RDONLY); + + if (fd >= 0) { - if (fd < 0) - return; - else { (void)close(fd); + + errno = 0; + ATF_REQUIRE_ERRNO(EEXIST, + mknod("/etc/passwd", S_IFCHR, 0) == -1); } + ATF_REQUIRE(mknod(path, S_IFCHR, 0) == 0); + errno = 0; - ATF_REQUIRE_ERRNO(EEXIST, mknod(_PATH_DEVNULL, S_IFCHR, 0) == -1); + ATF_REQUIRE_ERRNO(EEXIST, mknod(path, S_IFCHR, 0) == -1); + + ATF_REQUIRE(unlink(path) == 0); +} + +ATF_TC_CLEANUP(mknod_exist, tc) +{ + (void)unlink(path); } ATF_TC_WITH_CLEANUP(mknod_perm);
CVS commit: src/lib/libc/rpc
Module Name:src Committed By: manu Date: Mon Jul 4 08:19:51 UTC 2011 Modified Files: src/lib/libc/rpc: xdr.3 Log Message: Document newly imported xdr_sizeof() To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libc/rpc/xdr.3 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/rpc/xdr.3 diff -u src/lib/libc/rpc/xdr.3:1.12 src/lib/libc/rpc/xdr.3:1.13 --- src/lib/libc/rpc/xdr.3:1.12 Tue Oct 13 21:39:55 2009 +++ src/lib/libc/rpc/xdr.3 Mon Jul 4 08:19:51 2011 @@ -1,5 +1,5 @@ .\" @(#)xdr.3n 2.2 88/08/03 4.0 RPCSRC; from 1.16 88/03/14 SMI -.\" $NetBSD: xdr.3,v 1.12 2009/10/13 21:39:55 joerg Exp $ +.\" $NetBSD: xdr.3,v 1.13 2011/07/04 08:19:51 manu Exp $ .\" .Dd April 17, 2003 .Dt XDR 3 @@ -31,6 +31,7 @@ .Nm xdr_reference , .Nm xdr_setpos , .Nm xdr_short , +.Nm xdr_sizeof , .Nm xdrstdio_create , .Nm xdr_string , .Nm xdr_u_char , @@ -99,6 +100,8 @@ .Fn xdr_setpos "XDR *xdrs" "u_int pos" .Ft int .Fn xdr_short "XDR *xdrs" "short *sp" +.Ft nsigned long +.Fn xdr_sizeof "xdrproc_t func" "void *data" .Ft void .Fn xdrstdio_create "XDR *xdrs" "FILE *file" "enum xdr_op op" .Ft int @@ -378,6 +381,11 @@ A filter primitive that translates between C short integers and their external representations. This routine returns one if it succeeds, zero otherwise. +.It Fn xdr_sizeof +This routine returns the amount of memory required to encode +.Fa data +using filter +.Fa func . .It Fn xdrstdio_create This routine initializes the XDR stream object pointed to by .Fa xdrs .
CVS commit: src
Module Name:src Committed By: jruoho Date: Mon Jul 4 08:09:11 UTC 2011 Modified Files: src/distrib/sets/lists/tests: mi src/tests/syscall: Makefile Added Files: src/tests/syscall: t_chroot.c Log Message: Few fundamental checks for chroot(2) and fchroot(2). To generate a diff of this commit: cvs rdiff -u -r1.361 -r1.362 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.38 -r1.39 src/tests/syscall/Makefile cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_chroot.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.361 src/distrib/sets/lists/tests/mi:1.362 --- src/distrib/sets/lists/tests/mi:1.361 Mon Jul 4 05:10:23 2011 +++ src/distrib/sets/lists/tests/mi Mon Jul 4 08:09:11 2011 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.361 2011/07/04 05:10:23 jruoho Exp $ +# $NetBSD: mi,v 1.362 2011/07/04 08:09:11 jruoho Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -621,6 +621,7 @@ ./usr/libdata/debug/usr/tests/sbin/resize_ffstests-sbin-tests ./usr/libdata/debug/usr/tests/syscall tests-syscall-debug ./usr/libdata/debug/usr/tests/syscall/t_access.debug tests-syscall-debug debug,atf +./usr/libdata/debug/usr/tests/syscall/t_chroot.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_cmsg.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_dup.debug tests-syscall-debug debug,atf ./usr/libdata/debug/usr/tests/syscall/t_fsync.debug tests-syscall-debug debug,atf @@ -2372,6 +2373,7 @@ ./usr/tests/syscalltests-syscall-tests ./usr/tests/syscall/Atffile tests-syscall-tests atf ./usr/tests/syscall/t_access tests-syscall-tests atf +./usr/tests/syscall/t_chroot tests-syscall-tests atf ./usr/tests/syscall/t_cmsg tests-syscall-tests atf ./usr/tests/syscall/t_dup tests-syscall-tests atf ./usr/tests/syscall/t_fsync tests-syscall-tests atf Index: src/tests/syscall/Makefile diff -u src/tests/syscall/Makefile:1.38 src/tests/syscall/Makefile:1.39 --- src/tests/syscall/Makefile:1.38 Mon Jul 4 05:10:24 2011 +++ src/tests/syscall/Makefile Mon Jul 4 08:09:11 2011 @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.38 2011/07/04 05:10:24 jruoho Exp $ +# $NetBSD: Makefile,v 1.39 2011/07/04 08:09:11 jruoho Exp $ .include TESTSDIR= ${TESTSBASE}/syscall -TESTS_C+= t_access t_cmsg t_dup t_fsync +TESTS_C+= t_access t_chroot t_cmsg t_dup t_fsync TESTS_C+= t_getgroups t_getlogin t_getpid TESTS_C+= t_getrusage t_getsid t_gettimeofday TESTS_C+= t_issetugid t_itimer t_kill t_link Added files: Index: src/tests/syscall/t_chroot.c diff -u /dev/null src/tests/syscall/t_chroot.c:1.1 --- /dev/null Mon Jul 4 08:09:11 2011 +++ src/tests/syscall/t_chroot.c Mon Jul 4 08:09:11 2011 @@ -0,0 +1,313 @@ +/* $NetBSD: t_chroot.c,v 1.1 2011/07/04 08:09:11 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 +__RCSID("$NetBSD: t_chroot.c,v 1.1 2011/07/04 08:09:11 jruoho Exp $"); + +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +ATF_TC(chroot_basic); +ATF_TC_HEAD(chroot_basic, tc) +{ + atf_tc_set_md_var(tc, "descr", "A basic test of chroot(2)"); + atf_tc_set_md_var(tc, "require.user", "root"); +} + +ATF_TC_BODY(chroot_basic, tc) +{ + char buf[PATH_MAX]; + int fd, sta; + pid_t pid; + + (void)memset(buf, '\0', sizeof(buf)); + (vo
CVS commit: src
Module Name:src Committed By: manu Date: Mon Jul 4 08:07:32 UTC 2011 Modified Files: src/lib/libp2k: p2k.c src/lib/libperfuse: ops.c perfuse_priv.h src/lib/libpuffs: dispatcher.c puffs.h puffs_ops.3 src/sys/fs/puffs: puffs_msgif.h puffs_vnops.c src/sys/kern: vfs_xattr.c vnode_if.c src/sys/rump/include/rump: rumpvnode_if.h src/sys/rump/librump/rumpvfs: rumpvnode_if.c src/sys/sys: extattr.h vnode_if.h src/sys/ufs/ufs: ufs_extattr.c src/usr.bin/extattr: getextattr.c Log Message: Add a flag to VOP_LISTEXTATTR(9) so that the vnode interface can tell the filesystem in which format extended attribute shall be listed. There are currently two formats: - NUL-terminated strings, used for listxattr(2), this is the default. - one byte length-pprefixed, non NUL-terminated strings, used for extattr_list_file(2), which is obtanined by setting the EXTATTR_LIST_PREFIXLEN flag to VOP_LISTEXTATTR(9) This approach avoid the need for converting the list back and forth, except in libperfuse, since FUSE uses NUL-terminated strings, and the kernel may have requested EXTATTR_LIST_PREFIXLEN. To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/lib/libp2k/p2k.c cvs rdiff -u -r1.31 -r1.32 src/lib/libperfuse/ops.c cvs rdiff -u -r1.19 -r1.20 src/lib/libperfuse/perfuse_priv.h cvs rdiff -u -r1.35 -r1.36 src/lib/libpuffs/dispatcher.c cvs rdiff -u -r1.117 -r1.118 src/lib/libpuffs/puffs.h cvs rdiff -u -r1.28 -r1.29 src/lib/libpuffs/puffs_ops.3 cvs rdiff -u -r1.75 -r1.76 src/sys/fs/puffs/puffs_msgif.h cvs rdiff -u -r1.153 -r1.154 src/sys/fs/puffs/puffs_vnops.c cvs rdiff -u -r1.26 -r1.27 src/sys/kern/vfs_xattr.c cvs rdiff -u -r1.86 -r1.87 src/sys/kern/vnode_if.c cvs rdiff -u -r1.9 -r1.10 src/sys/rump/include/rump/rumpvnode_if.h cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpvfs/rumpvnode_if.c cvs rdiff -u -r1.5 -r1.6 src/sys/sys/extattr.h cvs rdiff -u -r1.80 -r1.81 src/sys/sys/vnode_if.h cvs rdiff -u -r1.33 -r1.34 src/sys/ufs/ufs/ufs_extattr.c cvs rdiff -u -r1.6 -r1.7 src/usr.bin/extattr/getextattr.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/libp2k/p2k.c diff -u src/lib/libp2k/p2k.c:1.54 src/lib/libp2k/p2k.c:1.55 --- src/lib/libp2k/p2k.c:1.54 Fri Jan 7 16:02:32 2011 +++ src/lib/libp2k/p2k.c Mon Jul 4 08:07:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: p2k.c,v 1.54 2011/01/07 16:02:32 pooka Exp $ */ +/* $NetBSD: p2k.c,v 1.55 2011/07/04 08:07:29 manu Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved. @@ -1304,8 +1304,8 @@ /*ARGSUSED*/ int p2k_node_listextattr(struct puffs_usermount *pu, puffs_cookie_t opc, - int attrnamespace, size_t *attrsize, - uint8_t *attrs, size_t *resid, const struct puffs_cred *pcr) + int attrnamespace, size_t *attrsize, uint8_t *attrs, + size_t *resid, int flags, const struct puffs_cred *pcr) { struct vnode *vp = OPC2VP(opc); struct kauth_cred *cred; @@ -1319,7 +1319,8 @@ cred = cred_create(pcr); RUMP_VOP_LOCK(vp, LK_EXCLUSIVE); - rv = RUMP_VOP_LISTEXTATTR(vp, attrnamespace, uio, attrsize, cred); + rv = RUMP_VOP_LISTEXTATTR(vp, attrnamespace, uio, attrsize, + flags, cred); RUMP_VOP_UNLOCK(vp); cred_destroy(cred); Index: src/lib/libperfuse/ops.c diff -u src/lib/libperfuse/ops.c:1.31 src/lib/libperfuse/ops.c:1.32 --- src/lib/libperfuse/ops.c:1.31 Tue Jun 28 16:19:16 2011 +++ src/lib/libperfuse/ops.c Mon Jul 4 08:07:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.31 2011/06/28 16:19:16 manu Exp $ */ +/* $NetBSD: ops.c,v 1.32 2011/07/04 08:07:29 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -3040,13 +3040,14 @@ /* ARGSUSED2 */ int -perfuse_node_listextattr(pu, opc, attrns, attrsize, attrs, resid, pcr) +perfuse_node_listextattr(pu, opc, attrns, attrsize, attrs, resid, flag, pcr) struct puffs_usermount *pu; puffs_cookie_t opc; int attrns; size_t *attrsize; uint8_t *attrs; size_t *resid; + int flag; const struct puffs_cred *pcr; { struct perfuse_state *ps; @@ -3093,6 +3094,19 @@ puffs_len = foh->len - sizeof(*foh); if (attrs != NULL) { + /* + * Convert the FUSE reply to length prefixed strings + * if this is what the kernel wants. + */ + if (flag & PUFFS_EXTATTR_LIST_LENPREFIX) { + size_t i, attrlen; + + for (i = 0; i < puffs_len; i += attrlen + 1) { +attrlen = strlen(np + i); +(void)memmove(np + i + 1, np + i, attrlen); +*(np + i) = (uint8_t)attrlen; + } + } (void)memcpy(attrs, np, puffs_len); *resid -= puffs_len; } Index: src/lib/libperfuse/perfuse_priv.h diff -u src/lib/libperfuse/perfuse_priv.h:1.19 src/lib/libperfuse/perfuse_priv.h:1.20 --- src/lib/libperfuse/perfuse_priv.h:1.19 Tue Jun 28 16:19:16 2011 +++ src/lib/libperfuse/perfuse_priv.h Mon Jul 4 08:07:30 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: perfuse_priv.h,v 1.19 2011/06/28 16:19:16 m
CVS commit: src/lib/libc
Module Name:src Committed By: matt Date: Mon Jul 4 08:02:35 UTC 2011 Modified Files: src/lib/libc/arch/arm/softfloat: softfloat.h src/lib/libc/arch/m68k/softfloat: softfloat.h src/lib/libc/arch/mips/softfloat: softfloat.h src/lib/libc/arch/powerpc/softfloat: softfloat.h src/lib/libc/arch/sh3/softfloat: softfloat.h src/lib/libc/arch/sparc64/softfloat: softfloat.h src/lib/libc/softfloat/bits64: softfloat.c Log Message: Add __floatunsidf __floatunsisf __floatunsitf routines. XXX i think they are correct but not sure. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/arm/softfloat/softfloat.h cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/m68k/softfloat/softfloat.h cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/mips/softfloat/softfloat.h cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/powerpc/softfloat/softfloat.h cvs rdiff -u -r1.9 -r1.10 src/lib/libc/arch/sh3/softfloat/softfloat.h cvs rdiff -u -r1.6 -r1.7 src/lib/libc/arch/sparc64/softfloat/softfloat.h cvs rdiff -u -r1.5 -r1.6 src/lib/libc/softfloat/bits64/softfloat.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/arch/arm/softfloat/softfloat.h diff -u src/lib/libc/arch/arm/softfloat/softfloat.h:1.7 src/lib/libc/arch/arm/softfloat/softfloat.h:1.8 --- src/lib/libc/arch/arm/softfloat/softfloat.h:1.7 Tue May 16 20:55:51 2006 +++ src/lib/libc/arch/arm/softfloat/softfloat.h Mon Jul 4 08:02:34 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat.h,v 1.7 2006/05/16 20:55:51 mrg Exp $ */ +/* $NetBSD: softfloat.h,v 1.8 2011/07/04 08:02:34 matt Exp $ */ /* This is a derivative work. */ @@ -119,13 +119,17 @@ Software IEC/IEEE integer-to-floating-point conversion routines. --- */ -float32 int32_to_float32( int ); -float64 int32_to_float64( int ); +float32 int32_to_float32( int32 ); +float32 uint32_to_float32( uint32 ); +float64 int32_to_float64( int32 ); +float64 uint32_to_float64( uint32 ); #ifdef FLOATX80 -floatx80 int32_to_floatx80( int ); +floatx80 int32_to_floatx80( int32 ); +floatx80 uint32_to_floatx80( uint32 ); #endif #ifdef FLOAT128 -float128 int32_to_float128( int ); +float128 int32_to_float128( int32 ); +float128 uint32_to_float128( uint32 ); #endif #ifndef SOFTFLOAT_FOR_GCC /* __floatdi?f is in libgcc2.c */ float32 int64_to_float32( long long ); Index: src/lib/libc/arch/m68k/softfloat/softfloat.h diff -u src/lib/libc/arch/m68k/softfloat/softfloat.h:1.2 src/lib/libc/arch/m68k/softfloat/softfloat.h:1.3 --- src/lib/libc/arch/m68k/softfloat/softfloat.h:1.2 Tue May 16 20:55:51 2006 +++ src/lib/libc/arch/m68k/softfloat/softfloat.h Mon Jul 4 08:02:34 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat.h,v 1.2 2006/05/16 20:55:51 mrg Exp $ */ +/* $NetBSD: softfloat.h,v 1.3 2011/07/04 08:02:34 matt Exp $ */ /* This is a derivative work. */ @@ -119,13 +119,17 @@ Software IEC/IEEE integer-to-floating-point conversion routines. --- */ -float32 int32_to_float32( int ); -float64 int32_to_float64( int ); +float32 int32_to_float32( int32 ); +float32 uint32_to_float32( uint32 ); +float64 int32_to_float64( int32 ); +float64 uint32_to_float64( uint32 ); #ifdef FLOATX80 -floatx80 int32_to_floatx80( int ); +floatx80 int32_to_floatx80( int32 ); +floatx80 uint32_to_floatx80( uint32 ); #endif #ifdef FLOAT128 -float128 int32_to_float128( int ); +float128 int32_to_float128( int32 ); +float128 uint32_to_float128( uint32 ); #endif float32 int64_to_float32( long long ); float64 int64_to_float64( long long ); Index: src/lib/libc/arch/mips/softfloat/softfloat.h diff -u src/lib/libc/arch/mips/softfloat/softfloat.h:1.3 src/lib/libc/arch/mips/softfloat/softfloat.h:1.4 --- src/lib/libc/arch/mips/softfloat/softfloat.h:1.3 Mon Jan 17 23:53:04 2011 +++ src/lib/libc/arch/mips/softfloat/softfloat.h Mon Jul 4 08:02:34 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat.h,v 1.3 2011/01/17 23:53:04 matt Exp $ */ +/* $NetBSD: softfloat.h,v 1.4 2011/07/04 08:02:34 matt Exp $ */ /* This is a derivative work. */ @@ -121,13 +121,17 @@ Software IEC/IEEE integer-to-floating-point conversion routines. --- */ -float32 int32_to_float32( int ); -float64 int32_to_float64( int ); +float32 int32_to_float32( int32 ); +float32 uint32_to_float32( uint32 ); +float64 int32_to_float64( int32 ); +float64 uint32_to_float64( uint32 ); #ifdef FLOATX80 -floatx80 int32_to_floatx80( int ); +floatx80 int32_to_floatx80( int32 ); +floatx80 uint32_to_floatx80( uint32 ); #endif #ifdef FLOAT128 -float128 int32_to_float128( int ); +float128 int32_to_float128( int32 ); +float128 uint32_to_float128( uint32 ); #endif #ifndef SOFTFLOAT_FOR_GCC /* __floatdi?f is in libgcc2.c */ float32 int64_to_float32
CVS commit: src
Module Name:src Committed By: manu Date: Mon Jul 4 07:54:38 UTC 2011 Modified Files: src/include/rpc: xdr.h src/lib/libc/include: namespace.h src/lib/libc/rpc: Makefile.inc Added Files: src/lib/libc/rpc: xdr_sizeof.c Log Message: Import xdr_sizeof() from FreeBSD To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/include/rpc/xdr.h cvs rdiff -u -r1.148 -r1.149 src/lib/libc/include/namespace.h cvs rdiff -u -r1.18 -r1.19 src/lib/libc/rpc/Makefile.inc cvs rdiff -u -r0 -r1.1 src/lib/libc/rpc/xdr_sizeof.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/rpc/xdr.h diff -u src/include/rpc/xdr.h:1.25 src/include/rpc/xdr.h:1.26 --- src/include/rpc/xdr.h:1.25 Wed Dec 28 15:26:06 2005 +++ src/include/rpc/xdr.h Mon Jul 4 07:54:38 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: xdr.h,v 1.25 2005/12/28 15:26:06 yamt Exp $ */ +/* $NetBSD: xdr.h,v 1.26 2011/07/04 07:54:38 manu Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -313,6 +313,7 @@ extern bool_t xdr_u_hyper(XDR *, u_longlong_t *); extern bool_t xdr_longlong_t(XDR *, longlong_t *); extern bool_t xdr_u_longlong_t(XDR *, u_longlong_t *); +extern unsigned long xdr_sizeof(xdrproc_t, void *); __END_DECLS /* Index: src/lib/libc/include/namespace.h diff -u src/lib/libc/include/namespace.h:1.148 src/lib/libc/include/namespace.h:1.149 --- src/lib/libc/include/namespace.h:1.148 Sat Mar 26 19:51:42 2011 +++ src/lib/libc/include/namespace.h Mon Jul 4 07:54:38 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: namespace.h,v 1.148 2011/03/26 19:51:42 christos Exp $ */ +/* $NetBSD: namespace.h,v 1.149 2011/07/04 07:54:38 manu Exp $ */ /*- * Copyright (c) 1997-2004 The NetBSD Foundation, Inc. @@ -747,6 +747,7 @@ #define xdr_rpcbs _xdr_rpcbs #define xdr_rpcbs _xdr_rpcbs #define xdr_short _xdr_short +#define xdr_sizeof _xdr_sizeof #define xdr_string _xdr_string #define xdr_u_char _xdr_u_char #define xdr_u_hyper _xdr_u_hyper Index: src/lib/libc/rpc/Makefile.inc diff -u src/lib/libc/rpc/Makefile.inc:1.18 src/lib/libc/rpc/Makefile.inc:1.19 --- src/lib/libc/rpc/Makefile.inc:1.18 Wed Jun 22 02:49:43 2011 +++ src/lib/libc/rpc/Makefile.inc Mon Jul 4 07:54:38 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.18 2011/06/22 02:49:43 mrg Exp $ +# $NetBSD: Makefile.inc,v 1.19 2011/07/04 07:54:38 manu Exp $ # librpc sources .PATH: ${.CURDIR}/rpc @@ -14,7 +14,7 @@ svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_generic.c svc_raw.c \ svc_run.c svc_simple.c svc_vc.c \ xdr.c xdr_array.c xdr_float.c xdr_mem.c xdr_rec.c xdr_reference.c \ - xdr_stdio.c __rpc_getxid.c + xdr_stdio.c xdr_sizeof.c __rpc_getxid.c CPPFLAGS+= -DPORTMAP Added files: Index: src/lib/libc/rpc/xdr_sizeof.c diff -u /dev/null src/lib/libc/rpc/xdr_sizeof.c:1.1 --- /dev/null Mon Jul 4 07:54:38 2011 +++ src/lib/libc/rpc/xdr_sizeof.c Mon Jul 4 07:54:38 2011 @@ -0,0 +1,183 @@ +/* + * Sun RPC is a product of Sun Microsystems, Inc. and is provided for + * unrestricted use provided that this legend is included on all tape + * media and as a part of the software program in whole or part. Users + * may copy or modify Sun RPC without charge, but are not authorized + * to license or distribute it to anyone else except as part of a product or + * program developed by the user. + * + * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE + * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR + * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. + * + * Sun RPC is provided with no support and without any obligation on the + * part of Sun Microsystems, Inc. to assist in its use, correction, + * modification or enhancement. + * + * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE + * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC + * OR ANY PART THEREOF. + * + * In no event will Sun Microsystems, Inc. be liable for any lost revenue + * or profits or other special, indirect and consequential damages, even if + * Sun has been advised of the possibility of such damages. + * + * Sun Microsystems, Inc. + * 2550 Garcia Avenue + * Mountain View, California 94043 + */ +/* + * xdr_sizeof.c + * + * Copyright 1990 Sun Microsystems, Inc. + * + * General purpose routine to see how much space something will use + * when serialized using XDR. + */ + +#include +#if 0 +__FBSDID("$FreeBSD: src/lib/libc/xdr/xdr_sizeof.c,v 1.5.38.1 2010/12/21 17:10:29 kensmith Exp $"); +#else +__RCSID("$NetBSD: xdr_sizeof.c,v 1.1 2011/07/04 07:54:38 manu Exp $"); +#endif + +#include "namespace.h" +#include +#include +#include +#include + +#ifdef __weak_alias +__weak_alias(xdr_sizeof,_xdr_sizeof) +#endif + +static bool_t x_putlong(XDR *, const long *); +static bool_t x_putbytes(XDR *, const char *, u_int); +static u_int x_getpostn(XDR *); +static bool_t x_setpos