CVS commit: src/external/bsd/elftoolchain/common/sys
Module Name:src Committed By: christos Date: Wed Mar 27 21:55:35 UTC 2024 Modified Files: src/external/bsd/elftoolchain/common/sys: Makefile Log Message: Add ${_MKTARGET_CREATE} To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/bsd/elftoolchain/common/sys/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/elftoolchain/common/sys/Makefile diff -u src/external/bsd/elftoolchain/common/sys/Makefile:1.1 src/external/bsd/elftoolchain/common/sys/Makefile:1.2 --- src/external/bsd/elftoolchain/common/sys/Makefile:1.1 Tue Apr 6 15:40:19 2021 +++ src/external/bsd/elftoolchain/common/sys/Makefile Wed Mar 27 17:55:35 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2021/04/06 19:40:19 jkoshy Exp $ +# $NetBSD: Makefile,v 1.2 2024/03/27 21:55:35 christos Exp $ .include @@ -11,6 +11,7 @@ INCS= elfdefinitions.h INCSDIR= /usr/include/sys elfdefinitions.h: elfdefinitions.m4 elfconstants.m4 + ${_MKTARGET_CREATE} ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ elfdefinitions.m4 > ${.TARGET}
CVS commit: src/external/bsd/elftoolchain/common/sys
Module Name:src Committed By: christos Date: Wed Mar 27 21:55:35 UTC 2024 Modified Files: src/external/bsd/elftoolchain/common/sys: Makefile Log Message: Add ${_MKTARGET_CREATE} To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/bsd/elftoolchain/common/sys/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tools/elftoolchain/common/sys
Module Name:src Committed By: christos Date: Wed Mar 27 21:55:08 UTC 2024 Modified Files: src/tools/elftoolchain/common/sys: Makefile Log Message: Add ${_MKTARGET_CREATE} To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tools/elftoolchain/common/sys/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tools/elftoolchain/common/sys/Makefile diff -u src/tools/elftoolchain/common/sys/Makefile:1.2 src/tools/elftoolchain/common/sys/Makefile:1.3 --- src/tools/elftoolchain/common/sys/Makefile:1.2 Tue Mar 26 12:52:03 2024 +++ src/tools/elftoolchain/common/sys/Makefile Wed Mar 27 17:55:08 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2024/03/26 16:52:03 christos Exp $ +# $NetBSD: Makefile,v 1.3 2024/03/27 21:55:08 christos Exp $ .include @@ -10,6 +10,7 @@ INCS= elfdefinitions.h HOST_INCSDIR= ${TOOLDIR}/include/sys elfdefinitions.h: elfdefinitions.m4 elfconstants.m4 + ${_MKTARGET_CREATE} ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ elfdefinitions.m4 > ${.TARGET}
CVS commit: src/tools/elftoolchain/common/sys
Module Name:src Committed By: christos Date: Wed Mar 27 21:55:08 UTC 2024 Modified Files: src/tools/elftoolchain/common/sys: Makefile Log Message: Add ${_MKTARGET_CREATE} To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tools/elftoolchain/common/sys/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tools
Module Name:src Committed By: christos Date: Wed Mar 27 21:54:43 UTC 2024 Modified Files: src/tools: Makefile.nbincludes src/tools/elftoolchain/libdwarf: Makefile Log Message: Remove dependency to elfdefinitions.h, this is a mess, since it needs ${TOOL_M4} which might not be available yet. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tools/Makefile.nbincludes cvs rdiff -u -r1.4 -r1.5 src/tools/elftoolchain/libdwarf/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tools/Makefile.nbincludes diff -u src/tools/Makefile.nbincludes:1.7 src/tools/Makefile.nbincludes:1.8 --- src/tools/Makefile.nbincludes:1.7 Tue Mar 26 12:48:34 2024 +++ src/tools/Makefile.nbincludes Wed Mar 27 17:54:43 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.nbincludes,v 1.7 2024/03/26 16:48:34 christos Exp $ +# $NetBSD: Makefile.nbincludes,v 1.8 2024/03/27 21:54:43 christos Exp $ .include @@ -6,7 +6,6 @@ _ARCHDIR:= ${.PARSEDIR}/../sys/arch _INCDIR:= ${.PARSEDIR}/../include _SYSDIR:= ${.PARSEDIR}/../sys/sys _UFSDIR:= ${.PARSEDIR}/../sys/ufs -_ELFTOOLCHAINDIR:= ${.PARSEDIR}/elftoolchain _SUBDIR!= cd ${_ARCHDIR} && ${MAKE} -V SUBDIR .if make(depend) || make(all) || make(dependall) || make(install) @@ -46,4 +45,3 @@ beforedepend: ${TOOL_PAX} -rw ${_UFS_INCS} ${TOOLDIR}/include/nbinclude/ufs cd ${TOOLDIR}/include/nbinclude && rm -f machine && \ ${HOST_INSTALL_SYMLINK} ${MACHINE} machine - cd ${_ELFTOOLCHAINDIR}/common && ${MAKE} includes Index: src/tools/elftoolchain/libdwarf/Makefile diff -u src/tools/elftoolchain/libdwarf/Makefile:1.4 src/tools/elftoolchain/libdwarf/Makefile:1.5 --- src/tools/elftoolchain/libdwarf/Makefile:1.4 Tue Mar 26 12:48:34 2024 +++ src/tools/elftoolchain/libdwarf/Makefile Wed Mar 27 17:54:43 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2024/03/26 16:48:34 christos Exp $ +# $NetBSD: Makefile,v 1.5 2024/03/27 21:54:43 christos Exp $ HOSTLIB=dwarf @@ -73,7 +73,6 @@ COMPATLIB_NO_LIB= yes # only the include LIBDWARF_OBJDIR!= cd ${.CURDIR} && ${PRINTOBJDIR} -CPPFLAGS+= -DBUILTIN_ELF_HEADERS CPPFLAGS+= -I${.CURDIR}/../../compat CPPFLAGS+= -I${.CURDIR}/../../common CPPFLAGS+= -I${LIBDWARF_OBJDIR}/../common @@ -97,5 +96,4 @@ CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1 -D_F HOST_CPPFLAGS:= ${CPPFLAGS} ${HOST_CPPFLAGS} CPPFLAGS:= # empty -.include "../../Makefile.nbincludes" .include
CVS commit: src/tools
Module Name:src Committed By: christos Date: Wed Mar 27 21:54:43 UTC 2024 Modified Files: src/tools: Makefile.nbincludes src/tools/elftoolchain/libdwarf: Makefile Log Message: Remove dependency to elfdefinitions.h, this is a mess, since it needs ${TOOL_M4} which might not be available yet. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tools/Makefile.nbincludes cvs rdiff -u -r1.4 -r1.5 src/tools/elftoolchain/libdwarf/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/elftoolchain/dist/libdwarf
Module Name:src Committed By: christos Date: Wed Mar 27 21:53:06 UTC 2024 Modified Files: src/external/bsd/elftoolchain/dist/libdwarf: libdwarf_reloc.c Log Message: Don't try to compile the arch-specific relocation code if we don't have the built-in headers (for tools) To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 \ src/external/bsd/elftoolchain/dist/libdwarf/libdwarf_reloc.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/elftoolchain/dist/libdwarf/libdwarf_reloc.c diff -u src/external/bsd/elftoolchain/dist/libdwarf/libdwarf_reloc.c:1.5 src/external/bsd/elftoolchain/dist/libdwarf/libdwarf_reloc.c:1.6 --- src/external/bsd/elftoolchain/dist/libdwarf/libdwarf_reloc.c:1.5 Sun Mar 3 12:37:32 2024 +++ src/external/bsd/elftoolchain/dist/libdwarf/libdwarf_reloc.c Wed Mar 27 17:53:06 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: libdwarf_reloc.c,v 1.5 2024/03/03 17:37:32 christos Exp $ */ +/* $NetBSD: libdwarf_reloc.c,v 1.6 2024/03/27 21:53:06 christos Exp $ */ /*- * Copyright (c) 2010 Kai Wang @@ -28,7 +28,7 @@ #include "_libdwarf.h" -__RCSID("$NetBSD: libdwarf_reloc.c,v 1.5 2024/03/03 17:37:32 christos Exp $"); +__RCSID("$NetBSD: libdwarf_reloc.c,v 1.6 2024/03/27 21:53:06 christos Exp $"); ELFTC_VCSID("Id: libdwarf_reloc.c 3741 2019-06-07 06:32:01Z jkoshy"); Dwarf_Unsigned @@ -36,7 +36,7 @@ _dwarf_get_reloc_type(Dwarf_P_Debug dbg, { assert(dbg != NULL); - +#ifdef BUILTIN_ELF_HEADERS switch (dbg->dbgp_isa) { case DW_ISA_AARCH64: return (is64 ? R_AARCH64_ABS64 : R_AARCH64_ABS32); @@ -59,6 +59,7 @@ _dwarf_get_reloc_type(Dwarf_P_Debug dbg, default: break; } +#endif return (0); /* NOT REACHED */ } @@ -66,6 +67,7 @@ int _dwarf_get_reloc_size(Dwarf_Debug dbg, Dwarf_Unsigned rel_type) { +#ifdef BUILTIN_ELF_HEADERS switch (dbg->dbg_machine) { case EM_NONE: break; @@ -127,6 +129,7 @@ _dwarf_get_reloc_size(Dwarf_Debug dbg, D default: break; } +#endif /* unknown relocation. */ return (0);
CVS commit: src/external/bsd/elftoolchain/dist/libdwarf
Module Name:src Committed By: christos Date: Wed Mar 27 21:53:06 UTC 2024 Modified Files: src/external/bsd/elftoolchain/dist/libdwarf: libdwarf_reloc.c Log Message: Don't try to compile the arch-specific relocation code if we don't have the built-in headers (for tools) To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 \ src/external/bsd/elftoolchain/dist/libdwarf/libdwarf_reloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Wed Mar 27 21:14:09 UTC 2024 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add missing assignment to $$ in grammar Byacc and Bison both provide this assignment for all actions, whether default or not, but the wording in POSIX doesn't guarantee this. To generate a diff of this commit: cvs rdiff -u -r1.491 -r1.492 src/usr.bin/xlint/lint1/cgram.y 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/xlint/lint1/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.491 src/usr.bin/xlint/lint1/cgram.y:1.492 --- src/usr.bin/xlint/lint1/cgram.y:1.491 Sat Mar 9 13:54:47 2024 +++ src/usr.bin/xlint/lint1/cgram.y Wed Mar 27 21:14:09 2024 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: cgram.y,v 1.491 2024/03/09 13:54:47 rillig Exp $ */ +/* $NetBSD: cgram.y,v 1.492 2024/03/27 21:14:09 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include #if defined(__RCSID) -__RCSID("$NetBSD: cgram.y,v 1.491 2024/03/09 13:54:47 rillig Exp $"); +__RCSID("$NetBSD: cgram.y,v 1.492 2024/03/27 21:14:09 rillig Exp $"); #endif #include @@ -651,6 +651,7 @@ argument_expression_list: add_function_argument($$, $1); } | argument_expression_list T_COMMA assignment_expression { + $$ = $1; add_function_argument($1, $3); } ;
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Wed Mar 27 21:14:09 UTC 2024 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add missing assignment to $$ in grammar Byacc and Bison both provide this assignment for all actions, whether default or not, but the wording in POSIX doesn't guarantee this. To generate a diff of this commit: cvs rdiff -u -r1.491 -r1.492 src/usr.bin/xlint/lint1/cgram.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: rillig Date: Wed Mar 27 20:09:44 UTC 2024 Modified Files: src/tests/usr.bin/xlint/lint1: msg_141.c src/usr.bin/xlint/lint1: emit1.c tree.c Log Message: lint: clean up; extend overflow test To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/tests/usr.bin/xlint/lint1/msg_141.c cvs rdiff -u -r1.93 -r1.94 src/usr.bin/xlint/lint1/emit1.c cvs rdiff -u -r1.627 -r1.628 src/usr.bin/xlint/lint1/tree.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/usr.bin/xlint/lint1/msg_141.c diff -u src/tests/usr.bin/xlint/lint1/msg_141.c:1.16 src/tests/usr.bin/xlint/lint1/msg_141.c:1.17 --- src/tests/usr.bin/xlint/lint1/msg_141.c:1.16 Sun Mar 10 19:45:14 2024 +++ src/tests/usr.bin/xlint/lint1/msg_141.c Wed Mar 27 20:09:43 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: msg_141.c,v 1.16 2024/03/10 19:45:14 rillig Exp $ */ +/* $NetBSD: msg_141.c,v 1.17 2024/03/27 20:09:43 rillig Exp $ */ # 3 "msg_141.c" // Test for message: '%s' overflows '%s' [141] @@ -12,6 +12,7 @@ signed int s32; unsigned int u32; signed long long s64; unsigned long long u64; +_Bool cond; void compl_s32(void) @@ -406,7 +407,16 @@ minus_s64(void) void minus_u64(void) { - // TODO + u64 = 0xULL - 0xULL; + /* expect+1: warning: '0 - 1' overflows 'unsigned long long' [141] */ + u64 = 0xULL - 0x0001ULL; + /* expect+1: warning: '0 - 9223372036854775808' overflows 'unsigned long long' [141] */ + u64 = 0xULL - 0x8000ULL; + u64 = 0x8000ULL - 0x0001ULL; + /* expect+1: warning: '0 - 18446744073709551615' overflows 'unsigned long long' [141] */ + u64 = 0xULL - 0xULL; + u64 = 0xULL - 0xULL; + u64 = 0xULL - 0xULL; } void @@ -439,13 +449,19 @@ shl_u32(void) void shl_s64(void) { - // TODO + s64 = 1LL << 62; + s64 = 1LL << 63; + /* expect+1: warning: shift amount 64 equals bit-size of 'long long' [267] */ + s64 = 1LL << 64; } void shl_u64(void) { - // TODO + s64 = 1ULL << 62; + s64 = 1ULL << 63; + /* expect+1: warning: shift amount 64 equals bit-size of 'unsigned long long' [267] */ + s64 = 1ULL << 64; } void @@ -483,13 +499,13 @@ shr_s64(void) // TODO /* expect+1: error: negative array dimension (-16) [20] */ - typedef int shr_minus_1_shr_0[-16LL >> 0]; + typedef int minus_16_shr_0[-16LL >> 0]; /* expect+1: error: negative array dimension (-8) [20] */ - typedef int shr_minus_1_shr_1[-16LL >> 1]; + typedef int minus_16_shr_1[-16LL >> 1]; /* expect+1: error: negative array dimension (-1) [20] */ - typedef int shr_minus_1_shr_16[-16LL >> 16]; + typedef int minus_16_shr_16[-16LL >> 16]; /* expect+1: error: negative array dimension (-1) [20] */ - typedef int shr_minus_1_shr_40[-16LL >> 40]; + typedef int minus_16_shr_40[-16LL >> 40]; } void @@ -501,25 +517,45 @@ shr_u64(void) void compare_s32(void) { - // TODO + cond = 0x7fff < (-0x7fff - 1); + cond = 0x7fff <= (-0x7fff - 1); + cond = 0x7fff > (-0x7fff - 1); + cond = 0x7fff >= (-0x7fff - 1); + cond = 0x7fff == (-0x7fff - 1); + cond = 0x7fff != (-0x7fff - 1); } void compare_u32(void) { - // TODO + cond = 0xU < 0xU; + cond = 0xU <= 0xU; + cond = 0xU > 0xU; + cond = 0xU >= 0xU; + cond = 0xU == 0xU; + cond = 0xU != 0xU; } void compare_s64(void) { - // TODO + cond = 0x7fffLL < (-0x7fffLL - 1); + cond = 0x7fffLL <= (-0x7fffLL - 1); + cond = 0x7fffLL > (-0x7fffLL - 1); + cond = 0x7fffLL >= (-0x7fffLL - 1); + cond = 0x7fffLL == (-0x7fffLL - 1); + cond = 0x7fffLL != (-0x7fffLL - 1); } void compare_u64(void) { - // TODO + cond = 0xULL < 0xULL; + cond = 0xULL <= 0xULL; + cond = 0xULL > 0xULL; + cond = 0xULL >= 0xULL; + cond = 0xULL == 0xULL; + cond = 0xULL != 0xULL; } void @@ -538,13 +574,13 @@ bitand_u32(void) void bitand_s64(void) { - // TODO + u64 = ~0x7fffLL & 0xLL; } void bitand_u64(void) { - // TODO + u64 = 0xULL & 0xULL; } void @@ -563,13 +599,13 @@ bitxor_u32(void) void bitxor_s64(void) { - // TODO + s64 = ~0x123456789abcdef0LL ^ 0x0123456789abcdefLL; } void bitxor_u64(void) { - // TODO + u64 = 0xfedcba9876543210ULL ^ 0x0123456789abcdefULL; } void @@ -589,11 +625,11 @@ bitor_u32(void) void bitor_s64(void) { - // TODO + s64 =
CVS commit: src
Module Name:src Committed By: rillig Date: Wed Mar 27 20:09:44 UTC 2024 Modified Files: src/tests/usr.bin/xlint/lint1: msg_141.c src/usr.bin/xlint/lint1: emit1.c tree.c Log Message: lint: clean up; extend overflow test To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/tests/usr.bin/xlint/lint1/msg_141.c cvs rdiff -u -r1.93 -r1.94 src/usr.bin/xlint/lint1/emit1.c cvs rdiff -u -r1.627 -r1.628 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: rillig Date: Wed Mar 27 19:28:21 UTC 2024 Modified Files: src/tests/usr.bin/xlint/lint1: msg_167.c msg_168.c msg_187.c msg_199.c msg_200.c platform_ilp32.c src/usr.bin/xlint/lint1: err.c func.c init.c tree.c Log Message: lint: don't use 'long' in diagnostics The size of 'long' differs between 64-bit and 32-bit platforms. Eliminate this possible platform-dependency. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_167.c \ src/tests/usr.bin/xlint/lint1/msg_187.c \ src/tests/usr.bin/xlint/lint1/msg_200.c cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/xlint/lint1/msg_168.c cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_199.c \ src/tests/usr.bin/xlint/lint1/platform_ilp32.c cvs rdiff -u -r1.233 -r1.234 src/usr.bin/xlint/lint1/err.c cvs rdiff -u -r1.184 -r1.185 src/usr.bin/xlint/lint1/func.c cvs rdiff -u -r1.263 -r1.264 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.626 -r1.627 src/usr.bin/xlint/lint1/tree.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/usr.bin/xlint/lint1/msg_167.c diff -u src/tests/usr.bin/xlint/lint1/msg_167.c:1.5 src/tests/usr.bin/xlint/lint1/msg_167.c:1.6 --- src/tests/usr.bin/xlint/lint1/msg_167.c:1.5 Fri Jul 7 19:45:22 2023 +++ src/tests/usr.bin/xlint/lint1/msg_167.c Wed Mar 27 19:28:20 2024 @@ -1,7 +1,7 @@ -/* $NetBSD: msg_167.c,v 1.5 2023/07/07 19:45:22 rillig Exp $ */ +/* $NetBSD: msg_167.c,v 1.6 2024/03/27 19:28:20 rillig Exp $ */ # 3 "msg_167.c" -// Test for message: array subscript cannot be negative: %ld [167] +// Test for message: array subscript cannot be negative: %jd [167] /* lint1-extra-flags: -X 351 */ Index: src/tests/usr.bin/xlint/lint1/msg_187.c diff -u src/tests/usr.bin/xlint/lint1/msg_187.c:1.5 src/tests/usr.bin/xlint/lint1/msg_187.c:1.6 --- src/tests/usr.bin/xlint/lint1/msg_187.c:1.5 Tue Mar 28 14:44:35 2023 +++ src/tests/usr.bin/xlint/lint1/msg_187.c Wed Mar 27 19:28:20 2024 @@ -1,7 +1,7 @@ -/* $NetBSD: msg_187.c,v 1.5 2023/03/28 14:44:35 rillig Exp $ */ +/* $NetBSD: msg_187.c,v 1.6 2024/03/27 19:28:20 rillig Exp $ */ # 3 "msg_187.c" -// Test for message: string literal too long (%lu) for target array (%lu) [187] +// Test for message: string literal too long (%ju) for target array (%ju) [187] /* lint1-extra-flags: -X 351 */ Index: src/tests/usr.bin/xlint/lint1/msg_200.c diff -u src/tests/usr.bin/xlint/lint1/msg_200.c:1.5 src/tests/usr.bin/xlint/lint1/msg_200.c:1.6 --- src/tests/usr.bin/xlint/lint1/msg_200.c:1.5 Sun Jul 9 11:01:27 2023 +++ src/tests/usr.bin/xlint/lint1/msg_200.c Wed Mar 27 19:28:20 2024 @@ -1,7 +1,7 @@ -/* $NetBSD: msg_200.c,v 1.5 2023/07/09 11:01:27 rillig Exp $ */ +/* $NetBSD: msg_200.c,v 1.6 2024/03/27 19:28:20 rillig Exp $ */ # 3 "msg_200.c" -// Test for message: duplicate case '%lu' in switch [200] +// Test for message: duplicate case '%ju' in switch [200] /* lint1-extra-flags: -X 351 */ Index: src/tests/usr.bin/xlint/lint1/msg_168.c diff -u src/tests/usr.bin/xlint/lint1/msg_168.c:1.10 src/tests/usr.bin/xlint/lint1/msg_168.c:1.11 --- src/tests/usr.bin/xlint/lint1/msg_168.c:1.10 Tue Mar 28 14:44:35 2023 +++ src/tests/usr.bin/xlint/lint1/msg_168.c Wed Mar 27 19:28:20 2024 @@ -1,7 +1,7 @@ -/* $NetBSD: msg_168.c,v 1.10 2023/03/28 14:44:35 rillig Exp $ */ +/* $NetBSD: msg_168.c,v 1.11 2024/03/27 19:28:20 rillig Exp $ */ # 3 "msg_168.c" -// Test for message: array subscript cannot be > %d: %ld [168] +// Test for message: array subscript cannot be > %d: %jd [168] /* lint1-extra-flags: -X 351 */ Index: src/tests/usr.bin/xlint/lint1/msg_199.c diff -u src/tests/usr.bin/xlint/lint1/msg_199.c:1.4 src/tests/usr.bin/xlint/lint1/msg_199.c:1.5 --- src/tests/usr.bin/xlint/lint1/msg_199.c:1.4 Sun Jul 9 11:01:27 2023 +++ src/tests/usr.bin/xlint/lint1/msg_199.c Wed Mar 27 19:28:20 2024 @@ -1,7 +1,7 @@ -/* $NetBSD: msg_199.c,v 1.4 2023/07/09 11:01:27 rillig Exp $ */ +/* $NetBSD: msg_199.c,v 1.5 2024/03/27 19:28:20 rillig Exp $ */ # 3 "msg_199.c" -// Test for message: duplicate case '%ld' in switch [199] +// Test for message: duplicate case '%jd' in switch [199] /* lint1-extra-flags: -X 351 */ Index: src/tests/usr.bin/xlint/lint1/platform_ilp32.c diff -u src/tests/usr.bin/xlint/lint1/platform_ilp32.c:1.4 src/tests/usr.bin/xlint/lint1/platform_ilp32.c:1.5 --- src/tests/usr.bin/xlint/lint1/platform_ilp32.c:1.4 Mon Feb 27 23:07:53 2023 +++ src/tests/usr.bin/xlint/lint1/platform_ilp32.c Wed Mar 27 19:28:20 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: platform_ilp32.c,v 1.4 2023/02/27 23:07:53 rillig Exp $ */ +/* $NetBSD: platform_ilp32.c,v 1.5 2024/03/27 19:28:20 rillig Exp $ */ # 3 "platform_ilp32.c" /* @@ -10,7 +10,37 @@ * platform_ilp32_long.c */ -/* lint1-extra-flags: -c -h -a -p -b -r -z */ +/* lint1-extra-flags: -c -h -a -p -b -r -z -X 351 */ /* lint1-only-if: ilp32 */ -typedef
CVS commit: src
Module Name:src Committed By: rillig Date: Wed Mar 27 19:28:21 UTC 2024 Modified Files: src/tests/usr.bin/xlint/lint1: msg_167.c msg_168.c msg_187.c msg_199.c msg_200.c platform_ilp32.c src/usr.bin/xlint/lint1: err.c func.c init.c tree.c Log Message: lint: don't use 'long' in diagnostics The size of 'long' differs between 64-bit and 32-bit platforms. Eliminate this possible platform-dependency. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_167.c \ src/tests/usr.bin/xlint/lint1/msg_187.c \ src/tests/usr.bin/xlint/lint1/msg_200.c cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/xlint/lint1/msg_168.c cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_199.c \ src/tests/usr.bin/xlint/lint1/platform_ilp32.c cvs rdiff -u -r1.233 -r1.234 src/usr.bin/xlint/lint1/err.c cvs rdiff -u -r1.184 -r1.185 src/usr.bin/xlint/lint1/func.c cvs rdiff -u -r1.263 -r1.264 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.626 -r1.627 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/mountd
Module Name:src Committed By: uwe Date: Wed Mar 27 13:11:14 UTC 2024 Modified Files: src/usr.sbin/mountd: exports.5 Log Message: exports(5): improve mark up To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/usr.sbin/mountd/exports.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/mountd
Module Name:src Committed By: uwe Date: Wed Mar 27 13:11:14 UTC 2024 Modified Files: src/usr.sbin/mountd: exports.5 Log Message: exports(5): improve mark up To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/usr.sbin/mountd/exports.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/mountd/exports.5 diff -u src/usr.sbin/mountd/exports.5:1.35 src/usr.sbin/mountd/exports.5:1.36 --- src/usr.sbin/mountd/exports.5:1.35 Wed Mar 27 01:43:26 2024 +++ src/usr.sbin/mountd/exports.5 Wed Mar 27 13:11:14 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: exports.5,v 1.35 2024/03/27 01:43:26 riastradh Exp $ +.\" $NetBSD: exports.5,v 1.36 2024/03/27 13:11:14 uwe Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)exports.5 8.3 (Berkeley) 3/29/95 .\" -.Dd October 8, 2006 +.Dd March 27, 2024 .Dt EXPORTS 5 .Os .Sh NAME @@ -55,16 +55,16 @@ Each entry in is a line with a list of directories followed by a list of hosts, netgroups, and options, separated by spaces or tabs: .Pp -.Dl Pf / Va dir "..." Oo Va host | Va netgroup | Fl Va option Oc "..." +.D1 Li / Ns Ar dir Li ... Oo Ar host | Ar netgroup | Fl Ar option Oc Li ... .Pp All directories in a single line must live in the same filesystem, which is exported to the hosts and netgroups listed, according to the options specified. Exported directories must not have pathname components that are symbolic links, -.Ql "." , +.Ql \&. , or -.Ql ".." . +.Ql \&.. . .Pp .Bf -symbolic Warning: @@ -110,8 +110,9 @@ must come before any hosts, netgroups, o Options begin with .Ql - . All other items on an export line are interpreted either as netgroups -(see -.Xr netgroup 5 ) +.Po see +.Xr netgroup 5 +.Pc or as hosts, which can be either names, as in example.com, or numbers, as in 192.0.2.123 or 2001:db8:1234:abcd::42. Sets of hosts in a contiguous network range can be specified with the @@ -129,7 +130,7 @@ options are exported to hosts on the network, with no access control. .Pp Supported export options: -.Bl -tag -width ".Fl noresvport" +.Bl -tag -width Fl .It Fl alldirs Allow mount requests from clients at any point within the filesystem, including regular files. @@ -144,39 +145,40 @@ A client can still access the whole filesystem via individual RPCs if it wanted to, even if just one subdirectory has been mounted. .Sm off -.It Fl maproot No = Ar user +.It Fl maproot Li = Ar user .Sm on The credential of the specified user is used for remote access by root. The credential includes all the groups to which the user is a member -on the local machine (see -.Xr id 1 ) . +on the local machine +.Po see +.Xr id 1 +.Pc . The user may be specified by name or number. .Sm off -.It Fl maproot No = Ar user : group1 : group2 : ... +.It Fl maproot Li = Ar user\^ Li \&: Ar group1\^ Li \&: group2\^ Li \&: Ar ... .Sm on The colon separated list is used to specify the precise credential to be used for remote access by root. The elements of the list may be either names or numbers. Note that -.Sm off -.Ql Ar user ":" -.Sm on +.Sq Ar user\^ Ns Li \&: +(with the trailing colon) should be used to distinguish a credential containing no groups from a complete credential for that user. .Sm off -.It Fl mapall No = Ar user -.It Fl mapall No = Ar user : group1 : group2 : ... +.It Fl mapall Li = Ar user +.It Fl mapall Li = Ar user\^ Li \&: Ar group1\^ Li \&: Ar group2\^ Li \&: Ar ... .Sm on Mapping for all client uids (including root) using the same semantics as .Fl maproot . .It Fl r Ar user -.It Fl r Ar user Ns : Ns Ar group1 Ns : Ns Ar group2 Ns : Ar ... +.It Fl r Ar user\^ Ns Li \&: Ns Ar group1\^ Ns Li \&: Ns Ar group2\^ Ns Li \&: Ns Ar ... Synonym for .Fl maproot , for compatibility with older export file formats. .Pp -Note: +.Em Note : Not a synonym for the read-only option .Fl ro . .El @@ -196,7 +198,7 @@ If a option is given, all users (including root) will be mapped to that credential in place of their own. -.Bl -tag -width ".Fl noresvport" +.Bl -tag -width Fl .It Fl kerb Specifies that the Kerberos authentication server should be used to authenticate and map client credentials. @@ -204,8 +206,11 @@ used to authenticate and map client cred .It Fl ro Export filesystem read-only. Clients will be forbidden to change or write to anything in the -filesystem (except for named pipes, sockets, and device nodes, where -write semantics is client-side anyway). +filesystem +.Po +except for named pipes, sockets, and device nodes, where +write semantics is client-side anyway +.Pc . .It Fl o Synonym for .Fl ro @@ -226,9 +231,7 @@ Using this option decreases the security (WebNFS) Enables WebNFS export, equivalent to combining .Fl public , -.Sm off -.Fl mapall No = Ar nobody , -.Sm on +.Fl mapall=nobody , and .Fl ro . .It Fl
CVS commit: src/sys/arch/hppa/dev
Module Name:src Committed By: macallan Date: Wed Mar 27 09:08:38 UTC 2024 Modified Files: src/sys/arch/hppa/dev: gftfb.c Log Message: fix brainfart - only update fbi_fbsize, not the size of the visible fb... To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/hppa/dev/gftfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/hppa/dev
Module Name:src Committed By: macallan Date: Wed Mar 27 09:08:38 UTC 2024 Modified Files: src/sys/arch/hppa/dev: gftfb.c Log Message: fix brainfart - only update fbi_fbsize, not the size of the visible fb... To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/hppa/dev/gftfb.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/hppa/dev/gftfb.c diff -u src/sys/arch/hppa/dev/gftfb.c:1.10 src/sys/arch/hppa/dev/gftfb.c:1.11 --- src/sys/arch/hppa/dev/gftfb.c:1.10 Wed Mar 27 06:52:03 2024 +++ src/sys/arch/hppa/dev/gftfb.c Wed Mar 27 09:08:38 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: gftfb.c,v 1.10 2024/03/27 06:52:03 macallan Exp $ */ +/* $NetBSD: gftfb.c,v 1.11 2024/03/27 09:08:38 macallan Exp $ */ /* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */ @@ -839,7 +839,6 @@ gftfb_ioctl(void *v, void *vs, u_long cm int ret; ret = wsdisplayio_get_fbinfo(>scr_ri, fbi); - fbi->fbi_height = sc->sc_scr.fbheight; fbi->fbi_fbsize = sc->sc_scr.fbheight * 2048; return ret; }
CVS commit: src/sys/arch/hppa/dev
Module Name:src Committed By: macallan Date: Wed Mar 27 06:52:03 UTC 2024 Modified Files: src/sys/arch/hppa/dev: gftfb.c Log Message: in gftfb_ioctl(): - identify ourselves as WSDISPLAY_TYPE_STI - return full fb geometry in WSDISPLAYIO_GET_FBINFO To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hppa/dev/gftfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/hppa/dev
Module Name:src Committed By: macallan Date: Wed Mar 27 06:52:03 UTC 2024 Modified Files: src/sys/arch/hppa/dev: gftfb.c Log Message: in gftfb_ioctl(): - identify ourselves as WSDISPLAY_TYPE_STI - return full fb geometry in WSDISPLAYIO_GET_FBINFO To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hppa/dev/gftfb.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/hppa/dev/gftfb.c diff -u src/sys/arch/hppa/dev/gftfb.c:1.9 src/sys/arch/hppa/dev/gftfb.c:1.10 --- src/sys/arch/hppa/dev/gftfb.c:1.9 Wed Mar 6 08:19:44 2024 +++ src/sys/arch/hppa/dev/gftfb.c Wed Mar 27 06:52:03 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: gftfb.c,v 1.9 2024/03/06 08:19:44 macallan Exp $ */ +/* $NetBSD: gftfb.c,v 1.10 2024/03/27 06:52:03 macallan Exp $ */ /* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */ @@ -780,7 +780,7 @@ gftfb_ioctl(void *v, void *vs, u_long cm switch (cmd) { case WSDISPLAYIO_GTYPE: - *(u_int *)data = WSDISPLAY_TYPE_PCIMISC; + *(u_int *)data = WSDISPLAY_TYPE_STI; return 0; /* PCI config read/write passthrough. */ @@ -834,11 +834,15 @@ gftfb_ioctl(void *v, void *vs, u_long cm return 0; case WSDISPLAYIO_GET_FBINFO: - { + { struct wsdisplayio_fbinfo *fbi = data; + int ret; - return wsdisplayio_get_fbinfo(>scr_ri, fbi); - } + ret = wsdisplayio_get_fbinfo(>scr_ri, fbi); + fbi->fbi_height = sc->sc_scr.fbheight; + fbi->fbi_fbsize = sc->sc_scr.fbheight * 2048; + return ret; + } case WSDISPLAYIO_GCURPOS: {