CVS commit: src/usr.bin/rpcgen
Module Name:src Committed By: christos Date: Tue Jun 18 21:31:35 UTC 2024 Modified Files: src/usr.bin/rpcgen: rpc_svcout.c Log Message: Add prototype for the foo_freeresult() functions used in the thread-safe versions of the code (Anthony Mallet) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.bin/rpcgen/rpc_svcout.c 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/rpcgen/rpc_svcout.c diff -u src/usr.bin/rpcgen/rpc_svcout.c:1.31 src/usr.bin/rpcgen/rpc_svcout.c:1.32 --- src/usr.bin/rpcgen/rpc_svcout.c:1.31 Sat Nov 7 20:59:31 2015 +++ src/usr.bin/rpcgen/rpc_svcout.c Tue Jun 18 17:31:35 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: rpc_svcout.c,v 1.31 2015/11/08 01:59:31 christos Exp $ */ +/* $NetBSD: rpc_svcout.c,v 1.32 2024/06/18 21:31:35 christos Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)rpc_svcout.c 1.29 89/03/30 (C) 1987 SMI"; #else -__RCSID("$NetBSD: rpc_svcout.c,v 1.31 2015/11/08 01:59:31 christos Exp $"); +__RCSID("$NetBSD: rpc_svcout.c,v 1.32 2024/06/18 21:31:35 christos Exp $"); #endif #endif @@ -353,7 +353,18 @@ write_program(definition *def, const cha pvname(def->def_name, vp->vers_num); f_print(fout, "(struct svc_req *%s, ", RQSTP); f_print(fout, "SVCXPRT *%s);\n", TRANSP); + + if (Mflag) { + if (storage != NULL) { +f_print(fout, "%s ", storage); + } + f_print(fout, "int "); + pvname(def->def_name, vp->vers_num); + f_print(fout, "_freeresult" + "(SVCXPRT *, xdrproc_t, caddr_t);\n"); + } f_print(fout, "\n"); + if (storage != NULL) { f_print(fout, "%s ", storage); }
CVS commit: src/usr.bin/rpcgen
Module Name:src Committed By: christos Date: Tue Jun 18 21:31:35 UTC 2024 Modified Files: src/usr.bin/rpcgen: rpc_svcout.c Log Message: Add prototype for the foo_freeresult() functions used in the thread-safe versions of the code (Anthony Mallet) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.bin/rpcgen/rpc_svcout.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: christos Date: Tue Jun 18 19:41:08 UTC 2024 Modified Files: src/doc: 3RDPARTY Log Message: mention the expsym files To generate a diff of this commit: cvs rdiff -u -r1.2013 -r1.2014 src/doc/3RDPARTY Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/3RDPARTY diff -u src/doc/3RDPARTY:1.2013 src/doc/3RDPARTY:1.2014 --- src/doc/3RDPARTY:1.2013 Tue Jun 18 13:29:15 2024 +++ src/doc/3RDPARTY Tue Jun 18 15:41:08 2024 @@ -1,4 +1,4 @@ -# $NetBSD: 3RDPARTY,v 1.2013 2024/06/18 17:29:15 christos Exp $ +# $NetBSD: 3RDPARTY,v 1.2014 2024/06/18 19:41:08 christos Exp $ # # This file contains a list of the software that has been integrated into # NetBSD where we are not the primary maintainer. @@ -1143,8 +1143,8 @@ Notes: - configure and build after importing in the import directory - check the generated files against the ones in the include directory and merge changes -- copy the toplevel libFOO.ld files to our foo.map linker files (the legacy.ld - is in providers/) +- copy the toplevel libFOO.ld files to our FOO.map linker files (the legacy.ld + is in providers/), and sync the FOO.expsym files if there were changes - run make in /usr/src/crypto/external/bsd/openssl/lib/libcrypto/man to regen man pages. - run make in /usr/src/crypto/external/bsd/openssl/lib/libcrypto/arch/*
CVS commit: src/doc
Module Name:src Committed By: christos Date: Tue Jun 18 19:41:08 UTC 2024 Modified Files: src/doc: 3RDPARTY Log Message: mention the expsym files To generate a diff of this commit: cvs rdiff -u -r1.2013 -r1.2014 src/doc/3RDPARTY Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/crypto/external/bsd/openssl/lib/libcrypto
Module Name:src Committed By: christos Date: Tue Jun 18 17:31:17 UTC 2024 Modified Files: src/crypto/external/bsd/openssl/lib/libcrypto: crypto.map Log Message: sync with latest To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 \ src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/crypto/external/bsd/openssl/lib/libcrypto
Module Name:src Committed By: christos Date: Tue Jun 18 17:31:17 UTC 2024 Modified Files: src/crypto/external/bsd/openssl/lib/libcrypto: crypto.map Log Message: sync with latest To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 \ src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map diff -u src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map:1.12 src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map:1.13 --- src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map:1.12 Sat May 6 13:07:22 2023 +++ src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map Tue Jun 18 13:31:17 2024 @@ -5382,5 +5382,9 @@ OPENSSL_3.0.3 { OPENSSL_3.0.8 { global: OSSL_CMP_CTX_reset_geninfo_ITAVs; -local: *; } OPENSSL_3.0.3; +OPENSSL_3.0.9 { +global: +OSSL_CMP_MSG_update_recipNonce; +local: *; +} OPENSSL_3.0.8;
CVS commit: src/doc
Module Name:src Committed By: christos Date: Tue Jun 18 17:29:15 UTC 2024 Modified Files: src/doc: 3RDPARTY Log Message: More OpenSSL import notes To generate a diff of this commit: cvs rdiff -u -r1.2012 -r1.2013 src/doc/3RDPARTY Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/3RDPARTY diff -u src/doc/3RDPARTY:1.2012 src/doc/3RDPARTY:1.2013 --- src/doc/3RDPARTY:1.2012 Tue Jun 11 22:26:13 2024 +++ src/doc/3RDPARTY Tue Jun 18 13:29:15 2024 @@ -1,4 +1,4 @@ -# $NetBSD: 3RDPARTY,v 1.2012 2024/06/12 02:26:13 gutteridge Exp $ +# $NetBSD: 3RDPARTY,v 1.2013 2024/06/18 17:29:15 christos Exp $ # # This file contains a list of the software that has been integrated into # NetBSD where we are not the primary maintainer. @@ -1139,10 +1139,18 @@ Notes: - Next update to be in crypto/openssl/apache2/openssl/dist, since OpenSSL 3.0 was relicensed as Apache2 - Run openssl2netbsd to get rid of the RCSID identifiers +- import +- configure and build after importing in the import directory +- check the generated files against the ones in the include directory + and merge changes +- copy the toplevel libFOO.ld files to our foo.map linker files (the legacy.ld + is in providers/) - run make in /usr/src/crypto/external/bsd/openssl/lib/libcrypto/man to regen man pages. - run make in /usr/src/crypto/external/bsd/openssl/lib/libcrypto/arch/* to regen assembly files +- run openssl speed -evp aes-256-cbc and compare the results with the + autoconf build Package: pcc Version: 1.1.0.DEVEL 20160208
CVS commit: src/doc
Module Name:src Committed By: christos Date: Tue Jun 18 17:29:15 UTC 2024 Modified Files: src/doc: 3RDPARTY Log Message: More OpenSSL import notes To generate a diff of this commit: cvs rdiff -u -r1.2012 -r1.2013 src/doc/3RDPARTY Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/crypto/aes/arch/x86
Module Name:src Committed By: christos Date: Sun Jun 16 16:11:17 UTC 2024 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: revert previous, probably a gcc bug? To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/crypto/aes/arch/x86/aes_via.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/crypto/aes/arch/x86/aes_via.c diff -u src/sys/crypto/aes/arch/x86/aes_via.c:1.7 src/sys/crypto/aes/arch/x86/aes_via.c:1.8 --- src/sys/crypto/aes/arch/x86/aes_via.c:1.7 Sun Jun 16 09:03:48 2024 +++ src/sys/crypto/aes/arch/x86/aes_via.c Sun Jun 16 12:11:17 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: aes_via.c,v 1.7 2024/06/16 13:03:48 christos Exp $ */ +/* $NetBSD: aes_via.c,v 1.8 2024/06/16 16:11:17 christos Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: aes_via.c,v 1.7 2024/06/16 13:03:48 christos Exp $"); +__KERNEL_RCSID(1, "$NetBSD: aes_via.c,v 1.8 2024/06/16 16:11:17 christos Exp $"); #ifdef _KERNEL #include @@ -428,8 +428,7 @@ aesvia_cbc_dec(const struct aesdec *dec, break; memcpy(cv, in + nbytes - 16, 16); xor128(tmp, tmp, cv); - // XXX: is this right? (subtracting 16) - memcpy(out + nbytes - 16, tmp, 16); + memcpy(out + nbytes, tmp, 16); } xor128(tmp, tmp, iv0);
CVS commit: src/sys/crypto/aes/arch/x86
Module Name:src Committed By: christos Date: Sun Jun 16 16:11:17 UTC 2024 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: revert previous, probably a gcc bug? To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/crypto/aes/arch/x86/aes_via.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/crypto/aes/arch/x86
Module Name:src Committed By: christos Date: Sun Jun 16 13:03:48 UTC 2024 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: try to fix the overflow gcc pointed out. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/crypto/aes/arch/x86/aes_via.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/crypto/aes/arch/x86/aes_via.c diff -u src/sys/crypto/aes/arch/x86/aes_via.c:1.6 src/sys/crypto/aes/arch/x86/aes_via.c:1.7 --- src/sys/crypto/aes/arch/x86/aes_via.c:1.6 Tue Jul 28 10:01:35 2020 +++ src/sys/crypto/aes/arch/x86/aes_via.c Sun Jun 16 09:03:48 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: aes_via.c,v 1.6 2020/07/28 14:01:35 riastradh Exp $ */ +/* $NetBSD: aes_via.c,v 1.7 2024/06/16 13:03:48 christos Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: aes_via.c,v 1.6 2020/07/28 14:01:35 riastradh Exp $"); +__KERNEL_RCSID(1, "$NetBSD: aes_via.c,v 1.7 2024/06/16 13:03:48 christos Exp $"); #ifdef _KERNEL #include @@ -428,7 +428,8 @@ aesvia_cbc_dec(const struct aesdec *dec, break; memcpy(cv, in + nbytes - 16, 16); xor128(tmp, tmp, cv); - memcpy(out + nbytes, tmp, 16); + // XXX: is this right? (subtracting 16) + memcpy(out + nbytes - 16, tmp, 16); } xor128(tmp, tmp, iv0);
CVS commit: src/sys/crypto/aes/arch/x86
Module Name:src Committed By: christos Date: Sun Jun 16 13:03:48 UTC 2024 Modified Files: src/sys/crypto/aes/arch/x86: aes_via.c Log Message: try to fix the overflow gcc pointed out. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/crypto/aes/arch/x86/aes_via.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/libarchive/dist/libarchive/test
Module Name:src Committed By: christos Date: Thu Jun 13 23:24:25 UTC 2024 Modified Files: src/external/bsd/libarchive/dist/libarchive/test: test_read_disk_directory_traversals.c Log Message: PR/58342: Martin Husemann: NetBSD does not really support O_SEARCH To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.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/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c diff -u src/external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c:1.3 src/external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c:1.4 --- src/external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c:1.3 Sun Jun 9 15:47:56 2024 +++ src/external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c Thu Jun 13 19:24:25 2024 @@ -1607,8 +1607,9 @@ test_parent(void) int file_count; int match_count; int r; -#if defined(O_PATH) || defined(O_SEARCH) || \ +#if defined(O_PATH) || (defined(O_SEARCH) && !defined(__NetBSD__)) || \ (defined(__FreeBSD__) && defined(O_EXEC)) +#define IGNORE_TRAVERSALS_TEST4 const char *ignore_traversals_test4; ignore_traversals_test4 = getenv("IGNORE_TRAVERSALS_TEST4"); @@ -1787,8 +1788,7 @@ test_parent(void) archive_entry_clear(ae); r = archive_read_next_header2(a, ae); if (r == ARCHIVE_FAILED) { -#if defined(O_PATH) || defined(O_SEARCH) || \ - (defined(__FreeBSD__) && defined(O_EXEC)) +#ifdef IGNORE_TRAVERSALS_TEST4 if (ignore_traversals_test4 == NULL) assertEqualIntA(a, ARCHIVE_OK, r); #endif
CVS commit: src/external/bsd/libarchive/dist/libarchive/test
Module Name:src Committed By: christos Date: Thu Jun 13 23:24:25 UTC 2024 Modified Files: src/external/bsd/libarchive/dist/libarchive/test: test_read_disk_directory_traversals.c Log Message: PR/58342: Martin Husemann: NetBSD does not really support O_SEARCH To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: christos Date: Tue Jun 11 15:14:00 UTC 2024 Modified Files: src/doc: 3RDPARTY CHANGES Log Message: update for OpenSSL (also remove mention of upstreaming of bug for libarchive) To generate a diff of this commit: cvs rdiff -u -r1.2009 -r1.2010 src/doc/3RDPARTY cvs rdiff -u -r1.3064 -r1.3065 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/3RDPARTY diff -u src/doc/3RDPARTY:1.2009 src/doc/3RDPARTY:1.2010 --- src/doc/3RDPARTY:1.2009 Tue Jun 11 06:47:11 2024 +++ src/doc/3RDPARTY Tue Jun 11 11:14:00 2024 @@ -1,4 +1,4 @@ -# $NetBSD: 3RDPARTY,v 1.2009 2024/06/11 10:47:11 wiz Exp $ +# $NetBSD: 3RDPARTY,v 1.2010 2024/06/11 15:14:00 christos Exp $ # # This file contains a list of the software that has been integrated into # NetBSD where we are not the primary maintainer. @@ -728,7 +728,6 @@ License: BSD (2-clause) Location: external/bsd/libarchive/dist Notes: Distribution is stripped down to the relevant part. -Local fix for PR bin/56080 sent back to upstream. Package: libdevmapper Version: 1.02.40 @@ -1123,19 +1122,19 @@ markus is very cooperative about it): - blocklistd additions Package: OpenSSL -Version: 1.0.2o/1.1.1t/3.0.12 -Current Vers: 1.0.2zd/1.1.1u/3.0.12/3.3.0 +Version: 1.0.2o/1.1.1t/3.0.14 +Current Vers: 1.0.2zd/1.1.1u/3.0.14/3.3.1 Maintainer: The OpenSSL Project Archive Site: ftp://ftp.openssl.org/source/ Home Page: http://www.openssl.org/ -Date: 2023-10-24 +Date: 2024-06-11 Mailing List: openssl-annou...@openssl.org Responsible: christos, mjf, tls, riastradh, spz License: OpenSSL and SSLeay license (both BSD-like) Location: crypto/external/bsd/openssl/dist Vendor tag: OPENSSL Release tag: openssl-x-y-z (openssl-x-y-zw in past with lettered releases) -Current tag: openssl-3-0-12 +Current tag: openssl-3-0-14 Notes: - Run openssl2netbsd to get rid of the RCSID identifiers - run make in /usr/src/crypto/external/bsd/openssl/lib/libcrypto/man Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.3064 src/doc/CHANGES:1.3065 --- src/doc/CHANGES:1.3064 Tue Jun 11 06:47:11 2024 +++ src/doc/CHANGES Tue Jun 11 11:14:00 2024 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3064 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3065 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -418,3 +418,4 @@ Changes from NetBSD 10.0 to NetBSD 11.0: pthread(3): Fix memory leak in pthread_create(). [hannken 20240608] libarchive: Import libarchive-3.7.4. [christos 20240609] pkg_install: Import pkg_install-20240307. [wiz 20240611] + OpenSSL: Imported 3.0.14. [christos 2020611]
CVS commit: src/doc
Module Name:src Committed By: christos Date: Tue Jun 11 15:14:00 UTC 2024 Modified Files: src/doc: 3RDPARTY CHANGES Log Message: update for OpenSSL (also remove mention of upstreaming of bug for libarchive) To generate a diff of this commit: cvs rdiff -u -r1.2009 -r1.2010 src/doc/3RDPARTY cvs rdiff -u -r1.3064 -r1.3065 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/crypto/external/bsd/openssl/dist
Module Name:src Committed By: christos Date: Tue Jun 11 14:47:52 UTC 2024 Modified Files: src/crypto/external/bsd/openssl/dist: Configure e_os.h src/crypto/external/bsd/openssl/dist/apps: ocsp.c req.c s_server.c speed.c src/crypto/external/bsd/openssl/dist/apps/lib: opt.c src/crypto/external/bsd/openssl/dist/crypto/bio: bio_lib.c src/crypto/external/bsd/openssl/dist/crypto/bn: bn_exp.c bn_lib.c bn_nist.c bn_rand.c src/crypto/external/bsd/openssl/dist/crypto/err: openssl.ec src/crypto/external/bsd/openssl/dist/crypto/evp: e_aes.c src/crypto/external/bsd/openssl/dist/crypto/rsa: rsa_lib.c src/crypto/external/bsd/openssl/dist/include/internal: refcount.h src/crypto/external/bsd/openssl/dist/include/openssl: bio.h.in src/crypto/external/bsd/openssl/dist/ssl: d1_lib.c s3_enc.c s3_lib.c ssl_ciph.c ssl_err.c ssl_lib.c ssl_sess.c t1_enc.c t1_lib.c src/crypto/external/bsd/openssl/dist/test: bntest.c dsatest.c ecdsatest.c evp_extra_test.c evp_test.c Removed Files: src/crypto/external/bsd/openssl/dist: FAQ.md Log Message: Merge conflicts between 3.0.12 and 3.0.14 To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/crypto/external/bsd/openssl/dist/Configure cvs rdiff -u -r1.1.1.1 -r0 src/crypto/external/bsd/openssl/dist/FAQ.md cvs rdiff -u -r1.18 -r1.19 src/crypto/external/bsd/openssl/dist/e_os.h cvs rdiff -u -r1.24 -r1.25 src/crypto/external/bsd/openssl/dist/apps/ocsp.c cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/openssl/dist/apps/req.c cvs rdiff -u -r1.29 -r1.30 \ src/crypto/external/bsd/openssl/dist/apps/s_server.c cvs rdiff -u -r1.23 -r1.24 src/crypto/external/bsd/openssl/dist/apps/speed.c cvs rdiff -u -r1.2 -r1.3 src/crypto/external/bsd/openssl/dist/apps/lib/opt.c cvs rdiff -u -r1.9 -r1.10 \ src/crypto/external/bsd/openssl/dist/crypto/bio/bio_lib.c cvs rdiff -u -r1.22 -r1.23 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c cvs rdiff -u -r1.17 -r1.18 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_lib.c cvs rdiff -u -r1.9 -r1.10 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_nist.c cvs rdiff -u -r1.6 -r1.7 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c cvs rdiff -u -r1.7 -r1.8 \ src/crypto/external/bsd/openssl/dist/crypto/err/openssl.ec cvs rdiff -u -r1.26 -r1.27 \ src/crypto/external/bsd/openssl/dist/crypto/evp/e_aes.c cvs rdiff -u -r1.9 -r1.10 \ src/crypto/external/bsd/openssl/dist/crypto/rsa/rsa_lib.c cvs rdiff -u -r1.7 -r1.8 \ src/crypto/external/bsd/openssl/dist/include/internal/refcount.h cvs rdiff -u -r1.2 -r1.3 \ src/crypto/external/bsd/openssl/dist/include/openssl/bio.h.in cvs rdiff -u -r1.13 -r1.14 src/crypto/external/bsd/openssl/dist/ssl/d1_lib.c \ src/crypto/external/bsd/openssl/dist/ssl/ssl_sess.c cvs rdiff -u -r1.18 -r1.19 src/crypto/external/bsd/openssl/dist/ssl/s3_enc.c cvs rdiff -u -r1.31 -r1.32 src/crypto/external/bsd/openssl/dist/ssl/s3_lib.c cvs rdiff -u -r1.24 -r1.25 \ src/crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c \ src/crypto/external/bsd/openssl/dist/ssl/ssl_lib.c cvs rdiff -u -r1.20 -r1.21 src/crypto/external/bsd/openssl/dist/ssl/ssl_err.c cvs rdiff -u -r1.23 -r1.24 src/crypto/external/bsd/openssl/dist/ssl/t1_enc.c cvs rdiff -u -r1.38 -r1.39 src/crypto/external/bsd/openssl/dist/ssl/t1_lib.c cvs rdiff -u -r1.11 -r1.12 src/crypto/external/bsd/openssl/dist/test/bntest.c \ src/crypto/external/bsd/openssl/dist/test/evp_test.c cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/openssl/dist/test/dsatest.c cvs rdiff -u -r1.8 -r1.9 \ src/crypto/external/bsd/openssl/dist/test/ecdsatest.c cvs rdiff -u -r1.14 -r1.15 \ src/crypto/external/bsd/openssl/dist/test/evp_extra_test.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/crypto/external/bsd/openssl/dist/Configure diff -u src/crypto/external/bsd/openssl/dist/Configure:1.34 src/crypto/external/bsd/openssl/dist/Configure:1.35 --- src/crypto/external/bsd/openssl/dist/Configure:1.34 Wed Oct 25 13:17:49 2023 +++ src/crypto/external/bsd/openssl/dist/Configure Tue Jun 11 10:47:51 2024 @@ -1,6 +1,6 @@ #! /usr/bin/env perl # -*- mode: perl; -*- -# Copyright 2016-2023 The OpenSSL Project Authors. All Rights Reserved. +# Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved. # # Licensed under the Apache License 2.0 (the "License"). You may not use # this file except in compliance with the License. You can obtain a copy @@ -405,6 +405,7 @@ my @disablables = ( "asan", "asm", "async", +"atexit", "autoalginit", "autoerrinit", "autoload-config", @@ -933,8 +934,6 @@ while (@argvcopy) if (/^--prefix=(.*)$/) { $config{prefix}=$1; -die "Directory
CVS commit: src/crypto/external/bsd/openssl/dist
Module Name:src Committed By: christos Date: Tue Jun 11 14:47:52 UTC 2024 Modified Files: src/crypto/external/bsd/openssl/dist: Configure e_os.h src/crypto/external/bsd/openssl/dist/apps: ocsp.c req.c s_server.c speed.c src/crypto/external/bsd/openssl/dist/apps/lib: opt.c src/crypto/external/bsd/openssl/dist/crypto/bio: bio_lib.c src/crypto/external/bsd/openssl/dist/crypto/bn: bn_exp.c bn_lib.c bn_nist.c bn_rand.c src/crypto/external/bsd/openssl/dist/crypto/err: openssl.ec src/crypto/external/bsd/openssl/dist/crypto/evp: e_aes.c src/crypto/external/bsd/openssl/dist/crypto/rsa: rsa_lib.c src/crypto/external/bsd/openssl/dist/include/internal: refcount.h src/crypto/external/bsd/openssl/dist/include/openssl: bio.h.in src/crypto/external/bsd/openssl/dist/ssl: d1_lib.c s3_enc.c s3_lib.c ssl_ciph.c ssl_err.c ssl_lib.c ssl_sess.c t1_enc.c t1_lib.c src/crypto/external/bsd/openssl/dist/test: bntest.c dsatest.c ecdsatest.c evp_extra_test.c evp_test.c Removed Files: src/crypto/external/bsd/openssl/dist: FAQ.md Log Message: Merge conflicts between 3.0.12 and 3.0.14 To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/crypto/external/bsd/openssl/dist/Configure cvs rdiff -u -r1.1.1.1 -r0 src/crypto/external/bsd/openssl/dist/FAQ.md cvs rdiff -u -r1.18 -r1.19 src/crypto/external/bsd/openssl/dist/e_os.h cvs rdiff -u -r1.24 -r1.25 src/crypto/external/bsd/openssl/dist/apps/ocsp.c cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/openssl/dist/apps/req.c cvs rdiff -u -r1.29 -r1.30 \ src/crypto/external/bsd/openssl/dist/apps/s_server.c cvs rdiff -u -r1.23 -r1.24 src/crypto/external/bsd/openssl/dist/apps/speed.c cvs rdiff -u -r1.2 -r1.3 src/crypto/external/bsd/openssl/dist/apps/lib/opt.c cvs rdiff -u -r1.9 -r1.10 \ src/crypto/external/bsd/openssl/dist/crypto/bio/bio_lib.c cvs rdiff -u -r1.22 -r1.23 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c cvs rdiff -u -r1.17 -r1.18 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_lib.c cvs rdiff -u -r1.9 -r1.10 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_nist.c cvs rdiff -u -r1.6 -r1.7 \ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c cvs rdiff -u -r1.7 -r1.8 \ src/crypto/external/bsd/openssl/dist/crypto/err/openssl.ec cvs rdiff -u -r1.26 -r1.27 \ src/crypto/external/bsd/openssl/dist/crypto/evp/e_aes.c cvs rdiff -u -r1.9 -r1.10 \ src/crypto/external/bsd/openssl/dist/crypto/rsa/rsa_lib.c cvs rdiff -u -r1.7 -r1.8 \ src/crypto/external/bsd/openssl/dist/include/internal/refcount.h cvs rdiff -u -r1.2 -r1.3 \ src/crypto/external/bsd/openssl/dist/include/openssl/bio.h.in cvs rdiff -u -r1.13 -r1.14 src/crypto/external/bsd/openssl/dist/ssl/d1_lib.c \ src/crypto/external/bsd/openssl/dist/ssl/ssl_sess.c cvs rdiff -u -r1.18 -r1.19 src/crypto/external/bsd/openssl/dist/ssl/s3_enc.c cvs rdiff -u -r1.31 -r1.32 src/crypto/external/bsd/openssl/dist/ssl/s3_lib.c cvs rdiff -u -r1.24 -r1.25 \ src/crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c \ src/crypto/external/bsd/openssl/dist/ssl/ssl_lib.c cvs rdiff -u -r1.20 -r1.21 src/crypto/external/bsd/openssl/dist/ssl/ssl_err.c cvs rdiff -u -r1.23 -r1.24 src/crypto/external/bsd/openssl/dist/ssl/t1_enc.c cvs rdiff -u -r1.38 -r1.39 src/crypto/external/bsd/openssl/dist/ssl/t1_lib.c cvs rdiff -u -r1.11 -r1.12 src/crypto/external/bsd/openssl/dist/test/bntest.c \ src/crypto/external/bsd/openssl/dist/test/evp_test.c cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/openssl/dist/test/dsatest.c cvs rdiff -u -r1.8 -r1.9 \ src/crypto/external/bsd/openssl/dist/test/ecdsatest.c cvs rdiff -u -r1.14 -r1.15 \ src/crypto/external/bsd/openssl/dist/test/evp_extra_test.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: christos Date: Mon Jun 10 00:35:38 UTC 2024 Modified Files: src/tests/lib/libarchive: Makefile Log Message: make it build (should add more tests) To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libarchive/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libarchive/Makefile diff -u src/tests/lib/libarchive/Makefile:1.7 src/tests/lib/libarchive/Makefile:1.8 --- src/tests/lib/libarchive/Makefile:1.7 Sun Jun 9 18:12:46 2024 +++ src/tests/lib/libarchive/Makefile Sun Jun 9 20:35:38 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2024/06/09 22:12:46 kre Exp $ +# $NetBSD: Makefile,v 1.8 2024/06/10 00:35:38 christos Exp $ NOMAN= @@ -608,4 +608,5 @@ list.h: ${SRCS.h_libarchive} Makefile ${TOOL_GREP} -v test_compat_pax_libarchive_2x > ${.TARGET} COPTS.test_archive_string_conversion.c+= ${CC_WNO_STRINGOP_TRUNCATION} +COPTS.test_main.c+= ${CC_WNO_STRINGOP_OVERFLOW}
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: christos Date: Mon Jun 10 00:35:38 UTC 2024 Modified Files: src/tests/lib/libarchive: Makefile Log Message: make it build (should add more tests) To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libarchive/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: christos Date: Sun Jun 9 19:59:36 UTC 2024 Modified Files: src/doc: CHANGES Log Message: new libarchive To generate a diff of this commit: cvs rdiff -u -r1.3062 -r1.3063 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.3062 src/doc/CHANGES:1.3063 --- src/doc/CHANGES:1.3062 Sun Jun 9 14:46:51 2024 +++ src/doc/CHANGES Sun Jun 9 15:59:36 2024 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3062 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3063 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -416,3 +416,4 @@ Changes from NetBSD 10.0 to NetBSD 11.0: ISO9660/HFS hybrid ISO images for mac68k and macppc. [tsutsui 20240531] pthread(3): Fix memory leak in pthread_create(). [hannken 20240608] + libarchive: Import libarchive-3.7.4. [christos 20240609]
CVS commit: src/doc
Module Name:src Committed By: christos Date: Sun Jun 9 19:59:36 UTC 2024 Modified Files: src/doc: CHANGES Log Message: new libarchive To generate a diff of this commit: cvs rdiff -u -r1.3062 -r1.3063 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Sun Jun 9 19:56:19 UTC 2024 Modified Files: src/distrib/sets/lists/base: shl.mi src/distrib/sets/lists/base32: ad.aarch64 ad.mips64eb ad.mips64el ad.mipsn64eb ad.mipsn64el ad.powerpc64 ad.riscv64 md.amd64 md.sparc64 src/distrib/sets/lists/base64: ad.mips64eb ad.mips64el src/distrib/sets/lists/debug: shl.mi src/distrib/sets/lists/debug32: ad.aarch64 ad.mips64eb ad.mips64el ad.mipsn64eb ad.mipsn64el ad.powerpc64 ad.riscv64 md.amd64 md.sparc64 src/distrib/sets/lists/debug64: ad.mips64eb ad.mips64el Log Message: bump libarchive. To generate a diff of this commit: cvs rdiff -u -r1.979 -r1.980 src/distrib/sets/lists/base/shl.mi cvs rdiff -u -r1.6 -r1.7 src/distrib/sets/lists/base32/ad.aarch64 \ src/distrib/sets/lists/base32/ad.mipsn64eb \ src/distrib/sets/lists/base32/ad.mipsn64el \ src/distrib/sets/lists/base32/ad.riscv64 \ src/distrib/sets/lists/base32/md.sparc64 cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/base32/ad.mips64eb cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/base32/ad.mips64el \ src/distrib/sets/lists/base32/ad.powerpc64 cvs rdiff -u -r1.8 -r1.9 src/distrib/sets/lists/base32/md.amd64 cvs rdiff -u -r1.2 -r1.3 src/distrib/sets/lists/base64/ad.mips64eb \ src/distrib/sets/lists/base64/ad.mips64el cvs rdiff -u -r1.340 -r1.341 src/distrib/sets/lists/debug/shl.mi cvs rdiff -u -r1.8 -r1.9 src/distrib/sets/lists/debug32/ad.aarch64 \ src/distrib/sets/lists/debug32/ad.mips64eb \ src/distrib/sets/lists/debug32/ad.mips64el \ src/distrib/sets/lists/debug32/ad.mipsn64eb \ src/distrib/sets/lists/debug32/ad.mipsn64el \ src/distrib/sets/lists/debug32/ad.riscv64 \ src/distrib/sets/lists/debug32/md.sparc64 cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/debug32/ad.powerpc64 cvs rdiff -u -r1.12 -r1.13 src/distrib/sets/lists/debug32/md.amd64 cvs rdiff -u -r1.2 -r1.3 src/distrib/sets/lists/debug64/ad.mips64eb \ src/distrib/sets/lists/debug64/ad.mips64el 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/base/shl.mi diff -u src/distrib/sets/lists/base/shl.mi:1.979 src/distrib/sets/lists/base/shl.mi:1.980 --- src/distrib/sets/lists/base/shl.mi:1.979 Tue Apr 9 11:17:22 2024 +++ src/distrib/sets/lists/base/shl.mi Sun Jun 9 15:56:18 2024 @@ -1,4 +1,4 @@ -# $NetBSD: shl.mi,v 1.979 2024/04/09 15:17:22 nia Exp $ +# $NetBSD: shl.mi,v 1.980 2024/06/09 19:56:18 christos Exp $ # # Note: Don't delete entries from here - mark them as "obsolete" instead, # unless otherwise stated below. @@ -207,7 +207,7 @@ ./usr/lib/libamu.so.5.0base-amd-shlib ./usr/lib/libarchive.sobase-sys-shlib ./usr/lib/libarchive.so.5 base-sys-shlib -./usr/lib/libarchive.so.5.0 base-sys-shlib +./usr/lib/libarchive..so.5.1 base-sys-shlib ./usr/lib/libasan.sobase-sys-shlib cxx,gcc ./usr/lib/libasan.so.5base-sys-shlib cxx,gcc=10 ./usr/lib/libasan.so.5.0 base-sys-shlib cxx,gcc=10 Index: src/distrib/sets/lists/base32/ad.aarch64 diff -u src/distrib/sets/lists/base32/ad.aarch64:1.6 src/distrib/sets/lists/base32/ad.aarch64:1.7 --- src/distrib/sets/lists/base32/ad.aarch64:1.6 Wed Jun 5 10:16:31 2024 +++ src/distrib/sets/lists/base32/ad.aarch64 Sun Jun 9 15:56:18 2024 @@ -1,4 +1,4 @@ -# $NetBSD: ad.aarch64,v 1.6 2024/06/05 14:16:31 riastradh Exp $ +# $NetBSD: ad.aarch64,v 1.7 2024/06/09 19:56:18 christos Exp $ ./lib/eabi base-compat-shlib compat ./lib/eabi/npf base-compat-shlib compat,npf ./lib/eabi/npf/ext_log.so base-compat-shlib compat,npf @@ -98,7 +98,7 @@ ./usr/lib/eabi/libamu.so.5.0 base-compat-shlib compat ./usr/lib/eabi/libarchive.so base-compat-shlib compat ./usr/lib/eabi/libarchive.so.5 base-compat-shlib compat -./usr/lib/eabi/libarchive.so.5.0 base-compat-shlib compat +./usr/lib/eabi/libarchive..so.5.1 base-compat-shlib compat ./usr/lib/eabi/libarm.so base-compat-shlib compat,pic ./usr/lib/eabi/libarm.so.0 base-compat-shlib compat,pic ./usr/lib/eabi/libarm.so.0.0 base-compat-shlib compat,pic @@ -612,7 +612,7 @@ ./usr/lib/eabihf/libamu.so.5.0 base-compat-shlib compat ./usr/lib/eabihf/libarchive.so base-compat-shlib compat ./usr/lib/eabihf/libarchive.so.5 base-compat-shlib compat -./usr/lib/eabihf/libarchive.so.5.0 base-compat-shlib compat +./usr/lib/eabihf/libarchive..so.5.1 base-compat-shlib compat ./usr/lib/eabihf/libarm.so base-compat-shlib compat,pic ./usr/lib/eabihf/libarm.so.0 base-compat-shlib compat,pic ./usr/lib/eabihf/libarm.so.0.0 base-compat-shlib compat,pic Index: src/distrib/sets/lists/base32/ad.mipsn64eb diff -u src/distrib/sets/lists/base32/ad.mipsn64eb:1.6 src/distrib/sets/lists/base32/ad.mipsn64eb:1.7 --- src/distrib/sets/lists/base32/ad.mipsn64eb:1.6 Mon May 6 04:38:51 2024 +++ src/distrib/sets/lists/base32/ad.mipsn64eb Sun Jun
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Sun Jun 9 19:56:19 UTC 2024 Modified Files: src/distrib/sets/lists/base: shl.mi src/distrib/sets/lists/base32: ad.aarch64 ad.mips64eb ad.mips64el ad.mipsn64eb ad.mipsn64el ad.powerpc64 ad.riscv64 md.amd64 md.sparc64 src/distrib/sets/lists/base64: ad.mips64eb ad.mips64el src/distrib/sets/lists/debug: shl.mi src/distrib/sets/lists/debug32: ad.aarch64 ad.mips64eb ad.mips64el ad.mipsn64eb ad.mipsn64el ad.powerpc64 ad.riscv64 md.amd64 md.sparc64 src/distrib/sets/lists/debug64: ad.mips64eb ad.mips64el Log Message: bump libarchive. To generate a diff of this commit: cvs rdiff -u -r1.979 -r1.980 src/distrib/sets/lists/base/shl.mi cvs rdiff -u -r1.6 -r1.7 src/distrib/sets/lists/base32/ad.aarch64 \ src/distrib/sets/lists/base32/ad.mipsn64eb \ src/distrib/sets/lists/base32/ad.mipsn64el \ src/distrib/sets/lists/base32/ad.riscv64 \ src/distrib/sets/lists/base32/md.sparc64 cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/base32/ad.mips64eb cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/base32/ad.mips64el \ src/distrib/sets/lists/base32/ad.powerpc64 cvs rdiff -u -r1.8 -r1.9 src/distrib/sets/lists/base32/md.amd64 cvs rdiff -u -r1.2 -r1.3 src/distrib/sets/lists/base64/ad.mips64eb \ src/distrib/sets/lists/base64/ad.mips64el cvs rdiff -u -r1.340 -r1.341 src/distrib/sets/lists/debug/shl.mi cvs rdiff -u -r1.8 -r1.9 src/distrib/sets/lists/debug32/ad.aarch64 \ src/distrib/sets/lists/debug32/ad.mips64eb \ src/distrib/sets/lists/debug32/ad.mips64el \ src/distrib/sets/lists/debug32/ad.mipsn64eb \ src/distrib/sets/lists/debug32/ad.mipsn64el \ src/distrib/sets/lists/debug32/ad.riscv64 \ src/distrib/sets/lists/debug32/md.sparc64 cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/debug32/ad.powerpc64 cvs rdiff -u -r1.12 -r1.13 src/distrib/sets/lists/debug32/md.amd64 cvs rdiff -u -r1.2 -r1.3 src/distrib/sets/lists/debug64/ad.mips64eb \ src/distrib/sets/lists/debug64/ad.mips64el Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/libarchive
Module Name:src Committed By: christos Date: Sun Jun 9 19:47:56 UTC 2024 Modified Files: src/external/bsd/libarchive: prepare-import.sh src/external/bsd/libarchive/dist/cpio/test: test_basic.c test_format_newc.c src/external/bsd/libarchive/dist/libarchive: archive.h archive_check_magic.c archive_entry.3 archive_openssl_evp_private.h archive_openssl_hmac_private.h archive_pack_dev.c archive_pack_dev.h archive_private.h archive_read.3 archive_read.c archive_read_disk.3 archive_read_disk_entry_from_file.c archive_read_disk_posix.c archive_read_open_filename.c archive_read_support_format_iso9660.c archive_read_support_format_mtree.c archive_read_support_format_warc.c archive_read_support_format_xar.c archive_util.3 archive_util.c archive_write.3 archive_write_disk.3 archive_write_disk_posix.c archive_write_set_format_ar.c archive_write_set_format_shar.c archive_write_set_format_ustar.c libarchive-formats.5 libarchive.3 libarchive_internals.3 tar.5 src/external/bsd/libarchive/dist/libarchive/test: test_acl_platform_nfs4.c test_acl_platform_posix1e.c test_archive_write_set_format_filter_by_ext.c test_compat_zip.c test_fuzz.c test_read_disk_directory_traversals.c test_read_extract.c test_read_format_7zip.c test_read_format_gtar_sparse.c test_read_format_zip.c test_read_format_zip_7075_utf8_paths.c test_read_format_zip_comment_stored.c test_read_format_zip_high_compression.c test_read_format_zip_jar.c test_read_format_zip_mac_metadata.c test_read_format_zip_malformed.c test_read_format_zip_nested.c test_read_format_zip_nofiletype.c test_read_format_zip_padded.c test_read_format_zip_sfx.c test_read_format_zip_with_invalid_traditional_eocd.c test_read_format_zip_zip64.c test_read_pax_truncated.c test_read_truncated_filter.c test_sparse_basic.c test_write_disk.c test_write_disk_secure.c test_write_disk_secure744.c test_write_disk_secure746.c test_write_format_cpio_empty.c test_write_format_shar_empty.c test_write_format_tar.c test_write_format_tar_sparse.c test_write_format_zip_file.c test_write_format_zip_file_zip64.c src/external/bsd/libarchive/dist/libarchive_fe: err.c err.h src/external/bsd/libarchive/dist/tar: bsdtar.c write.c src/external/bsd/libarchive/dist/tar/test: test_basic.c test_copy.c test_option_C_upper.c test_option_U_upper.c test_option_s.c test_symlink_dir.c src/external/bsd/libarchive/dist/test_utils: test_common.h test_main.c test_utils.c test_utils.h src/external/bsd/libarchive/include: config_netbsd.h src/external/bsd/libarchive/lib/libarchive: Makefile shlib_version Removed Files: src/external/bsd/libarchive/dist: CONTRIBUTING.md src/external/bsd/libarchive/dist/libarchive/test: test_compat_pax_libarchive_2x.c test_compat_pax_libarchive_2x.tar.Z.uu test_read_pax_schily_xattr.c test_read_pax_schily_xattr.tar.uu Log Message: Merge conflicts from 3.4.0 to 3.7.4 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/bsd/libarchive/prepare-import.sh cvs rdiff -u -r1.1.1.1 -r0 src/external/bsd/libarchive/dist/CONTRIBUTING.md cvs rdiff -u -r1.2 -r1.3 \ src/external/bsd/libarchive/dist/cpio/test/test_basic.c cvs rdiff -u -r1.3 -r1.4 \ src/external/bsd/libarchive/dist/cpio/test/test_format_newc.c cvs rdiff -u -r1.5 -r1.6 \ src/external/bsd/libarchive/dist/libarchive/archive.h \ src/external/bsd/libarchive/dist/libarchive/archive_entry.3 \ src/external/bsd/libarchive/dist/libarchive/archive_read_disk.3 \ src/external/bsd/libarchive/dist/libarchive/archive_write_disk.3 cvs rdiff -u -r1.3 -r1.4 \ src/external/bsd/libarchive/dist/libarchive/archive_check_magic.c \ src/external/bsd/libarchive/dist/libarchive/archive_openssl_evp_private.h \ src/external/bsd/libarchive/dist/libarchive/archive_pack_dev.c \ src/external/bsd/libarchive/dist/libarchive/archive_pack_dev.h \ src/external/bsd/libarchive/dist/libarchive/archive_read_disk_posix.c \ src/external/bsd/libarchive/dist/libarchive/archive_util.3 \ src/external/bsd/libarchive/dist/libarchive/libarchive-formats.5 \ src/external/bsd/libarchive/dist/libarchive/libarchive.3 \ src/external/bsd/libarchive/dist/libarchive/libarchive_internals.3 \ src/external/bsd/libarchive/dist/libarchive/tar.5 cvs rdiff -u -r1.4 -r1.5 \ src/external/bsd/libarchive/dist/libarchive/archive_openssl_hmac_private.h \ src/external/bsd/libarchive/dist/libarchive/archive_read_support_format_iso9660.c \
CVS import: src/external/bsd/libarchive/dist
Module Name:src Committed By: christos Date: Sun Jun 9 19:36:11 UTC 2024 Update of /cvsroot/src/external/bsd/libarchive/dist In directory ivanova.netbsd.org:/tmp/cvs-serv11632 Log Message: Import libarchive-3.7.4 previous was 3.4.0 Changes: Apr 26, 2024: libarchive 3.7.4 released Apr 08, 2024: libarchive 3.7.3 released Sep 12, 2023: libarchive 3.7.2 released Jul 29, 2023: libarchive 3.7.1 released Jul 18, 2023: libarchive 3.7.0 released Jul 14, 2023: bsdunzip port from FreeBSD Dec 07, 2022: libarchive 3.6.2 released Apr 08, 2022: libarchive 3.6.1 released Feb 09, 2022: libarchive 3.6.0 released Feb 08, 2022: libarchive 3.5.3 released Aug 22, 2021: libarchive 3.5.2 released Dec 26, 2020: libarchive 3.5.1 released Dec 01, 2020: libarchive 3.5.0 released Oct 14, 2020: Support for system extended attributes May 20, 2020: libarchive 3.4.3 released Apr 30, 2020: Support for pzstd compressed files Apr 16, 2020: Support for RHT.security.selinux tar extended attribute Feb 11, 2020: libarchive 3.4.2 released Jan 23, 2020: Important fixes for writing XAR archives Jan 20, 2020: New tar option: --safe-writes (atomical file extraction) Jan 03, 2020: Support mbed TLS (PolarSSL) as optional crypto provider Dec 30, 2019: libarchive 3.4.1 released Dec 11, 2019: New pax write option "xattrhdr" Nov 17, 2019: Unicode filename support for reading lha/lzh archives Status: Vendor Tag: KIENTZLE Release Tags: libarchive-3-7-4 U src/external/bsd/libarchive/dist/README.md U src/external/bsd/libarchive/dist/COPYING U src/external/bsd/libarchive/dist/NEWS U src/external/bsd/libarchive/dist/tar/creation_set.c U src/external/bsd/libarchive/dist/tar/bsdtar.1 C src/external/bsd/libarchive/dist/tar/bsdtar.c U src/external/bsd/libarchive/dist/tar/subst.c U src/external/bsd/libarchive/dist/tar/read.c C src/external/bsd/libarchive/dist/tar/write.c U src/external/bsd/libarchive/dist/tar/util.c U src/external/bsd/libarchive/dist/tar/cmdline.c U src/external/bsd/libarchive/dist/tar/bsdtar_platform.h U src/external/bsd/libarchive/dist/tar/bsdtar_windows.h U src/external/bsd/libarchive/dist/tar/bsdtar_windows.c U src/external/bsd/libarchive/dist/tar/bsdtar.h U src/external/bsd/libarchive/dist/tar/test/test_option_n.c U src/external/bsd/libarchive/dist/tar/test/test_missing_file.c U src/external/bsd/libarchive/dist/tar/test/test_option_keep_newer_files.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lrz.c U src/external/bsd/libarchive/dist/tar/test/test_leading_slash.tar.uu U src/external/bsd/libarchive/dist/tar/test/test_option_lz4.c U src/external/bsd/libarchive/dist/tar/test/test_version.c U src/external/bsd/libarchive/dist/tar/test/test_option_passphrase.zip.uu U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.gz.uu U src/external/bsd/libarchive/dist/tar/test/test_option_r.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_xz.c U src/external/bsd/libarchive/dist/tar/test/test_option_k.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lzma.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lz4.c U src/external/bsd/libarchive/dist/tar/test/test_option_O_upper.c U src/external/bsd/libarchive/dist/tar/test/test_option_q.c U src/external/bsd/libarchive/dist/tar/test/test.h U src/external/bsd/libarchive/dist/tar/test/test_option_passphrase.c U src/external/bsd/libarchive/dist/tar/test/test_option_s.tar.Z.uu U src/external/bsd/libarchive/dist/tar/test/test_patterns.c U src/external/bsd/libarchive/dist/tar/test/test_format_newc.c U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.lrz.uu U src/external/bsd/libarchive/dist/tar/test/test_option_xattrs.c U src/external/bsd/libarchive/dist/tar/test/test_leading_slash.c U src/external/bsd/libarchive/dist/tar/test/test_option_H_upper.c U src/external/bsd/libarchive/dist/tar/test/test_option_fflags.c C src/external/bsd/libarchive/dist/tar/test/test_basic.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lzo.c U src/external/bsd/libarchive/dist/tar/test/test_strip_components.c U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.grz.uu U src/external/bsd/libarchive/dist/tar/test/test_stdio.c U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.lzma.uu U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.xz.uu U src/external/bsd/libarchive/dist/tar/test/test_option_L_upper.c U src/external/bsd/libarchive/dist/tar/test/test_option_uuencode.c U src/external/bsd/libarchive/dist/tar/test/test_option_acls.c U src/external/bsd/libarchive/dist/tar/test/test_option_keep_newer_files.tar.Z.uu U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.zst.uu U src/external/bsd/libarchive/dist/tar/test/test_option_newer_than.c N src/external/bsd/libarchive/dist/tar/test/test_option_owner.c U src/external/bsd/libarchive/dist/tar/test/test_option_X_upper.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_grz.c U
CVS import: src/external/bsd/libarchive/dist
Module Name:src Committed By: christos Date: Sun Jun 9 19:36:11 UTC 2024 Update of /cvsroot/src/external/bsd/libarchive/dist In directory ivanova.netbsd.org:/tmp/cvs-serv11632 Log Message: Import libarchive-3.7.4 previous was 3.4.0 Changes: Apr 26, 2024: libarchive 3.7.4 released Apr 08, 2024: libarchive 3.7.3 released Sep 12, 2023: libarchive 3.7.2 released Jul 29, 2023: libarchive 3.7.1 released Jul 18, 2023: libarchive 3.7.0 released Jul 14, 2023: bsdunzip port from FreeBSD Dec 07, 2022: libarchive 3.6.2 released Apr 08, 2022: libarchive 3.6.1 released Feb 09, 2022: libarchive 3.6.0 released Feb 08, 2022: libarchive 3.5.3 released Aug 22, 2021: libarchive 3.5.2 released Dec 26, 2020: libarchive 3.5.1 released Dec 01, 2020: libarchive 3.5.0 released Oct 14, 2020: Support for system extended attributes May 20, 2020: libarchive 3.4.3 released Apr 30, 2020: Support for pzstd compressed files Apr 16, 2020: Support for RHT.security.selinux tar extended attribute Feb 11, 2020: libarchive 3.4.2 released Jan 23, 2020: Important fixes for writing XAR archives Jan 20, 2020: New tar option: --safe-writes (atomical file extraction) Jan 03, 2020: Support mbed TLS (PolarSSL) as optional crypto provider Dec 30, 2019: libarchive 3.4.1 released Dec 11, 2019: New pax write option "xattrhdr" Nov 17, 2019: Unicode filename support for reading lha/lzh archives Status: Vendor Tag: KIENTZLE Release Tags: libarchive-3-7-4 U src/external/bsd/libarchive/dist/README.md U src/external/bsd/libarchive/dist/COPYING U src/external/bsd/libarchive/dist/NEWS U src/external/bsd/libarchive/dist/tar/creation_set.c U src/external/bsd/libarchive/dist/tar/bsdtar.1 C src/external/bsd/libarchive/dist/tar/bsdtar.c U src/external/bsd/libarchive/dist/tar/subst.c U src/external/bsd/libarchive/dist/tar/read.c C src/external/bsd/libarchive/dist/tar/write.c U src/external/bsd/libarchive/dist/tar/util.c U src/external/bsd/libarchive/dist/tar/cmdline.c U src/external/bsd/libarchive/dist/tar/bsdtar_platform.h U src/external/bsd/libarchive/dist/tar/bsdtar_windows.h U src/external/bsd/libarchive/dist/tar/bsdtar_windows.c U src/external/bsd/libarchive/dist/tar/bsdtar.h U src/external/bsd/libarchive/dist/tar/test/test_option_n.c U src/external/bsd/libarchive/dist/tar/test/test_missing_file.c U src/external/bsd/libarchive/dist/tar/test/test_option_keep_newer_files.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lrz.c U src/external/bsd/libarchive/dist/tar/test/test_leading_slash.tar.uu U src/external/bsd/libarchive/dist/tar/test/test_option_lz4.c U src/external/bsd/libarchive/dist/tar/test/test_version.c U src/external/bsd/libarchive/dist/tar/test/test_option_passphrase.zip.uu U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.gz.uu U src/external/bsd/libarchive/dist/tar/test/test_option_r.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_xz.c U src/external/bsd/libarchive/dist/tar/test/test_option_k.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lzma.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lz4.c U src/external/bsd/libarchive/dist/tar/test/test_option_O_upper.c U src/external/bsd/libarchive/dist/tar/test/test_option_q.c U src/external/bsd/libarchive/dist/tar/test/test.h U src/external/bsd/libarchive/dist/tar/test/test_option_passphrase.c U src/external/bsd/libarchive/dist/tar/test/test_option_s.tar.Z.uu U src/external/bsd/libarchive/dist/tar/test/test_patterns.c U src/external/bsd/libarchive/dist/tar/test/test_format_newc.c U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.lrz.uu U src/external/bsd/libarchive/dist/tar/test/test_option_xattrs.c U src/external/bsd/libarchive/dist/tar/test/test_leading_slash.c U src/external/bsd/libarchive/dist/tar/test/test_option_H_upper.c U src/external/bsd/libarchive/dist/tar/test/test_option_fflags.c C src/external/bsd/libarchive/dist/tar/test/test_basic.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_lzo.c U src/external/bsd/libarchive/dist/tar/test/test_strip_components.c U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.grz.uu U src/external/bsd/libarchive/dist/tar/test/test_stdio.c U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.lzma.uu U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.xz.uu U src/external/bsd/libarchive/dist/tar/test/test_option_L_upper.c U src/external/bsd/libarchive/dist/tar/test/test_option_uuencode.c U src/external/bsd/libarchive/dist/tar/test/test_option_acls.c U src/external/bsd/libarchive/dist/tar/test/test_option_keep_newer_files.tar.Z.uu U src/external/bsd/libarchive/dist/tar/test/test_extract.tar.zst.uu U src/external/bsd/libarchive/dist/tar/test/test_option_newer_than.c N src/external/bsd/libarchive/dist/tar/test/test_option_owner.c U src/external/bsd/libarchive/dist/tar/test/test_option_X_upper.c U src/external/bsd/libarchive/dist/tar/test/test_extract_tar_grz.c U
Re: CVS commit: src/distrib/sets/lists
In article <20240603184723.c745cf...@cvs.netbsd.org>, Taylor R Campbell wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: riastradh >Date: Mon Jun 3 18:47:23 UTC 2024 > >Modified Files: > src/distrib/sets/lists/base32: ad.aarch64 md.sparc64 > src/distrib/sets/lists/comp: ad.aarch64 > src/distrib/sets/lists/debug32: ad.aarch64 ad.mips64eb ad.mips64el > ad.mipsn64eb ad.mipsn64el ad.powerpc64 ad.riscv64 md.amd64 > md.sparc64 > src/distrib/sets/lists/debug64: ad.mips64eb ad.mips64el > >Log Message: >Take a whack at fixing the compat32 set lists for clang build. > >This really needs to be automatically derived from the main set >lists; all this copypasta is a maintenance nightmare and I doubt I >got everything after an hour of tweaking. Yes, this all needs to be automated or reverted. It is a waste of time and error-prone to manually have to edit what can be automatically generated. The clang builds have been broken for more than a month, and I did not bother to fix them because it is a waste of manual labor. Then Taylor wasted his time fixing them. Is there a due date by which all should be fixed or reverted? I propose July 1st. christos
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: christos Date: Wed May 29 18:58:01 UTC 2024 Modified Files: src/sys/compat/linux/arch/aarch64: Makefile src/sys/compat/linux/arch/alpha: Makefile src/sys/compat/linux/arch/amd64: Makefile src/sys/compat/linux/arch/arm: Makefile src/sys/compat/linux/arch/i386: Makefile src/sys/compat/linux/arch/m68k: Makefile src/sys/compat/linux/arch/mips: Makefile src/sys/compat/linux/arch/powerpc: Makefile src/sys/compat/linux/arch/sparc: Makefile src/sys/compat/linux/arch/sparc64: Makefile Log Message: should not be using .include <> but .include "" here. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/aarch64/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/alpha/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/amd64/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/arm/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/i386/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/m68k/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/mips/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/powerpc/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/sparc/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/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/sys/compat/linux/arch/aarch64/Makefile diff -u src/sys/compat/linux/arch/aarch64/Makefile:1.1 src/sys/compat/linux/arch/aarch64/Makefile:1.2 --- src/sys/compat/linux/arch/aarch64/Makefile:1.1 Thu Sep 23 02:56:27 2021 +++ src/sys/compat/linux/arch/aarch64/Makefile Wed May 29 14:58:00 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.1 2021/09/23 06:56:27 ryo Exp $ +# $NetBSD: Makefile,v 1.2 2024/05/29 18:58:00 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/alpha/Makefile diff -u src/sys/compat/linux/arch/alpha/Makefile:1.3 src/sys/compat/linux/arch/alpha/Makefile:1.4 --- src/sys/compat/linux/arch/alpha/Makefile:1.3 Tue Apr 8 07:39:57 2014 +++ src/sys/compat/linux/arch/alpha/Makefile Wed May 29 14:58:00 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ +# $NetBSD: Makefile,v 1.4 2024/05/29 18:58:00 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/amd64/Makefile diff -u src/sys/compat/linux/arch/amd64/Makefile:1.3 src/sys/compat/linux/arch/amd64/Makefile:1.4 --- src/sys/compat/linux/arch/amd64/Makefile:1.3 Tue Apr 8 07:39:57 2014 +++ src/sys/compat/linux/arch/amd64/Makefile Wed May 29 14:58:00 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ +# $NetBSD: Makefile,v 1.4 2024/05/29 18:58:00 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/arm/Makefile diff -u src/sys/compat/linux/arch/arm/Makefile:1.2 src/sys/compat/linux/arch/arm/Makefile:1.3 --- src/sys/compat/linux/arch/arm/Makefile:1.2 Tue Apr 8 07:39:57 2014 +++ src/sys/compat/linux/arch/arm/Makefile Wed May 29 14:58:01 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.2 2014/04/08 11:39:57 njoly Exp $ +# $NetBSD: Makefile,v 1.3 2024/05/29 18:58:01 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/i386/Makefile diff -u src/sys/compat/linux/arch/i386/Makefile:1.3 src/sys/compat/linux/arch/i386/Makefile:1.4 --- src/sys/compat/linux/arch/i386/Makefile:1.3 Tue Apr 8 07:39:57 2014 +++ src/sys/compat/linux/arch/i386/Makefile Wed May 29 14:58:01 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ +# $NetBSD: Makefile,v 1.4 2024/05/29 18:58:01 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/m68k/Makefile diff -u src/sys/compat/linux/arch/m68k/Makefile:1.3 src/sys/compat/linux/arch/m68k/Makefile:1.4 --- src/sys/compat/linux/arch/m68k/Makefile:1.3 Tue Apr 8 07:39:57 2014 +++ src/sys/compat/linux/arch/m68k/Makefile Wed May 29 14:58:01 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ +# $NetBSD: Makefile,v 1.4 2024/05/29 18:58:01 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/mips/Makefile diff -u src/sys/compat/linux/arch/mips/Makefile:1.3 src/sys/compat/linux/arch/mips/Makefile:1.4 --- src/sys/compat/linux/arch/mips/Makefile:1.3 Tue Apr 8 07:39:57 2014 +++ src/sys/compat/linux/arch/mips/Makefile Wed May 29 14:58:01 2024 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ +# $NetBSD: Makefile,v 1.4 2024/05/29 18:58:01 christos Exp $ -.include <../../Makefile.inc> +.include "../../Makefile.inc" Index: src/sys/compat/linux/arch/powerpc/Makefile diff -u
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: christos Date: Wed May 29 18:58:01 UTC 2024 Modified Files: src/sys/compat/linux/arch/aarch64: Makefile src/sys/compat/linux/arch/alpha: Makefile src/sys/compat/linux/arch/amd64: Makefile src/sys/compat/linux/arch/arm: Makefile src/sys/compat/linux/arch/i386: Makefile src/sys/compat/linux/arch/m68k: Makefile src/sys/compat/linux/arch/mips: Makefile src/sys/compat/linux/arch/powerpc: Makefile src/sys/compat/linux/arch/sparc: Makefile src/sys/compat/linux/arch/sparc64: Makefile Log Message: should not be using .include <> but .include "" here. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/aarch64/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/alpha/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/amd64/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/arm/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/i386/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/m68k/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/mips/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/powerpc/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/sparc/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/sparc64/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib
Module Name:src Committed By: christos Date: Wed May 29 13:35:12 UTC 2024 Modified Files: src/lib: checkoldver Log Message: Improve robustness (from kre@) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/checkoldver Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib
Module Name:src Committed By: christos Date: Wed May 29 13:35:12 UTC 2024 Modified Files: src/lib: checkoldver Log Message: Improve robustness (from kre@) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/checkoldver Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/checkoldver diff -u src/lib/checkoldver:1.4 src/lib/checkoldver:1.5 --- src/lib/checkoldver:1.4 Tue May 28 12:20:34 2024 +++ src/lib/checkoldver Wed May 29 09:35:12 2024 @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: checkoldver,v 1.4 2024/05/28 16:20:34 christos Exp $ +# $NetBSD: checkoldver,v 1.5 2024/05/29 13:35:12 christos Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -47,16 +47,14 @@ delete() { then obsol="$obsol.$4" fi - echo $PWD/$obsol + printf "${PWD}/${obsol}\n" } comparelib() { local name="${1%.so.*}" - local version=${1#*.so.} - OIFS="$IFS" - IFS="$IFS." + local version="${1#"${name}"*.so.}" + local IFS=. set -- $version - IFS="$OIFS" if [ -z "$libmajor" ] then
CVS commit: src/lib
Module Name:src Committed By: christos Date: Tue May 28 16:20:34 UTC 2024 Modified Files: src/lib: checkoldver Log Message: handle library names that contain a period. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/checkoldver Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib
Module Name:src Committed By: christos Date: Tue May 28 16:20:34 UTC 2024 Modified Files: src/lib: checkoldver Log Message: handle library names that contain a period. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/checkoldver Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/checkoldver diff -u src/lib/checkoldver:1.3 src/lib/checkoldver:1.4 --- src/lib/checkoldver:1.3 Wed Apr 30 09:10:50 2008 +++ src/lib/checkoldver Tue May 28 12:20:34 2024 @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: checkoldver,v 1.3 2008/04/30 13:10:50 martin Exp $ +# $NetBSD: checkoldver,v 1.4 2024/05/28 16:20:34 christos Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -51,33 +51,31 @@ delete() { } comparelib() { + local name="${1%.so.*}" + local version=${1#*.so.} OIFS="$IFS" IFS="$IFS." - set -- $1 + set -- $version IFS="$OIFS" - if [ "$3" = "[0-9]*" ] - then - return - fi if [ -z "$libmajor" ] then - libname="$1" - libmajor="$3" - libminor="$4" - libtiny="$5" + libname="$name" + libmajor="$1" + libminor="$2" + libtiny="$3" return fi - if [ "$libmajor" -lt "$3" ] + if [ "$libmajor" -lt "$1" ] then delete "$libname" "$libmajor" "$libminor" "$libtiny" - libmajor="$3" - libminor="$4" - libtiny="$5" + libmajor="$1" + libminor="$2" + libtiny="$3" return - elif [ "$3" -lt "$libmajor" ] + elif [ "$1" -lt "$libmajor" ] then - delete "$libname" "$3" "$4" "$5" + delete "$libname" "$1" "$2" "$3" return fi @@ -85,16 +83,16 @@ comparelib() { then return fi - if [ "$libminor" -lt "$4" ] + if [ "$libminor" -lt "$2" ] then delete "$libname" "$libmajor" "$libminor" "$libtiny" - libmajor="$3" - libminor="$4" - libtiny="$5" + libmajor="$1" + libminor="$2" + libtiny="$3" return - elif [ "$4" -lt "$libminor" ] + elif [ "$2" -lt "$libminor" ] then - delete "$libname" "$3" "$4" "$5" + delete "$libname" "$1" "$2" "$3" return fi @@ -102,16 +100,16 @@ comparelib() { then return fi - if [ "$libtiny" -lt "$5" ] + if [ "$libtiny" -lt "$3" ] then delete "$libname" "$libmajor" "$libminor" "$libtiny" - libmajor="$3" - libminor="$4" - libtiny="$5" + libmajor="$1" + libminor="$2" + libtiny="$3" return elif [ "$5" -lt "$libminor" ] then - delete "$libname" "$3" "$4" "$5" + delete "$libname" "$1" "$2" "$3" return fi }
CVS commit: src/share/man/man9
Module Name:src Committed By: christos Date: Mon May 20 17:12:41 UTC 2024 Modified Files: src/share/man/man9: versioningsyscalls.9 Log Message: explain what the current and new numbering practice are. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/versioningsyscalls.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man9/versioningsyscalls.9 diff -u src/share/man/man9/versioningsyscalls.9:1.5 src/share/man/man9/versioningsyscalls.9:1.6 --- src/share/man/man9/versioningsyscalls.9:1.5 Fri Jul 14 05:03:37 2023 +++ src/share/man/man9/versioningsyscalls.9 Mon May 20 13:12:41 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: versioningsyscalls.9,v 1.5 2023/07/14 09:03:37 rillig Exp $ +.\" $NetBSD: versioningsyscalls.9,v 1.6 2024/05/20 17:12:41 christos Exp $ .\" .\" Copyright (c) 2023 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 23, 2023 +.Dd May 20, 2024 .Dt VERSIONINGSYSCALLS 9 .Os . @@ -89,7 +89,7 @@ The version of the syscall that will bec .El .Pp Additionally, -.Ar XYZ +.Ar CNUM always represents the last .Nx release where the current @@ -115,6 +115,42 @@ will be versioned. If not versioning a struct, passages that mention .Ft my_struct can be ignored. +.Pp +The syscall version suffix +.Dv VNUM +indicates the first release of +.Nx +the system call will appear in. +The compat version +.Dv CNUM +is the last version of +.Nx the old system call was used. +Typically VNUM = CNUM + 1 . +.Pp +For example if you are versioning +.Xr getcontext 2 +just after +.Nx 11 +was released, and the original system call was called +.Fn getcontext , +the system call will become +.Fn __getcontext12 +and the compat entry point will become +.Fn compat_11_getcontext . +.Pp +Next time +.Xr getcontext 2 +needs versioning, for example just after +.Nx 15 +was released, it will become +.Fn __getcontext16 +and the compat entry will become +.Fn compat_15___getcontext12 . +.Pp +Please note that the historical practice up to +.Nx 11 +has been that the syscall suffix matched the version when the syscall +was last used. . .Ss Versioning structs To version @@ -122,7 +158,7 @@ To version first make a copy of .Ft my_struct renamed to -.Ft my_structXYZ +.Ft my_structCNUM in an equivalent header in .Pa sys/compat/sys . After that, you can freely modify @@ -131,14 +167,14 @@ as desired. . .Ss Versioning the entry point The stub for the next version of the syscall will be -.Fn __my_syscallXYZ , +.Fn __my_syscallVNUM , and will have entry point -.Fn sys___my_syscallXYZ . +.Fn sys___my_syscallVNUM . . .Ss Modifying syscalls.conf .Pa sys/kern/syscalls.conf may need to be modified to contain -.Li compat_XYZ +.Li compat_CNUM in the .Va compatopts variable. @@ -149,20 +185,20 @@ First, add the next syscall to keeping .Fn my_syscall as the name, and set the (optional) compat field of the declaration to -.Ar XYZ . +.Ar CNUM . .Pp Next, modify the current version of the syscall, and replace the type field .Pq usually just Li STD with -.Dv COMPAT_XYZ MODULAR compat_XYZ . +.Dv COMPAT_CNUM MODULAR compat_CNUM . .Pp The keyword .Dv MODULAR indicates that the system call can be part of a kernel module. Even if the system call was not part of a module before, now it will be part of the -.Dv COMPAT_XYZ +.Dv COMPAT_CNUM module. .Pp Finally, if applicable, replace the types of the current and old versions of the @@ -171,16 +207,16 @@ syscall with the compat type. Overall, the final diff should look like .Bd -literal - 123 STD { int|sys||my_syscall(struct my_struct *ms); } -+ 123 COMPAT_XYZ MODULAR compat_XYZ { int|sys||my_syscall(struct my_structXYZ *ms); } ++ 123 COMPAT_CNUM MODULAR compat_CNUM { int|sys||my_syscall(struct my_structCNUM *ms); } \&... -+ 456 STD { int|sys|XYZ|my_syscall(struct my_struct *ms); } ++ 456 STD { int|sys|VNUM|my_syscall(struct my_struct *ms); } .Ed . .Ss Modifying Makefile.rump If the current syscall is rump, .Pa sys/rump/Makefile.rump must contain -.Ar XYZ +.Ar CNUM in the .Dv RUMP_NBCOMPAT variable. @@ -189,7 +225,7 @@ variable. If versioning structs, then modify .Pa sys/kern/makesyscalls.sh by adding and entry for -.Ft struct my_structXYZ +.Ft struct my_structCNUM type to .Va uncompattypes . .Pp @@ -223,26 +259,26 @@ and lives inside . .Ss Creating the compat current syscall The compat version of the current syscall has entry point -.Fn compat_XYZ_sys_my_syscall , +.Fn compat_CNUM_sys_my_syscall , and should be implemented in -.Pa sys/compat/common/my_file_XYZ.c +.Pa sys/compat/common/my_file_CNUM.c with the same semantics as the current syscall. Often this involves translating the arguments to the
CVS commit: src/share/man/man9
Module Name:src Committed By: christos Date: Mon May 20 17:12:41 UTC 2024 Modified Files: src/share/man/man9: versioningsyscalls.9 Log Message: explain what the current and new numbering practice are. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/versioningsyscalls.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/tic
Module Name:src Committed By: christos Date: Mon May 20 14:41:37 UTC 2024 Modified Files: src/usr.bin/tic: tic.c Log Message: PR/58270: RVP: tic does not honor the user's umask, output files are 0666. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.bin/tic/tic.c 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/tic/tic.c diff -u src/usr.bin/tic/tic.c:1.41 src/usr.bin/tic/tic.c:1.42 --- src/usr.bin/tic/tic.c:1.41 Sat May 11 18:06:57 2024 +++ src/usr.bin/tic/tic.c Mon May 20 10:41:37 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: tic.c,v 1.41 2024/05/11 22:06:57 christos Exp $ */ +/* $NetBSD: tic.c,v 1.42 2024/05/20 14:41:37 christos Exp $ */ /* * Copyright (c) 2009, 2010, 2020 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #endif #include -__RCSID("$NetBSD: tic.c,v 1.41 2024/05/11 22:06:57 christos Exp $"); +__RCSID("$NetBSD: tic.c,v 1.42 2024/05/20 14:41:37 christos Exp $"); #include #include @@ -573,6 +573,7 @@ write_database(const char *dbname) char *tmp_dbname; TERM *term; int fd; + mode_t m; db = cdbw_open(); if (db == NULL) @@ -589,7 +590,9 @@ write_database(const char *dbname) if (cdbw_output(db, fd, "NetBSD terminfo", cdbw_stable_seeder)) err(EXIT_FAILURE, "writing temporary database %s failed", tmp_dbname); - if (fchmod(fd, DEFFILEMODE)) + m = umask(0); + (void)umask(m); + if (fchmod(fd, DEFFILEMODE & ~m)) err(EXIT_FAILURE, "fchmod failed"); if (close(fd)) err(EXIT_FAILURE,
CVS commit: src/usr.bin/tic
Module Name:src Committed By: christos Date: Mon May 20 14:41:37 UTC 2024 Modified Files: src/usr.bin/tic: tic.c Log Message: PR/58270: RVP: tic does not honor the user's umask, output files are 0666. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.bin/tic/tic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/rump
Module Name:src Committed By: christos Date: Mon May 20 04:16:48 UTC 2024 Modified Files: src/sys/rump: Makefile.rump Log Message: Handle versions > 100 To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/sys/rump/Makefile.rump 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/Makefile.rump diff -u src/sys/rump/Makefile.rump:1.137 src/sys/rump/Makefile.rump:1.138 --- src/sys/rump/Makefile.rump:1.137 Sun May 19 18:25:49 2024 +++ src/sys/rump/Makefile.rump Mon May 20 00:16:48 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.rump,v 1.137 2024/05/19 22:25:49 christos Exp $ +# $NetBSD: Makefile.rump,v 1.138 2024/05/20 04:16:48 christos Exp $ # .if !defined(_RUMP_MK) @@ -54,7 +54,7 @@ RUMP_NBCOMPAT= 50 60 70 80 90 100 110 RUMP_NBCOMPAT= .endif RUMP_NBCOMPAT:= ${RUMP_NBCOMPAT:S/,/ /g} -CPPFLAGS+= ${RUMP_NBCOMPAT:C/[1-9]0/-DCOMPAT_&/g} +CPPFLAGS+= ${RUMP_NBCOMPAT:C/^[1-9][0-9]*/-DCOMPAT_&/g} CPPFLAGS+= -nostdinc CFLAGS+= -ffreestanding -fno-strict-aliasing
CVS commit: src/sys/rump
Module Name:src Committed By: christos Date: Mon May 20 04:16:48 UTC 2024 Modified Files: src/sys/rump: Makefile.rump Log Message: Handle versions > 100 To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/sys/rump/Makefile.rump Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/common
Module Name:src Committed By: christos Date: Mon May 20 02:36:33 UTC 2024 Modified Files: src/sys/compat/common: files.common Log Message: remove dup line To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/compat/common/files.common 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/common/files.common diff -u src/sys/compat/common/files.common:1.13 src/sys/compat/common/files.common:1.14 --- src/sys/compat/common/files.common:1.13 Sun May 19 21:30:34 2024 +++ src/sys/compat/common/files.common Sun May 19 22:36:33 2024 @@ -1,4 +1,4 @@ -# $NetBSD: files.common,v 1.13 2024/05/20 01:30:34 christos Exp $ +# $NetBSD: files.common,v 1.14 2024/05/20 02:36:33 christos Exp $ # # Generic utility files, used by various compat options. @@ -114,7 +114,6 @@ file compat/common/net_inet6_nd_90.c co # Compatibility code for NetBSD 10.0 file compat/common/compat_100_mod.c compat_100 file compat/common/kern_event_100.c compat_100 -file compat/common/compat_100_mod.c compat_100 file compat/common/sys_descrip_100.c compat_100 # Compatibility code for NetBSD 11.0
CVS commit: src/sys/compat/common
Module Name:src Committed By: christos Date: Mon May 20 02:36:33 UTC 2024 Modified Files: src/sys/compat/common: files.common Log Message: remove dup line To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/compat/common/files.common Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: christos Date: Mon May 20 01:40:45 UTC 2024 Modified Files: src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c src/sys/kern: init_sysent.c syscalls.c syscalls_autoload.c systrace_args.c src/sys/rump: rump.sysmap src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c rumpkern_syscalls.c src/sys/rump/librump/rumpnet: rumpnet_syscalls.c src/sys/rump/librump/rumpvfs: rumpvfs_syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.160 -r1.161 src/sys/compat/netbsd32/netbsd32_syscallargs.h \ src/sys/compat/netbsd32/netbsd32_syscalls.c cvs rdiff -u -r1.40 -r1.41 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.53 -r1.54 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.342 -r1.343 src/sys/kern/init_sysent.c cvs rdiff -u -r1.330 -r1.331 src/sys/kern/syscalls.c cvs rdiff -u -r1.46 -r1.47 src/sys/kern/syscalls_autoload.c cvs rdiff -u -r1.52 -r1.53 src/sys/kern/systrace_args.c cvs rdiff -u -r1.10 -r1.11 src/sys/rump/rump.sysmap cvs rdiff -u -r1.129 -r1.130 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.160 -r1.161 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpkern/rumpkern_syscalls.c cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpnet/rumpnet_syscalls.c cvs rdiff -u -r1.11 -r1.12 src/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c cvs rdiff -u -r1.325 -r1.326 src/sys/sys/syscall.h cvs rdiff -u -r1.308 -r1.309 src/sys/sys/syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: christos Date: Mon May 20 01:40:45 UTC 2024 Modified Files: src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c src/sys/kern: init_sysent.c syscalls.c syscalls_autoload.c systrace_args.c src/sys/rump: rump.sysmap src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c rumpkern_syscalls.c src/sys/rump/librump/rumpnet: rumpnet_syscalls.c src/sys/rump/librump/rumpvfs: rumpvfs_syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.160 -r1.161 src/sys/compat/netbsd32/netbsd32_syscallargs.h \ src/sys/compat/netbsd32/netbsd32_syscalls.c cvs rdiff -u -r1.40 -r1.41 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.53 -r1.54 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.342 -r1.343 src/sys/kern/init_sysent.c cvs rdiff -u -r1.330 -r1.331 src/sys/kern/syscalls.c cvs rdiff -u -r1.46 -r1.47 src/sys/kern/syscalls_autoload.c cvs rdiff -u -r1.52 -r1.53 src/sys/kern/systrace_args.c cvs rdiff -u -r1.10 -r1.11 src/sys/rump/rump.sysmap cvs rdiff -u -r1.129 -r1.130 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.160 -r1.161 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpkern/rumpkern_syscalls.c cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpnet/rumpnet_syscalls.c cvs rdiff -u -r1.11 -r1.12 src/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c cvs rdiff -u -r1.325 -r1.326 src/sys/sys/syscall.h cvs rdiff -u -r1.308 -r1.309 src/sys/sys/syscallargs.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/netbsd32/netbsd32_syscall.h diff -u src/sys/compat/netbsd32/netbsd32_syscall.h:1.161 src/sys/compat/netbsd32/netbsd32_syscall.h:1.162 --- src/sys/compat/netbsd32/netbsd32_syscall.h:1.161 Sun May 19 18:27:15 2024 +++ src/sys/compat/netbsd32/netbsd32_syscall.h Sun May 19 21:40:45 2024 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscall.h,v 1.161 2024/05/19 22:27:15 christos Exp $ */ +/* $NetBSD: netbsd32_syscall.h,v 1.162 2024/05/20 01:40:45 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.145 2024/05/19 22:25:48 christos Exp + * created from NetBSD: syscalls.master,v 1.146 2024/05/20 01:30:33 christos Exp */ #ifndef _NETBSD32_SYS_SYSCALL_H_ @@ -1200,8 +1200,8 @@ /* syscall: "netbsd32_pipe2" ret: "int" args: "netbsd32_intp" "int" */ #define NETBSD32_SYS_netbsd32_pipe2 453 -/* syscall: "compat_110_netbsd32_dup3" ret: "int" args: "int" "int" "int" */ -#define NETBSD32_SYS_compat_110_netbsd32_dup3 454 +/* syscall: "compat_100_netbsd32_dup3" ret: "int" args: "int" "int" "int" */ +#define NETBSD32_SYS_compat_100_netbsd32_dup3 454 /* syscall: "netbsd32_kqueue1" ret: "int" args: "int" */ #define NETBSD32_SYS_netbsd32_kqueue1 455 @@ -1353,8 +1353,8 @@ /* syscall: "netbsd32_epoll_pwait2" ret: "int" args: "int" "netbsd32_epoll_eventp_t" "int" "netbsd32_timespecp_t" "netbsd32_sigsetp_t" */ #define NETBSD32_SYS_netbsd32_epoll_pwait2 504 -/* syscall: "netbsd32___dup3110" ret: "int" args: "int" "int" "int" */ -#define NETBSD32_SYS_netbsd32___dup3110 505 +/* syscall: "netbsd32___dup3100" ret: "int" args: "int" "int" "int" */ +#define NETBSD32_SYS_netbsd32___dup3100 505 #define NETBSD32_SYS_MAXSYSCALL 506 #define NETBSD32_SYS_NSYSENT 512 Index: src/sys/compat/netbsd32/netbsd32_sysent.c diff -u src/sys/compat/netbsd32/netbsd32_sysent.c:1.161 src/sys/compat/netbsd32/netbsd32_sysent.c:1.162 --- src/sys/compat/netbsd32/netbsd32_sysent.c:1.161 Sun May 19 18:27:15 2024 +++ src/sys/compat/netbsd32/netbsd32_sysent.c Sun May 19 21:40:45 2024 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_sysent.c,v 1.161 2024/05/19 22:27:15 christos Exp $ */ +/* $NetBSD: netbsd32_sysent.c,v 1.162 2024/05/20 01:40:45 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.145 2024/05/19 22:25:48 christos Exp + * created from NetBSD: syscalls.master,v 1.146 2024/05/20 01:30:33 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.161 2024/05/19 22:27:15 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.162 2024/05/20 01:40:45 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -1891,9 +1891,9 @@ struct sysent netbsd32_sysent[] = { .sy_call = (sy_call_t *)netbsd32_pipe2 }, /* 453 = netbsd32_pipe2 */ { -
CVS commit: src/lib/libc/compat
Module Name:src Committed By: christos Date: Mon May 20 01:33:40 UTC 2024 Modified Files: src/lib/libc/compat/include: unistd.h src/lib/libc/compat/sys: compat_dup3.c Log Message: finish renaming __dup3110 to __dup3100 To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libc/compat/include/unistd.h cvs rdiff -u -r1.1 -r1.2 src/lib/libc/compat/sys/compat_dup3.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/compat/include/unistd.h diff -u src/lib/libc/compat/include/unistd.h:1.4 src/lib/libc/compat/include/unistd.h:1.5 --- src/lib/libc/compat/include/unistd.h:1.4 Sun May 19 18:25:47 2024 +++ src/lib/libc/compat/include/unistd.h Sun May 19 21:33:39 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.4 2024/05/19 22:25:47 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.5 2024/05/20 01:33:39 christos Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ __BEGIN_DECLS pid_t vfork(void) __returns_twice; pid_t __vfork14(void) __returns_twice; int dup3(int, int, int); -int __dup3110(int, int, int); +int __dup3100(int, int, int); __END_DECLS Index: src/lib/libc/compat/sys/compat_dup3.c diff -u src/lib/libc/compat/sys/compat_dup3.c:1.1 src/lib/libc/compat/sys/compat_dup3.c:1.2 --- src/lib/libc/compat/sys/compat_dup3.c:1.1 Sun May 19 18:25:48 2024 +++ src/lib/libc/compat/sys/compat_dup3.c Sun May 19 21:33:40 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $ */ +/* $NetBSD: compat_dup3.c,v 1.2 2024/05/20 01:33:40 christos Exp $ */ /*- * Copyright (c) 2024 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $"); +__RCSID("$NetBSD: compat_dup3.c,v 1.2 2024/05/20 01:33:40 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -45,7 +45,7 @@ int dup3(int oldfd, int newfd, int flags) { if (oldfd != newfd) { - return __dup3110(oldfd, newfd, flags); + return __dup3100(oldfd, newfd, flags); } if (flags & (O_NONBLOCK|O_NOSIGPIPE)) { int e = fcntl(newfd, F_GETFL, 0);
CVS commit: src/lib/libc/compat
Module Name:src Committed By: christos Date: Mon May 20 01:33:40 UTC 2024 Modified Files: src/lib/libc/compat/include: unistd.h src/lib/libc/compat/sys: compat_dup3.c Log Message: finish renaming __dup3110 to __dup3100 To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libc/compat/include/unistd.h cvs rdiff -u -r1.1 -r1.2 src/lib/libc/compat/sys/compat_dup3.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: christos Date: Mon May 20 01:30:34 UTC 2024 Modified Files: src/include: unistd.h src/lib/libc/sys: Makefile.inc src/sys/compat/common: compat_100_mod.c compat_110_mod.c compat_mod.h files.common src/sys/compat/netbsd32: netbsd32_compat_100.c netbsd32_compat_110.c netbsd32_netbsd.c syscalls.master src/sys/kern: syscalls.master src/sys/modules/compat_110: Makefile Added Files: src/sys/compat/common: sys_descrip_100.c Removed Files: src/sys/compat/common: sys_decrip_110.c Log Message: Rename dup3110 to dup3100 to match historical practice for NetBSD-11, because we already have kevent100. Fix compat_dup3 to belong in compat_100 not compat_110. To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/include/unistd.h cvs rdiff -u -r1.254 -r1.255 src/lib/libc/sys/Makefile.inc cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/compat_100_mod.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/common/compat_110_mod.c cvs rdiff -u -r1.11 -r1.12 src/sys/compat/common/compat_mod.h cvs rdiff -u -r1.12 -r1.13 src/sys/compat/common/files.common cvs rdiff -u -r1.1 -r0 src/sys/compat/common/sys_decrip_110.c cvs rdiff -u -r0 -r1.1 src/sys/compat/common/sys_descrip_100.c cvs rdiff -u -r1.3 -r1.4 src/sys/compat/netbsd32/netbsd32_compat_100.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/netbsd32/netbsd32_compat_110.c cvs rdiff -u -r1.236 -r1.237 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.145 -r1.146 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.312 -r1.313 src/sys/kern/syscalls.master cvs rdiff -u -r1.1 -r1.2 src/sys/modules/compat_110/Makefile 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: christos Date: Mon May 20 01:30:34 UTC 2024 Modified Files: src/include: unistd.h src/lib/libc/sys: Makefile.inc src/sys/compat/common: compat_100_mod.c compat_110_mod.c compat_mod.h files.common src/sys/compat/netbsd32: netbsd32_compat_100.c netbsd32_compat_110.c netbsd32_netbsd.c syscalls.master src/sys/kern: syscalls.master src/sys/modules/compat_110: Makefile Added Files: src/sys/compat/common: sys_descrip_100.c Removed Files: src/sys/compat/common: sys_decrip_110.c Log Message: Rename dup3110 to dup3100 to match historical practice for NetBSD-11, because we already have kevent100. Fix compat_dup3 to belong in compat_100 not compat_110. To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/include/unistd.h cvs rdiff -u -r1.254 -r1.255 src/lib/libc/sys/Makefile.inc cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/compat_100_mod.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/common/compat_110_mod.c cvs rdiff -u -r1.11 -r1.12 src/sys/compat/common/compat_mod.h cvs rdiff -u -r1.12 -r1.13 src/sys/compat/common/files.common cvs rdiff -u -r1.1 -r0 src/sys/compat/common/sys_decrip_110.c cvs rdiff -u -r0 -r1.1 src/sys/compat/common/sys_descrip_100.c cvs rdiff -u -r1.3 -r1.4 src/sys/compat/netbsd32/netbsd32_compat_100.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/netbsd32/netbsd32_compat_110.c cvs rdiff -u -r1.236 -r1.237 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.145 -r1.146 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.312 -r1.313 src/sys/kern/syscalls.master cvs rdiff -u -r1.1 -r1.2 src/sys/modules/compat_110/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/unistd.h diff -u src/include/unistd.h:1.165 src/include/unistd.h:1.166 --- src/include/unistd.h:1.165 Sun May 19 18:25:47 2024 +++ src/include/unistd.h Sun May 19 21:30:33 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.165 2024/05/19 22:25:47 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.166 2024/05/20 01:30:33 christos Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -330,7 +330,7 @@ int closefrom(int); int des_cipher(const char *, char *, long, int); int des_setkey(const char *); #ifndef __LIBC12_SOURCE__ -int dup3(int, int, int) __RENAME(__dup3110); +int dup3(int, int, int) __RENAME(__dup3100); #endif void endusershell(void); int exect(const char *, char * const *, char * const *); Index: src/lib/libc/sys/Makefile.inc diff -u src/lib/libc/sys/Makefile.inc:1.254 src/lib/libc/sys/Makefile.inc:1.255 --- src/lib/libc/sys/Makefile.inc:1.254 Sun May 19 18:25:48 2024 +++ src/lib/libc/sys/Makefile.inc Sun May 19 21:30:33 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.254 2024/05/19 22:25:48 christos Exp $ +# $NetBSD: Makefile.inc,v 1.255 2024/05/20 01:30:33 christos Exp $ # @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 # sys sources @@ -102,7 +102,7 @@ ASM=\ chdir.S chflags.S chmod.S chown.S chroot.S \ clock_getcpuclockid2.S \ __clock_getres50.S __clock_gettime50.S \ - dup.S dup2.S __dup3110.S \ + dup.S dup2.S __dup3100.S \ eventfd.S \ extattrctl.S \ extattr_delete_fd.S extattr_delete_file.S \ Index: src/sys/compat/common/compat_100_mod.c diff -u src/sys/compat/common/compat_100_mod.c:1.2 src/sys/compat/common/compat_100_mod.c:1.3 --- src/sys/compat/common/compat_100_mod.c:1.2 Fri Jul 28 14:19:00 2023 +++ src/sys/compat/common/compat_100_mod.c Sun May 19 21:30:34 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: compat_100_mod.c,v 1.2 2023/07/28 18:19:00 christos Exp $ */ +/* $NetBSD: compat_100_mod.c,v 1.3 2024/05/20 01:30:34 christos Exp $ */ /*- * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #endif #include -__KERNEL_RCSID(0, "$NetBSD: compat_100_mod.c,v 1.2 2023/07/28 18:19:00 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: compat_100_mod.c,v 1.3 2024/05/20 01:30:34 christos Exp $"); #include #include @@ -49,15 +49,23 @@ __KERNEL_RCSID(0, "$NetBSD: compat_100_m int compat_100_init(void) { + int error; - return kern_event_100_init(); + error = kern_event_100_init(); + if (error) + return error; + return sys_descrip_100_init(); } int compat_100_fini(void) { + int error; - return kern_event_100_fini(); + error = kern_event_100_fini(); + if (error) + return error; + return sys_descrip_100_fini(); } MODULE(MODULE_CLASS_EXEC, compat_100, NULL); Index: src/sys/compat/common/compat_110_mod.c diff -u src/sys/compat/common/compat_110_mod.c:1.1 src/sys/compat/common/compat_110_mod.c:1.2 --- src/sys/compat/common/compat_110_mod.c:1.1 Sun May 19 18:25:48 2024 +++ src/sys/compat/common/compat_110_mod.c Sun May 19 21:30:34 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: compat_110_mod.c,v 1.1 2024/05/19 22:25:48 christos Exp $ */ +/* $NetBSD: compat_110_mod.c,v 1.2 2024/05/20 01:30:34 christos Exp $ */ /*- *
Re: CVS commit: src
> On May 19, 2024, at 9:19 PM, Jason Thorpe wrote: > > >> On May 19, 2024, at 5:35 PM, Christos Zoulas wrote: >> >> In article <9c72736d-707b-4267-bd05-45bffea52...@me.com>, >> Jason Thorpe wrote: >>> >>> >>>> On May 19, 2024, at 3:25 PM, Christos Zoulas wrote: >>>> >>>> src/sys/compat/common: compat_110_mod.c sys_decrip_110.c >>>> src/sys/compat/netbsd32: netbsd32_compat_110.c >>>> src/sys/conf: compat_netbsd110.config >>>> src/sys/modules/compat_110: Makefile >>>> src/sys/modules/compat_netbsd32_110: Makefile >>> >>> Wait, why is there now a compat_110 module? netbsd-11 isn’t out yet. >>> dup3() belongs in the compat_100 module. >> >> You asked for the syscall to be called dup3110 so I put it in compat_110... > > The new system call is dup3110 (“dup3 for 11.0”), the old one is “netbsd-10 > compatibility”, so belongs in compat_10. > We discussed it with Taylor and decided to call it dup3100 after all since we've already followed the old scheme for kevent100 and it is better to be consistent for the 11 release.We can start calling new syscalls 12 after 11 is released. christos
Re: CVS commit: src
In article <9c72736d-707b-4267-bd05-45bffea52...@me.com>, Jason Thorpe wrote: > > >> On May 19, 2024, at 3:25â¯PM, Christos Zoulas wrote: >> >> src/sys/compat/common: compat_110_mod.c sys_decrip_110.c >> src/sys/compat/netbsd32: netbsd32_compat_110.c >> src/sys/conf: compat_netbsd110.config >> src/sys/modules/compat_110: Makefile >> src/sys/modules/compat_netbsd32_110: Makefile > >Wait, why is there now a compat_110 module? netbsd-11 isnât out yet. >dup3() belongs in the compat_100 module. You asked for the syscall to be called dup3110 so I put it in compat_110... christos
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: christos Date: Mon May 20 00:27:53 UTC 2024 Modified Files: src/tests/lib/libc/sys: t_dup.c Log Message: Adjust to the new dup3 behavior for equal fds To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/sys/t_dup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/sys/t_dup.c diff -u src/tests/lib/libc/sys/t_dup.c:1.9 src/tests/lib/libc/sys/t_dup.c:1.10 --- src/tests/lib/libc/sys/t_dup.c:1.9 Fri Jan 13 15:31:53 2017 +++ src/tests/lib/libc/sys/t_dup.c Sun May 19 20:27:53 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: t_dup.c,v 1.9 2017/01/13 20:31:53 christos Exp $ */ +/* $NetBSD: t_dup.c,v 1.10 2024/05/20 00:27:53 christos Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_dup.c,v 1.9 2017/01/13 20:31:53 christos Exp $"); +__RCSID("$NetBSD: t_dup.c,v 1.10 2024/05/20 00:27:53 christos Exp $"); #include #include @@ -208,10 +208,10 @@ ATF_TC_BODY(dup3_err, tc) ATF_REQUIRE(fd >= 0); errno = 0; - ATF_REQUIRE(dup3(fd, fd, O_CLOEXEC) != -1); + ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, fd, O_CLOEXEC) == -1); errno = 0; - ATF_REQUIRE_ERRNO(EBADF, dup3(-1, -1, O_CLOEXEC) == -1); + ATF_REQUIRE_ERRNO(EINVAL, dup3(-1, -1, O_CLOEXEC) == -1); errno = 0; ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1);
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: christos Date: Mon May 20 00:27:53 UTC 2024 Modified Files: src/tests/lib/libc/sys: t_dup.c Log Message: Adjust to the new dup3 behavior for equal fds To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/sys/t_dup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: christos Date: Sun May 19 22:27:16 UTC 2024 Modified Files: src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c src/sys/kern: init_sysent.c syscalls.c syscalls_autoload.c systrace_args.c src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c rumpkern_syscalls.c src/sys/rump/librump/rumpnet: rumpnet_syscalls.c src/sys/rump/librump/rumpvfs: rumpvfs_syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.160 -r1.161 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.159 -r1.160 src/sys/compat/netbsd32/netbsd32_syscallargs.h \ src/sys/compat/netbsd32/netbsd32_syscalls.c cvs rdiff -u -r1.39 -r1.40 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.52 -r1.53 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.341 -r1.342 src/sys/kern/init_sysent.c cvs rdiff -u -r1.329 -r1.330 src/sys/kern/syscalls.c cvs rdiff -u -r1.45 -r1.46 src/sys/kern/syscalls_autoload.c cvs rdiff -u -r1.51 -r1.52 src/sys/kern/systrace_args.c cvs rdiff -u -r1.128 -r1.129 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.159 -r1.160 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/rumpkern_syscalls.c cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpnet/rumpnet_syscalls.c cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c cvs rdiff -u -r1.324 -r1.325 src/sys/sys/syscall.h cvs rdiff -u -r1.307 -r1.308 src/sys/sys/syscallargs.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/netbsd32/netbsd32_syscall.h diff -u src/sys/compat/netbsd32/netbsd32_syscall.h:1.160 src/sys/compat/netbsd32/netbsd32_syscall.h:1.161 --- src/sys/compat/netbsd32/netbsd32_syscall.h:1.160 Sun Jul 30 02:53:13 2023 +++ src/sys/compat/netbsd32/netbsd32_syscall.h Sun May 19 18:27:15 2024 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscall.h,v 1.160 2023/07/30 06:53:13 rin Exp $ */ +/* $NetBSD: netbsd32_syscall.h,v 1.161 2024/05/19 22:27:15 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp + * created from NetBSD: syscalls.master,v 1.145 2024/05/19 22:25:48 christos Exp */ #ifndef _NETBSD32_SYS_SYSCALL_H_ @@ -1200,8 +1200,8 @@ /* syscall: "netbsd32_pipe2" ret: "int" args: "netbsd32_intp" "int" */ #define NETBSD32_SYS_netbsd32_pipe2 453 -/* syscall: "netbsd32_dup3" ret: "int" args: "int" "int" "int" */ -#define NETBSD32_SYS_netbsd32_dup3 454 +/* syscall: "compat_110_netbsd32_dup3" ret: "int" args: "int" "int" "int" */ +#define NETBSD32_SYS_compat_110_netbsd32_dup3 454 /* syscall: "netbsd32_kqueue1" ret: "int" args: "int" */ #define NETBSD32_SYS_netbsd32_kqueue1 455 @@ -1353,6 +1353,9 @@ /* syscall: "netbsd32_epoll_pwait2" ret: "int" args: "int" "netbsd32_epoll_eventp_t" "int" "netbsd32_timespecp_t" "netbsd32_sigsetp_t" */ #define NETBSD32_SYS_netbsd32_epoll_pwait2 504 -#define NETBSD32_SYS_MAXSYSCALL 505 +/* syscall: "netbsd32___dup3110" ret: "int" args: "int" "int" "int" */ +#define NETBSD32_SYS_netbsd32___dup3110 505 + +#define NETBSD32_SYS_MAXSYSCALL 506 #define NETBSD32_SYS_NSYSENT 512 #endif /* _NETBSD32_SYS_SYSCALL_H_ */ Index: src/sys/compat/netbsd32/netbsd32_sysent.c diff -u src/sys/compat/netbsd32/netbsd32_sysent.c:1.160 src/sys/compat/netbsd32/netbsd32_sysent.c:1.161 --- src/sys/compat/netbsd32/netbsd32_sysent.c:1.160 Wed May 1 03:22:43 2024 +++ src/sys/compat/netbsd32/netbsd32_sysent.c Sun May 19 18:27:15 2024 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_sysent.c,v 1.160 2024/05/01 07:22:43 mlelstv Exp $ */ +/* $NetBSD: netbsd32_sysent.c,v 1.161 2024/05/19 22:27:15 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp + * created from NetBSD: syscalls.master,v 1.145 2024/05/19 22:25:48 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.160 2024/05/01 07:22:43 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.161 2024/05/19 22:27:15 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -133,6 +133,12 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_sys #define compat_100(func) sys_nosys #endif +#ifdef COMPAT_110 +#define compat_110(func) __CONCAT(compat_110_,func) +#else +#define compat_110(func) sys_nosys +#endif + #define s(type) sizeof(type) #define n(type) (sizeof(type)/sizeof
CVS commit: src/sys
Module Name:src Committed By: christos Date: Sun May 19 22:27:16 UTC 2024 Modified Files: src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c src/sys/kern: init_sysent.c syscalls.c syscalls_autoload.c systrace_args.c src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c rumpkern_syscalls.c src/sys/rump/librump/rumpnet: rumpnet_syscalls.c src/sys/rump/librump/rumpvfs: rumpvfs_syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.160 -r1.161 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.159 -r1.160 src/sys/compat/netbsd32/netbsd32_syscallargs.h \ src/sys/compat/netbsd32/netbsd32_syscalls.c cvs rdiff -u -r1.39 -r1.40 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.52 -r1.53 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.341 -r1.342 src/sys/kern/init_sysent.c cvs rdiff -u -r1.329 -r1.330 src/sys/kern/syscalls.c cvs rdiff -u -r1.45 -r1.46 src/sys/kern/syscalls_autoload.c cvs rdiff -u -r1.51 -r1.52 src/sys/kern/systrace_args.c cvs rdiff -u -r1.128 -r1.129 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.159 -r1.160 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/rumpkern_syscalls.c cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpnet/rumpnet_syscalls.c cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c cvs rdiff -u -r1.324 -r1.325 src/sys/sys/syscall.h cvs rdiff -u -r1.307 -r1.308 src/sys/sys/syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
pat_20 compat_30 compat_40 compat_50 compat_60 compat_70 compat_80 compat_90 compat_100" +compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14 compat_15 compat_16 compat_20 compat_30 compat_40 compat_50 compat_60 compat_70 compat_80 compat_90 compat_100 compat_110" libcompatopts="" switchname="sysent" Index: src/sys/kern/syscalls.master diff -u src/sys/kern/syscalls.master:1.311 src/sys/kern/syscalls.master:1.312 --- src/sys/kern/syscalls.master:1.311 Fri Jul 28 14:19:01 2023 +++ src/sys/kern/syscalls.master Sun May 19 18:25:48 2024 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.311 2023/07/28 18:19:01 christos Exp $ + $NetBSD: syscalls.master,v 1.312 2024/05/19 22:25:48 christos Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -954,7 +954,8 @@ ; 452 only ever appeared in 5.99.x and can be reused after netbsd-7 452 OBSOL 5.99 quotactl 453 STD RUMP { int|sys||pipe2(int *fildes, int flags); } -454 STD RUMP { int|sys||dup3(int from, int to, int flags); } +454 COMPAT_110 MODULAR compat_110 RUMP \ + { int|sys||dup3(int from, int to, int flags); } 455 STD RUMP { int|sys||kqueue1(int flags); } 456 STD RUMP { int|sys||paccept(int s, struct sockaddr *name, \ socklen_t *anamelen, const sigset_t *mask, \ @@ -1063,3 +1064,4 @@ struct epoll_event *events, int maxevents, \ const struct timespec *timeout, \ const sigset_t *sigmask); } +505 STD RUMP { int|sys|110|dup3(int from, int to, int flags); } Index: src/sys/modules/Makefile diff -u src/sys/modules/Makefile:1.286 src/sys/modules/Makefile:1.287 --- src/sys/modules/Makefile:1.286 Thu May 9 08:09:59 2024 +++ src/sys/modules/Makefile Sun May 19 18:25:49 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.286 2024/05/09 12:09:59 pho Exp $ +# $NetBSD: Makefile,v 1.287 2024/05/19 22:25:49 christos Exp $ .include @@ -12,6 +12,7 @@ SUBDIR+= compat_43 compat_sysctl_09_43 SUBDIR+= compat_09 compat_10 compat_12 compat_13 compat_14 SUBDIR+= compat_16 compat_20 compat_30 compat_40 compat_50 SUBDIR+= compat_60 compat_70 compat_80 compat_90 compat_100 +SUBDIR+= compat_110 SUBDIR+= compat_sysv_10 compat_sysv_14 compat_sysv_50 @@ -318,6 +319,7 @@ SUBDIR+= compat_netbsd32_20 compat_netbs SUBDIR+= compat_netbsd32_40 compat_netbsd32_50 SUBDIR+= compat_netbsd32_60 compat_netbsd32_80 SUBDIR+= compat_netbsd32_90 compat_netbsd32_100 +SUBDIR+= compat_netbsd32_110 SUBDIR+= compat_netbsd32_43 SUBDIR+= compat_netbsd32_coredump SUBDIR+= compat_netbsd32_mqueue Index: src/sys/rump/Makefile.rump diff -u src/sys/rump/Makefile.rump:1.136 src/sys/rump/Makefile.rump:1.137 --- src/sys/rump/Makefile.rump:1.136 Sun Feb 4 13:52:36 2024 +++ src/sys/rump/Makefile.rump Sun May 19 18:25:49 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.rump,v 1.136 2024/02/04 18:52:36 andvar Exp $ +# $NetBSD: Makefile.rump,v 1.137 2024/05/19 22:25:49 christos Exp $ # .if !defined(_RUMP_MK) @@ -48,7 +48,7 @@ CPPFLAGS+= -DMIPS1=1 # which NetBSD compat to build RUMP_NBCOMPAT?=default .if ${RUMP_NBCOMPAT} == "all" || ${RUMP_NBCOMPAT} == "default" -RUMP_NBCOMPAT= 50 60 70 80 90 100 +RUMP_NBCOMPAT= 50 60 70 80 90 100 110 .endif .if ${RUMP_NBCOMPAT} == "none" RUMP_NBCOMPAT= Added files: Index: src/lib/libc/compat/sys/compat_dup3.c diff -u /dev/null src/lib/libc/compat/sys/compat_dup3.c:1.1 --- /dev/null Sun May 19 18:25:49 2024 +++ src/lib/libc/compat/sys/compat_dup3.c Sun May 19 18:25:48 2024 @@ -0,0 +1,62 @@ +/* $NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $ */ + +/*- + * Copyright (c) 2024 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Christos Zoulas. + * + * 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 NE
CVS commit: src
Module Name:src Committed By: christos Date: Sun May 19 22:25:49 UTC 2024 Modified Files: src/include: unistd.h src/lib/libc/compat/include: unistd.h src/lib/libc/compat/sys: Makefile.inc src/lib/libc/sys: Makefile.inc src/sys/compat/common: compat_mod.h files.common src/sys/compat/netbsd32: files.netbsd32 netbsd32_netbsd.c syscalls.conf syscalls.master src/sys/conf: files src/sys/kern: sys_descrip.c syscalls.conf syscalls.master src/sys/modules: Makefile src/sys/rump: Makefile.rump Added Files: src/lib/libc/compat/sys: compat_dup3.c src/sys/compat/common: compat_110_mod.c sys_decrip_110.c src/sys/compat/netbsd32: netbsd32_compat_110.c src/sys/conf: compat_netbsd110.config src/sys/modules/compat_110: Makefile src/sys/modules/compat_netbsd32_110: Makefile Log Message: version dup3 To generate a diff of this commit: cvs rdiff -u -r1.164 -r1.165 src/include/unistd.h cvs rdiff -u -r1.3 -r1.4 src/lib/libc/compat/include/unistd.h cvs rdiff -u -r1.11 -r1.12 src/lib/libc/compat/sys/Makefile.inc cvs rdiff -u -r0 -r1.1 src/lib/libc/compat/sys/compat_dup3.c cvs rdiff -u -r1.253 -r1.254 src/lib/libc/sys/Makefile.inc cvs rdiff -u -r0 -r1.1 src/sys/compat/common/compat_110_mod.c \ src/sys/compat/common/sys_decrip_110.c cvs rdiff -u -r1.10 -r1.11 src/sys/compat/common/compat_mod.h cvs rdiff -u -r1.11 -r1.12 src/sys/compat/common/files.common cvs rdiff -u -r1.55 -r1.56 src/sys/compat/netbsd32/files.netbsd32 cvs rdiff -u -r0 -r1.1 src/sys/compat/netbsd32/netbsd32_compat_110.c cvs rdiff -u -r1.235 -r1.236 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.18 -r1.19 src/sys/compat/netbsd32/syscalls.conf cvs rdiff -u -r1.144 -r1.145 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r0 -r1.1 src/sys/conf/compat_netbsd110.config cvs rdiff -u -r1.1312 -r1.1313 src/sys/conf/files cvs rdiff -u -r1.49 -r1.50 src/sys/kern/sys_descrip.c cvs rdiff -u -r1.32 -r1.33 src/sys/kern/syscalls.conf cvs rdiff -u -r1.311 -r1.312 src/sys/kern/syscalls.master cvs rdiff -u -r1.286 -r1.287 src/sys/modules/Makefile cvs rdiff -u -r0 -r1.1 src/sys/modules/compat_110/Makefile cvs rdiff -u -r0 -r1.1 src/sys/modules/compat_netbsd32_110/Makefile cvs rdiff -u -r1.136 -r1.137 src/sys/rump/Makefile.rump Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: christos Date: Sun May 19 16:04:46 UTC 2024 Modified Files: src/lib/libc/sys: dup.2 Log Message: Amend for oldfd == newfd returning EINVAL in dup3 To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/lib/libc/sys/dup.2 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/sys/dup.2 diff -u src/lib/libc/sys/dup.2:1.33 src/lib/libc/sys/dup.2:1.34 --- src/lib/libc/sys/dup.2:1.33 Mon Jul 3 17:32:50 2017 +++ src/lib/libc/sys/dup.2 Sun May 19 12:04:46 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: dup.2,v 1.33 2017/07/03 21:32:50 wiz Exp $ +.\" $NetBSD: dup.2,v 1.34 2024/05/19 16:04:46 christos Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" -.Dd December 24, 2013 +.Dd May 19, 2024 .Dt DUP 2 .Os .Sh NAME @@ -117,7 +117,14 @@ and can to some extent be adjusted with .Pp The .Fn dup3 -call includes an additional +call fails and returns +.Er EINVAL +if the numeric value in the +.Ar oldfd +argument is equal to the one in the +.Ar newfd +argument. +It also includes an additional .Fa flags argument supporting a subset of the .Xr open 2 @@ -207,11 +214,15 @@ and .Fa newfd is not in the range of valid file descriptors. .It Bq Er EINVAL -.Fa flags -contained an invalid value. -Only +In the .Fn dup3 -can generate this error. +call either the +.Fa flags +argument contained an invalid value or the +.Ar oldfd +argument is equal to the +.Ar newfd +argument. .It Bq Er EMFILE Too many descriptors are active. Only
CVS commit: src/lib/libc/sys
Module Name:src Committed By: christos Date: Sun May 19 16:04:46 UTC 2024 Modified Files: src/lib/libc/sys: dup.2 Log Message: Amend for oldfd == newfd returning EINVAL in dup3 To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/lib/libc/sys/dup.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: christos Date: Sun May 19 15:56:55 UTC 2024 Modified Files: src/sys/kern: sys_descrip.c Log Message: PR/58266: Collin Funk: Fail if from == to, like FreeBSD and Linux. The test is done in dup3 before any other tests so even if a bad descriptor it is passed we will return EINVAL not EBADFD like Linux does. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/sys_descrip.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/kern/sys_descrip.c diff -u src/sys/kern/sys_descrip.c:1.48 src/sys/kern/sys_descrip.c:1.49 --- src/sys/kern/sys_descrip.c:1.48 Sun Jul 9 22:31:55 2023 +++ src/sys/kern/sys_descrip.c Sun May 19 11:56:55 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_descrip.c,v 1.48 2023/07/10 02:31:55 christos Exp $ */ +/* $NetBSD: sys_descrip.c,v 1.49 2024/05/19 15:56:55 christos Exp $ */ /*- * Copyright (c) 2008, 2020 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sys_descrip.c,v 1.48 2023/07/10 02:31:55 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_descrip.c,v 1.49 2024/05/19 15:56:55 christos Exp $"); #include #include @@ -156,6 +156,8 @@ sys_dup3(struct lwp *l, const struct sys syscallarg(int) to; syscallarg(int) flags; } */ + if (SCARG(uap, from) == SCARG(uap, to)) + return EINVAL; return dodup(l, SCARG(uap, from), SCARG(uap, to), SCARG(uap, flags), retval); }
CVS commit: src/sys/kern
Module Name:src Committed By: christos Date: Sun May 19 15:56:55 UTC 2024 Modified Files: src/sys/kern: sys_descrip.c Log Message: PR/58266: Collin Funk: Fail if from == to, like FreeBSD and Linux. The test is done in dup3 before any other tests so even if a bad descriptor it is passed we will return EINVAL not EBADFD like Linux does. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/sys_descrip.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/ia64/include
Module Name:src Committed By: christos Date: Sat May 18 19:57:03 UTC 2024 Modified Files: src/sys/arch/ia64/include: mcontext.h Log Message: allow things to compile again To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/ia64/include/mcontext.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/ia64/include/mcontext.h diff -u src/sys/arch/ia64/include/mcontext.h:1.12 src/sys/arch/ia64/include/mcontext.h:1.13 --- src/sys/arch/ia64/include/mcontext.h:1.12 Mon Jun 29 13:09:33 2020 +++ src/sys/arch/ia64/include/mcontext.h Sat May 18 15:57:03 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.12 2020/06/29 17:09:33 scole Exp $ */ +/* $NetBSD: mcontext.h,v 1.13 2024/05/18 19:57:03 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -117,6 +117,11 @@ typedef struct __mcontext { #define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.mc_scratch.gr8) /* gregs[8] */ #define _UC_MACHINE_SET_PC(uc, pc) (uc)->uc_mcontext.mc_special.iip = (pc) +#define _UC_TLSBASE _UC_MD_BIT16 +#define _UC_SETSTACK _UC_MD_BIT17 +#define _UC_CLRSTACK _UC_MD_BIT18 + + #if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ defined(__LIBPTHREAD_SOURCE__) #include
CVS commit: src/sys/arch/ia64/include
Module Name:src Committed By: christos Date: Sat May 18 19:57:03 UTC 2024 Modified Files: src/sys/arch/ia64/include: mcontext.h Log Message: allow things to compile again To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/ia64/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common/bootimage
Module Name:src Committed By: christos Date: Sat May 18 02:03:17 UTC 2024 Modified Files: src/distrib/common/bootimage: Makefile.bootimage Log Message: include all extra flavors of the kernel and use the proper variable for the machine dependent installation directory. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/distrib/common/bootimage/Makefile.bootimage Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common/bootimage
Module Name:src Committed By: christos Date: Sat May 18 02:03:17 UTC 2024 Modified Files: src/distrib/common/bootimage: Makefile.bootimage Log Message: include all extra flavors of the kernel and use the proper variable for the machine dependent installation directory. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/distrib/common/bootimage/Makefile.bootimage Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/bootimage/Makefile.bootimage diff -u src/distrib/common/bootimage/Makefile.bootimage:1.36 src/distrib/common/bootimage/Makefile.bootimage:1.37 --- src/distrib/common/bootimage/Makefile.bootimage:1.36 Thu May 16 11:46:42 2024 +++ src/distrib/common/bootimage/Makefile.bootimage Fri May 17 22:03:17 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.bootimage,v 1.36 2024/05/16 15:46:42 christos Exp $ +# $NetBSD: Makefile.bootimage,v 1.37 2024/05/18 02:03:17 christos Exp $ # # Copyright (c) 2009, 2010, 2011 Izumi Tsutsui. All rights reserved. # @@ -433,12 +433,13 @@ ${TARGETFS}: prepare_md_post ${WORKFSTAB .if defined(SPEC_EXTRA) cat ${SPEC_EXTRA} >> ${WORKSPEC} .endif - if [ -f ${WORKDIR}/netbsd.gdb ]; then \ - echo "./netbsd.gdb type=file uname=root gname=wheel mode=0444" \ - >> ${WORKSPEC}; \ - fi - if [ -d ${WORKDIR}/${MACHINE} ]; then \ - ${MAKESPEC} -d ${WORKDIR} ${MACHINE} >> ${WORKSPEC}; \ + for i in ${WORKDIR}/netbsd.*; do \ + if [ -e $$i ]; then \ + echo "./$$(basename $$i) type=file uname=root gname=wheel mode=0444" >> ${WORKSPEC}; \ + fi; \ + done + if [ -d ${WORKDIR}/${RELEASEMACHINEDIR} ]; then \ + ${MAKESPEC} -d ${WORKDIR} ${RELEASEMACHINEDIR} >> ${WORKSPEC}; \ fi @echo Creating rootfs... # XXX /var/spool/ftp/hidden is unreadable
CVS commit: src/distrib
Module Name:src Committed By: christos Date: Fri May 17 21:31:10 UTC 2024 Modified Files: src/distrib/common: Makefile.image src/distrib/evbarm/instkernel/sshramdisk: Makefile Log Message: use IMAGESPECEXTRA to include libdata and don't include IMAGERUNTIME To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/distrib/common/Makefile.image cvs rdiff -u -r1.27 -r1.28 src/distrib/evbarm/instkernel/sshramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib
Module Name:src Committed By: christos Date: Fri May 17 21:31:10 UTC 2024 Modified Files: src/distrib/common: Makefile.image src/distrib/evbarm/instkernel/sshramdisk: Makefile Log Message: use IMAGESPECEXTRA to include libdata and don't include IMAGERUNTIME To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/distrib/common/Makefile.image cvs rdiff -u -r1.27 -r1.28 src/distrib/evbarm/instkernel/sshramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/Makefile.image diff -u src/distrib/common/Makefile.image:1.43 src/distrib/common/Makefile.image:1.44 --- src/distrib/common/Makefile.image:1.43 Fri May 17 15:54:28 2024 +++ src/distrib/common/Makefile.image Fri May 17 17:31:10 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.image,v 1.43 2024/05/17 19:54:28 christos Exp $ +# $NetBSD: Makefile.image,v 1.44 2024/05/17 21:31:10 christos Exp $ # # Makefile snippet to build a tree from the provided lists, # and make an ffs file system image from that tree @@ -107,8 +107,7 @@ ${IMAGE}: ${WORKBUILT} ${IMAGEPREBUILD} .endif if [ "X${IMAGERUNTIME}" != "X" ]; then\ - release_destdir=${WORKDIR};\ - cd $$release_destdir; \ + release_destdir=${CUROBJDIR}/${WORKDIR}; \ cd ${DESTDIR}; \ for imge in ${IMAGERUNTIME};\ do \ @@ -117,7 +116,7 @@ ${IMAGE}: ${WORKBUILT} done; \ cd "${CUROBJDIR}"; \ fi - for i in ${IMAGERUNTIME} ${IMAGESPECEXTRA}; do \ + for i in ${IMAGESPECEXTRA}; do \ if [ -n "$$i" ] && [ -e ${WORKDIR}/$$i ]; then \ ${MAKESPEC} -d ${WORKDIR} $$i >> ${WORKSPEC}; \ fi; \ Index: src/distrib/evbarm/instkernel/sshramdisk/Makefile diff -u src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.27 src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.28 --- src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.27 Fri May 17 16:26:48 2024 +++ src/distrib/evbarm/instkernel/sshramdisk/Makefile Fri May 17 17:31:10 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2024/05/17 20:26:48 christos Exp $ +# $NetBSD: Makefile,v 1.28 2024/05/17 21:31:10 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -30,6 +30,7 @@ IMAGEDEPENDS= ${CRUNCHBIN} \ ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ ${DISTRIBDIR}/common/services IMAGERUNTIME= libdata/firmware +IMAGESPECEXTRA= libdata # Use stubs to eliminate some large stuff from libc HACKSRC= ${DISTRIBDIR}/utils/libhack
CVS commit: src/distrib
Module Name:src Committed By: christos Date: Fri May 17 20:27:09 UTC 2024 Modified Files: src/distrib/sun2/ramdisk: Makefile src/distrib/sun3/ramdisk: Makefile Log Message: Add /dev/pipe to the spec list using IMAGESPECEXTRA To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/distrib/sun2/ramdisk/Makefile cvs rdiff -u -r1.41 -r1.42 src/distrib/sun3/ramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sun2/ramdisk/Makefile diff -u src/distrib/sun2/ramdisk/Makefile:1.27 src/distrib/sun2/ramdisk/Makefile:1.28 --- src/distrib/sun2/ramdisk/Makefile:1.27 Fri Jun 18 16:30:58 2021 +++ src/distrib/sun2/ramdisk/Makefile Fri May 17 16:27:09 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2021/06/18 20:30:58 mrg Exp $ +# $NetBSD: Makefile,v 1.28 2024/05/17 20:27:09 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -33,6 +33,7 @@ CRUNCHBIN= rd_bin LISTS= ${.CURDIR}/list MTREECONF= ${.CURDIR}/mtree.conf IMAGEENDIAN= be +IMAGESPECEXTRA= dev/pipe MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 IMAGEDEPENDS= ${CRUNCHBIN} \ fstab passwd protocols ${DISTRIBDIR}/common/services \ Index: src/distrib/sun3/ramdisk/Makefile diff -u src/distrib/sun3/ramdisk/Makefile:1.41 src/distrib/sun3/ramdisk/Makefile:1.42 --- src/distrib/sun3/ramdisk/Makefile:1.41 Wed Feb 6 23:33:58 2019 +++ src/distrib/sun3/ramdisk/Makefile Fri May 17 16:27:09 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2019/02/07 04:33:58 mrg Exp $ +# $NetBSD: Makefile,v 1.42 2024/05/17 20:27:09 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -6,6 +6,7 @@ IMAGE= ramdisk.fs IMAGESIZE= 660k +IMAGESPECEXTRA= dev/pipe MAKEFS_FLAGS+= -f 6 -o density=3500 WARNS= 1
CVS commit: src/distrib
Module Name:src Committed By: christos Date: Fri May 17 20:27:09 UTC 2024 Modified Files: src/distrib/sun2/ramdisk: Makefile src/distrib/sun3/ramdisk: Makefile Log Message: Add /dev/pipe to the spec list using IMAGESPECEXTRA To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/distrib/sun2/ramdisk/Makefile cvs rdiff -u -r1.41 -r1.42 src/distrib/sun3/ramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/evbarm/instkernel/sshramdisk
Module Name:src Committed By: christos Date: Fri May 17 20:26:48 UTC 2024 Modified Files: src/distrib/evbarm/instkernel/sshramdisk: Makefile Log Message: use IMAGERUNTIME to copy extra data instead of random pax commands To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/distrib/evbarm/instkernel/sshramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/evbarm/instkernel/sshramdisk/Makefile diff -u src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.26 src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.27 --- src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.26 Thu Mar 14 22:20:58 2024 +++ src/distrib/evbarm/instkernel/sshramdisk/Makefile Fri May 17 16:26:48 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2024/03/15 02:20:58 riastradh Exp $ +# $NetBSD: Makefile,v 1.27 2024/05/17 20:26:48 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -29,9 +29,7 @@ IMAGEDEPENDS= ${CRUNCHBIN} \ ${NETBSDSRCDIR}/etc/group \ ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ ${DISTRIBDIR}/common/services -IMAGEPREBUILD= \ - (cd ${DESTDIR} && ${TOOL_PAX} ${PAX_TIMESTAMP} -w libdata/firmware) \ - | (cd ${WORKDIR} && ${TOOL_PAX} -r -pp) +IMAGERUNTIME= libdata/firmware # Use stubs to eliminate some large stuff from libc HACKSRC= ${DISTRIBDIR}/utils/libhack
CVS commit: src/distrib/evbarm/instkernel/sshramdisk
Module Name:src Committed By: christos Date: Fri May 17 20:26:48 UTC 2024 Modified Files: src/distrib/evbarm/instkernel/sshramdisk: Makefile Log Message: use IMAGERUNTIME to copy extra data instead of random pax commands To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/distrib/evbarm/instkernel/sshramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Fri May 17 19:54:28 UTC 2024 Modified Files: src/distrib/common: Makefile.image Log Message: Add IMAGERUNTIME and IMAGESPECEXTRA variables To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/distrib/common/Makefile.image Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/Makefile.image diff -u src/distrib/common/Makefile.image:1.42 src/distrib/common/Makefile.image:1.43 --- src/distrib/common/Makefile.image:1.42 Thu May 16 11:46:42 2024 +++ src/distrib/common/Makefile.image Fri May 17 15:54:28 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.image,v 1.42 2024/05/16 15:46:42 christos Exp $ +# $NetBSD: Makefile.image,v 1.43 2024/05/17 19:54:28 christos Exp $ # # Makefile snippet to build a tree from the provided lists, # and make an ffs file system image from that tree @@ -16,6 +16,8 @@ # IMAGEPREBUILD additional operations to run pre image creation # IMAGEPOSTBUILD operation to run on ${IMAGE} ${.TARGET} after its built # (if this returns non zero, ${.TARGET} is removed) +# IMAGERUNTIME files/directories to copy from $DESTDIR onto the image +# IMAGESPECEXTRA files/directories to add to the spec # CRUNCHBIN name of crunchgen(1)ed binary # DESTDIR destination directory # MAKEFS_FLAGS extra options to ${TOOL_MAKEFS} @@ -34,6 +36,7 @@ _MAKEFILE_IMAGE_=1 WORKDIR?= work WORKSPEC?= work.spec WORKBUILT?= work.built +CUROBJDIR!= cd ${.CURDIR} && ${PRINTOBJDIR} .include "${DISTRIBDIR}/common/Makefile.parselist" @@ -44,6 +47,14 @@ MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}" GZIP_N_FLAG=-n .endif +MAKESPEC= ${HOST_SH} ${NETBSDSRCDIR}/etc/makespec + +.if ${MAKEVERBOSE} >= 2 +PAX_v?= -v +.else +PAX_v?= +.endif + GZIP_FLAGS= -9 ${GZIP_N_FLAG} @@ -95,6 +106,22 @@ ${IMAGE}: ${WORKBUILT} .if defined(IMAGEPREBUILD) ${IMAGEPREBUILD} .endif + if [ "X${IMAGERUNTIME}" != "X" ]; then\ + release_destdir=${WORKDIR};\ + cd $$release_destdir; \ + cd ${DESTDIR}; \ + for imge in ${IMAGERUNTIME};\ + do \ + ${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${PAX_v} \ +$${imge} $$release_destdir; \ + done; \ + cd "${CUROBJDIR}"; \ + fi + for i in ${IMAGERUNTIME} ${IMAGESPECEXTRA}; do \ + if [ -n "$$i" ] && [ -e ${WORKDIR}/$$i ]; then \ + ${MAKESPEC} -d ${WORKDIR} $$i >> ${WORKSPEC}; \ + fi; \ + done [ "${.OODATE}" = ${WORKBUILT} -a -f ${IMAGE} -a ! ${IMAGE} -ot ${WORKBUILT} ] || { \ ${_MKSHMSG_CREATE} ${.CURDIR:T}/${.TARGET}; \ rm -f ${.TARGET} ${.TARGET}.tmp; \
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Fri May 17 19:54:28 UTC 2024 Modified Files: src/distrib/common: Makefile.image Log Message: Add IMAGERUNTIME and IMAGESPECEXTRA variables To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/distrib/common/Makefile.image Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libedit
Module Name:src Committed By: christos Date: Fri May 17 02:59:09 UTC 2024 Modified Files: src/lib/libedit: el.h eln.c Log Message: When calling el_line make sure that we call the resizing function callback because el_line updates the legacy LineInfo structure and we need to notify that the cached copy of the the buffer has changed. Of course the resizing function can call el_line itself to update the buffer, so prevent recursion. Bug found by Peter Rufer at Arista. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/lib/libedit/el.h cvs rdiff -u -r1.37 -r1.38 src/lib/libedit/eln.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/libedit/el.h diff -u src/lib/libedit/el.h:1.46 src/lib/libedit/el.h:1.47 --- src/lib/libedit/el.h:1.46 Sun Aug 15 06:08:41 2021 +++ src/lib/libedit/el.h Thu May 16 22:59:08 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: el.h,v 1.46 2021/08/15 10:08:41 christos Exp $ */ +/* $NetBSD: el.h,v 1.47 2024/05/17 02:59:08 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -58,6 +58,7 @@ #define NARROW_HISTORY 0x040 #define NO_RESET 0x080 #define FIXIO 0x100 +#define FROM_ELLINE 0x200 typedef unsigned char el_action_t; /* Index to command array */ Index: src/lib/libedit/eln.c diff -u src/lib/libedit/eln.c:1.37 src/lib/libedit/eln.c:1.38 --- src/lib/libedit/eln.c:1.37 Tue Jan 11 13:30:15 2022 +++ src/lib/libedit/eln.c Thu May 16 22:59:08 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: eln.c,v 1.37 2022/01/11 18:30:15 christos Exp $ */ +/* $NetBSD: eln.c,v 1.38 2024/05/17 02:59:08 christos Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include "config.h" #if !defined(lint) && !defined(SCCSID) -__RCSID("$NetBSD: eln.c,v 1.37 2022/01/11 18:30:15 christos Exp $"); +__RCSID("$NetBSD: eln.c,v 1.38 2024/05/17 02:59:08 christos Exp $"); #endif /* not lint && not SCCSID */ #include @@ -365,6 +365,10 @@ el_line(EditLine *el) size_t offset; const wchar_t *p; + if (el->el_flags & FROM_ELLINE) + return info; + + el->el_flags |= FROM_ELLINE; info->buffer = ct_encode_string(winfo->buffer, >el_lgcyconv); offset = 0; @@ -377,6 +381,10 @@ el_line(EditLine *el) offset += ct_enc_width(*p); info->lastchar = info->buffer + offset; + if (el->el_chared.c_resizefun) + (*el->el_chared.c_resizefun)(el, el->el_chared.c_resizearg); + el->el_flags &= ~FROM_ELLINE; + return info; }
CVS commit: src/lib/libedit
Module Name:src Committed By: christos Date: Fri May 17 02:59:09 UTC 2024 Modified Files: src/lib/libedit: el.h eln.c Log Message: When calling el_line make sure that we call the resizing function callback because el_line updates the legacy LineInfo structure and we need to notify that the cached copy of the the buffer has changed. Of course the resizing function can call el_line itself to update the buffer, so prevent recursion. Bug found by Peter Rufer at Arista. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/lib/libedit/el.h cvs rdiff -u -r1.37 -r1.38 src/lib/libedit/eln.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Thu May 16 17:55:48 UTC 2024 Modified Files: src/distrib/common: Makefile.bootcd Log Message: Add more extra stuff on the cds To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/distrib/common/Makefile.bootcd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/Makefile.bootcd diff -u src/distrib/common/Makefile.bootcd:1.54 src/distrib/common/Makefile.bootcd:1.55 --- src/distrib/common/Makefile.bootcd:1.54 Tue May 14 13:17:13 2024 +++ src/distrib/common/Makefile.bootcd Thu May 16 13:55:48 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.bootcd,v 1.54 2024/05/14 17:17:13 christos Exp $ +# $NetBSD: Makefile.bootcd,v 1.55 2024/05/16 17:55:48 christos Exp $ # # Makefile snipped to create a CD/DVD ISO # @@ -324,8 +324,12 @@ image: .endif if [ ! -s ${WORKSPEC} ]; then \ ${MAKESPEC} -d cdrom . > ${WORKSPEC}; \ - elif [ -d cdrom/${MACHINE} ]; then \ - ${MAKESPEC} -d cdrom ${MACHINE} >> ${WORKSPEC}; \ + else \ + for i in ${RELEASEMACHINEDIR} source ${CDEXTRA} ${CDBUILDEXTRA}; do\ + if [ -n "$$i" ] && [ -e cdrom/$$i ]; then \ + ${MAKESPEC} -d cdrom $$i >> ${WORKSPEC}; \ + fi; \ + done; \ fi ${TOOL_MAKEFS} -N ${NETBSDSRCDIR}/etc -t cd9660 -F ${WORKSPEC} -xx \ ${MAKEFS_TIMESTAMP} ${CDMAKEFSEXTRAOPTS} -o ${_CDMAKEFSOPTIONS:Q} \
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Thu May 16 17:55:48 UTC 2024 Modified Files: src/distrib/common: Makefile.bootcd Log Message: Add more extra stuff on the cds To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/distrib/common/Makefile.bootcd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Thu May 16 15:46:42 UTC 2024 Modified Files: src/distrib/common: Makefile.image src/distrib/common/bootimage: Makefile.bootimage Log Message: Apply the -xx treatment to the rest of the ffs makefs invocations. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/distrib/common/Makefile.image cvs rdiff -u -r1.35 -r1.36 src/distrib/common/bootimage/Makefile.bootimage Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/Makefile.image diff -u src/distrib/common/Makefile.image:1.41 src/distrib/common/Makefile.image:1.42 --- src/distrib/common/Makefile.image:1.41 Tue Mar 19 20:31:54 2024 +++ src/distrib/common/Makefile.image Thu May 16 11:46:42 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.image,v 1.41 2024/03/20 00:31:54 christos Exp $ +# $NetBSD: Makefile.image,v 1.42 2024/05/16 15:46:42 christos Exp $ # # Makefile snippet to build a tree from the provided lists, # and make an ffs file system image from that tree @@ -99,7 +99,7 @@ ${IMAGE}: ${WORKBUILT} ${_MKSHMSG_CREATE} ${.CURDIR:T}/${.TARGET}; \ rm -f ${.TARGET} ${.TARGET}.tmp; \ ${TOOL_MAKEFS} -t ffs -B ${IMAGEENDIAN} -s ${IMAGESIZE} -F ${WORKSPEC} \ - ${MAKEFS_TIMESTAMP} -N ${NETBSDSRCDIR}/etc ${IMGMAKEFSOPTIONS} \ + -xx ${MAKEFS_TIMESTAMP} -N ${NETBSDSRCDIR}/etc ${IMGMAKEFSOPTIONS} \ -o optimization=space,minfree=0 \ ${MAKEFS_FLAGS} ${.TARGET}.tmp ${WORKDIR} \ && mv -f ${.TARGET}.tmp ${.TARGET}; \ Index: src/distrib/common/bootimage/Makefile.bootimage diff -u src/distrib/common/bootimage/Makefile.bootimage:1.35 src/distrib/common/bootimage/Makefile.bootimage:1.36 --- src/distrib/common/bootimage/Makefile.bootimage:1.35 Mon Apr 22 10:41:24 2024 +++ src/distrib/common/bootimage/Makefile.bootimage Thu May 16 11:46:42 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.bootimage,v 1.35 2024/04/22 14:41:24 nia Exp $ +# $NetBSD: Makefile.bootimage,v 1.36 2024/05/16 15:46:42 christos Exp $ # # Copyright (c) 2009, 2010, 2011 Izumi Tsutsui. All rights reserved. # @@ -171,6 +171,8 @@ DD?= dd MKDIR?= mkdir -p RM?= rm +MAKESPEC= ${HOST_SH} ${NETBSDSRCDIR}/etc/makespec + # # common definitions for image # @@ -351,6 +353,7 @@ ${WORKFSTAB}: # create root file system for the image # ${TARGETFS}: prepare_md_post ${WORKFSTAB} + @${RM} -f ${WORKSPEC} @if [ ! -d ${RELEASEDIR}/${RELEASEMACHINEDIR} ]; then \ echo "Missing ${RELEASEDIR}/${RELEASEMACHINEDIR}, aborting"; \ false; \ @@ -413,11 +416,11 @@ ${TARGETFS}: prepare_md_post ${WORKFSTAB @if [ -f ${_SRC} ]; then \ echo ${INSTALL} ${COPY} -m 0644 ${_SRC} ${WORKDIR}/${_TARGET}; \ ${INSTALL} ${COPY} -m 0644 ${_SRC} ${WORKDIR}/${_TARGET}; \ + echo "./${_TARGET} type=file uname=root gname=wheel mode=0555" >> ${WORKSPEC}; \ fi .endfor .endif @echo Preparing spec files for makefs... - ${RM} -f ${WORKSPEC} cat ${WORKDIR}/etc/mtree/* | \ ${TOOL_SED} -e 's/ size=[0-9]*//' > ${WORKSPEC} ${HOST_SH} ${WORKDIR}/dev/MAKEDEV -s all ipty | \ @@ -430,12 +433,19 @@ ${TARGETFS}: prepare_md_post ${WORKFSTAB .if defined(SPEC_EXTRA) cat ${SPEC_EXTRA} >> ${WORKSPEC} .endif + if [ -f ${WORKDIR}/netbsd.gdb ]; then \ + echo "./netbsd.gdb type=file uname=root gname=wheel mode=0444" \ + >> ${WORKSPEC}; \ + fi + if [ -d ${WORKDIR}/${MACHINE} ]; then \ + ${MAKESPEC} -d ${WORKDIR} ${MACHINE} >> ${WORKSPEC}; \ + fi @echo Creating rootfs... # XXX /var/spool/ftp/hidden is unreadable ${CHMOD} +r ${WORKDIR}/var/spool/ftp/hidden ${TOOL_MAKEFS} -M ${FSSIZE} -m ${FSSIZE} \ -B ${TARGET_ENDIANNESS} \ - -F ${WORKSPEC} -N ${WORKDIR}/etc\ + -xx -F ${WORKSPEC} -N ${WORKDIR}/etc \ ${MAKEFS_TIMESTAMP} \ ${IMGMAKEFSOPTIONS} \ ${WORKFS} ${WORKDIR}
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Thu May 16 15:46:42 UTC 2024 Modified Files: src/distrib/common: Makefile.image src/distrib/common/bootimage: Makefile.bootimage Log Message: Apply the -xx treatment to the rest of the ffs makefs invocations. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/distrib/common/Makefile.image cvs rdiff -u -r1.35 -r1.36 src/distrib/common/bootimage/Makefile.bootimage Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/vax/cdroms/installcd
Module Name:src Committed By: christos Date: Wed May 15 16:31:36 UTC 2024 Modified Files: src/distrib/vax/cdroms/installcd: Makefile Added Files: src/distrib/vax/cdroms/installcd: spec.in Log Message: Add missing stuff for vax To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/distrib/vax/cdroms/installcd/Makefile cvs rdiff -u -r0 -r1.1 src/distrib/vax/cdroms/installcd/spec.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/vax/cdroms/installcd/Makefile diff -u src/distrib/vax/cdroms/installcd/Makefile:1.19 src/distrib/vax/cdroms/installcd/Makefile:1.20 --- src/distrib/vax/cdroms/installcd/Makefile:1.19 Fri Dec 20 14:46:51 2019 +++ src/distrib/vax/cdroms/installcd/Makefile Wed May 15 12:31:35 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2019/12/20 19:46:51 martin Exp $ +# $NetBSD: Makefile,v 1.20 2024/05/15 16:31:35 christos Exp $ CDBASE= vaxcd # gives ${CDBASE}.iso CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR CDDEV_POPULATE= true # populate /dev on the CD @@ -11,6 +11,8 @@ CD_SETS= base etc # no modules for VAX .include SYSINSTDIR!= cd ${.CURDIR}/../../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR} +SPEC_EXTRA:=${.PARSEDIR}/spec.in + # prepare mutliuser install environment image_md_pre: ${RM} -f cdrom/boot Added files: Index: src/distrib/vax/cdroms/installcd/spec.in diff -u /dev/null src/distrib/vax/cdroms/installcd/spec.in:1.1 --- /dev/null Wed May 15 12:31:36 2024 +++ src/distrib/vax/cdroms/installcd/spec.in Wed May 15 12:31:35 2024 @@ -0,0 +1,5 @@ +./install.sh type=file uname=root gname=wheel mode=755 +./mnt2 type=dir uname=root gname=wheel mode=755 +./netbsd type=file uname=root gname=wheel mode=644 +./targetroot type=dir uname=root gname=wheel mode=755 +./etc/gettytab type=link uname=root gname=wheel mode=755
CVS commit: src/distrib/vax/cdroms/installcd
Module Name:src Committed By: christos Date: Wed May 15 16:31:36 UTC 2024 Modified Files: src/distrib/vax/cdroms/installcd: Makefile Added Files: src/distrib/vax/cdroms/installcd: spec.in Log Message: Add missing stuff for vax To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/distrib/vax/cdroms/installcd/Makefile cvs rdiff -u -r0 -r1.1 src/distrib/vax/cdroms/installcd/spec.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sparc64/cdroms
Module Name:src Committed By: christos Date: Wed May 15 16:29:54 UTC 2024 Modified Files: src/distrib/sparc64/cdroms/installcd: Makefile src/distrib/sparc64/cdroms/installdvd: Makefile Added Files: src/distrib/sparc64/cdroms: Makefile.cdrom spec.in Log Message: Factor out common stuff. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/distrib/sparc64/cdroms/Makefile.cdrom \ src/distrib/sparc64/cdroms/spec.in cvs rdiff -u -r1.33 -r1.34 src/distrib/sparc64/cdroms/installcd/Makefile cvs rdiff -u -r1.2 -r1.3 src/distrib/sparc64/cdroms/installdvd/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Tue May 14 17:17:13 UTC 2024 Modified Files: src/distrib/common: Makefile.bootcd Log Message: check if the ${MACHINE} directory exists To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/distrib/common/Makefile.bootcd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/Makefile.bootcd diff -u src/distrib/common/Makefile.bootcd:1.53 src/distrib/common/Makefile.bootcd:1.54 --- src/distrib/common/Makefile.bootcd:1.53 Tue May 14 10:58:05 2024 +++ src/distrib/common/Makefile.bootcd Tue May 14 13:17:13 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.bootcd,v 1.53 2024/05/14 14:58:05 christos Exp $ +# $NetBSD: Makefile.bootcd,v 1.54 2024/05/14 17:17:13 christos Exp $ # # Makefile snipped to create a CD/DVD ISO # @@ -324,7 +324,7 @@ image: .endif if [ ! -s ${WORKSPEC} ]; then \ ${MAKESPEC} -d cdrom . > ${WORKSPEC}; \ - else \ + elif [ -d cdrom/${MACHINE} ]; then \ ${MAKESPEC} -d cdrom ${MACHINE} >> ${WORKSPEC}; \ fi ${TOOL_MAKEFS} -N ${NETBSDSRCDIR}/etc -t cd9660 -F ${WORKSPEC} -xx \
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Tue May 14 17:17:13 UTC 2024 Modified Files: src/distrib/common: Makefile.bootcd Log Message: check if the ${MACHINE} directory exists To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/distrib/common/Makefile.bootcd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/i386/cdroms
Module Name:src Committed By: christos Date: Tue May 14 17:15:13 UTC 2024 Modified Files: src/distrib/i386/cdroms: Makefile.cdrom Added Files: src/distrib/i386/cdroms: spec.in Log Message: Add the same extra stuff from amd64 To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/distrib/i386/cdroms/Makefile.cdrom cvs rdiff -u -r0 -r1.1 src/distrib/i386/cdroms/spec.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/i386/cdroms/Makefile.cdrom diff -u src/distrib/i386/cdroms/Makefile.cdrom:1.43 src/distrib/i386/cdroms/Makefile.cdrom:1.44 --- src/distrib/i386/cdroms/Makefile.cdrom:1.43 Fri Apr 26 13:36:32 2024 +++ src/distrib/i386/cdroms/Makefile.cdrom Tue May 14 13:15:13 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.cdrom,v 1.43 2024/04/26 17:36:32 nia Exp $ +# $NetBSD: Makefile.cdrom,v 1.44 2024/05/14 17:15:13 christos Exp $ .include @@ -12,6 +12,8 @@ CDKERNELS= netbsd-GENERIC.gz netbs CDRELEASE_NOISOS= true CD_SETS+= base etc gpufw +SPEC_EXTRA:=${.PARSEDIR}/spec.in + image_md_pre: ${RM} -f cdrom/etc/gettytab cdrom/etc/ttys cdrom/etc/rc cdrom/install.sh ${HOST_LN} -fs /tmp/gettytab cdrom/etc/gettytab Added files: Index: src/distrib/i386/cdroms/spec.in diff -u /dev/null src/distrib/i386/cdroms/spec.in:1.1 --- /dev/null Tue May 14 13:15:13 2024 +++ src/distrib/i386/cdroms/spec.in Tue May 14 13:15:13 2024 @@ -0,0 +1,6 @@ +./boot type=file uname=root gname=wheel mode=644 +./install.sh type=file uname=root gname=wheel mode=755 +./mnt2 type=dir uname=root gname=wheel mode=755 +./netbsd type=file uname=root gname=wheel mode=644 +./targetroot type=dir uname=root gname=wheel mode=755 +./etc/gettytab type=link uname=root gname=wheel mode=755
CVS commit: src/distrib/i386/cdroms
Module Name:src Committed By: christos Date: Tue May 14 17:15:13 UTC 2024 Modified Files: src/distrib/i386/cdroms: Makefile.cdrom Added Files: src/distrib/i386/cdroms: spec.in Log Message: Add the same extra stuff from amd64 To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/distrib/i386/cdroms/Makefile.cdrom cvs rdiff -u -r0 -r1.1 src/distrib/i386/cdroms/spec.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/amd64/cdroms
Module Name:src Committed By: christos Date: Tue May 14 14:58:41 UTC 2024 Modified Files: src/distrib/amd64/cdroms: Makefile.cdrom Added Files: src/distrib/amd64/cdroms: spec.in Log Message: Add the extra spec for the amd64 cdroms To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/distrib/amd64/cdroms/Makefile.cdrom cvs rdiff -u -r0 -r1.1 src/distrib/amd64/cdroms/spec.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/amd64/cdroms/Makefile.cdrom diff -u src/distrib/amd64/cdroms/Makefile.cdrom:1.28 src/distrib/amd64/cdroms/Makefile.cdrom:1.29 --- src/distrib/amd64/cdroms/Makefile.cdrom:1.28 Fri Apr 26 13:36:32 2024 +++ src/distrib/amd64/cdroms/Makefile.cdrom Tue May 14 10:58:41 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.cdrom,v 1.28 2024/04/26 17:36:32 nia Exp $ +# $NetBSD: Makefile.cdrom,v 1.29 2024/05/14 14:58:41 christos Exp $ .include .include @@ -22,6 +22,8 @@ CD_SETS+= base etc gpufw CD_SETS+= modules .endif +SPEC_EXTRA:=${.PARSEDIR}/spec.in + ${EFIBOOTIMG}: ${DESTDIR}/usr/mdec/bootx64.efi ${DESTDIR}/usr/mdec/bootia32.efi ${RM} -f ${EFIBOOTIMG} ${RM} -rf efiboot/EFI/boot Added files: Index: src/distrib/amd64/cdroms/spec.in diff -u /dev/null src/distrib/amd64/cdroms/spec.in:1.1 --- /dev/null Tue May 14 10:58:41 2024 +++ src/distrib/amd64/cdroms/spec.in Tue May 14 10:58:41 2024 @@ -0,0 +1,6 @@ +./boot type=file uname=root gname=wheel mode=644 +./install.sh type=file uname=root gname=wheel mode=755 +./mnt2 type=dir uname=root gname=wheel mode=755 +./netbsd type=file uname=root gname=wheel mode=644 +./targetroot type=dir uname=root gname=wheel mode=755 +./etc/gettytab type=link uname=root gname=wheel mode=755
CVS commit: src/distrib/amd64/cdroms
Module Name:src Committed By: christos Date: Tue May 14 14:58:41 UTC 2024 Modified Files: src/distrib/amd64/cdroms: Makefile.cdrom Added Files: src/distrib/amd64/cdroms: spec.in Log Message: Add the extra spec for the amd64 cdroms To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/distrib/amd64/cdroms/Makefile.cdrom cvs rdiff -u -r0 -r1.1 src/distrib/amd64/cdroms/spec.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Tue May 14 14:58:05 UTC 2024 Modified Files: src/distrib/common: Makefile.bootcd Log Message: Put back -xx (this will break some archs but we'll fix them) and automatically generate the spec for the machine-specific portions of the cdrom. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/distrib/common/Makefile.bootcd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/common
Module Name:src Committed By: christos Date: Tue May 14 14:58:05 UTC 2024 Modified Files: src/distrib/common: Makefile.bootcd Log Message: Put back -xx (this will break some archs but we'll fix them) and automatically generate the spec for the machine-specific portions of the cdrom. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/distrib/common/Makefile.bootcd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/common/Makefile.bootcd diff -u src/distrib/common/Makefile.bootcd:1.52 src/distrib/common/Makefile.bootcd:1.53 --- src/distrib/common/Makefile.bootcd:1.52 Thu May 9 12:09:03 2024 +++ src/distrib/common/Makefile.bootcd Tue May 14 10:58:05 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.bootcd,v 1.52 2024/05/09 16:09:03 christos Exp $ +# $NetBSD: Makefile.bootcd,v 1.53 2024/05/14 14:58:05 christos Exp $ # # Makefile snipped to create a CD/DVD ISO # @@ -285,7 +285,7 @@ copy-releasedir: fi;\ ${CDSETSCMD} ./maketars -i "${CUROBJDIR}/cdrom" \ ${CD_METALOG.unpriv} ${mtunpriv} -N ${NETBSDSRCDIR}/etc \ - -F "${CUROBJDIR}/cdrom/etc/mtree" \ + -xx -F "${CUROBJDIR}/cdrom/etc/mtree" \ -d "${DESTDIR:S,^$,/,}" ${set} .endfor if [ -d "${CUROBJDIR}/cdrom/var/spool/ftp/hidden" ]; then \ @@ -322,8 +322,12 @@ image: .if defined(SPEC_EXTRA) cat ${SPEC_EXTRA} >> ${WORKSPEC} .endif - if [ ! -s ${WORKSPEC} ]; then ${MAKESPEC} cdrom > ${WORKSPEC}; fi - ${TOOL_MAKEFS} -N ${NETBSDSRCDIR}/etc -t cd9660 -F ${WORKSPEC} \ + if [ ! -s ${WORKSPEC} ]; then \ + ${MAKESPEC} -d cdrom . > ${WORKSPEC}; \ + else \ + ${MAKESPEC} -d cdrom ${MACHINE} >> ${WORKSPEC}; \ + fi + ${TOOL_MAKEFS} -N ${NETBSDSRCDIR}/etc -t cd9660 -F ${WORKSPEC} -xx \ ${MAKEFS_TIMESTAMP} ${CDMAKEFSEXTRAOPTS} -o ${_CDMAKEFSOPTIONS:Q} \ ${CDIMAGE} cdrom
CVS commit: src/etc
Module Name:src Committed By: christos Date: Tue May 14 14:57:09 UTC 2024 Modified Files: src/etc: makespec Log Message: Allow specific subdirectories to be added to the list To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/etc/makespec Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/makespec diff -u src/etc/makespec:1.1 src/etc/makespec:1.2 --- src/etc/makespec:1.1 Tue May 7 16:30:33 2024 +++ src/etc/makespec Tue May 14 10:57:08 2024 @@ -55,17 +55,40 @@ gettype() { esac } -if [ -z "$1" ]; then - echo "Usage: $0 " 1>&2 +usage() { + echo "Usage: $0 -d ..." 1>&2 exit 1 +} + + +while getopts "d:" i; do + case $i in + d) + DIR="$OPTARG";; + *) + usage;; + esac +done + +shift $((OPTIND - 1)) + +if [ -z "$DIR" ] || [ -z "$1" ]; then + usage fi -cd "$1" -for i in $TYPES; do +cd "$DIR" + +for d; do + case $d in + .);; + *) d="./$d";; + esac + for i in $TYPES; do - t=$(gettype $i) - m=$(getmode $i) - find . -type $i -exec \ - printf "%s type=$t uname=root gname=wheel mode=$m\n" {} \; + t=$(gettype $i) + m=$(getmode $i) + find $d -type $i -exec \ + printf "%s type=$t uname=root gname=wheel mode=$m\n" {} \; + done done | sort
CVS commit: src/etc
Module Name:src Committed By: christos Date: Tue May 14 14:57:09 UTC 2024 Modified Files: src/etc: makespec Log Message: Allow specific subdirectories to be added to the list To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/etc/makespec Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/xcomp
Module Name:src Committed By: christos Date: Mon May 13 14:59:31 UTC 2024 Modified Files: src/distrib/sets/lists/xcomp: shl.mi Log Message: more Xf86misc obsolete To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/distrib/sets/lists/xcomp/shl.mi 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/xcomp/shl.mi diff -u src/distrib/sets/lists/xcomp/shl.mi:1.57 src/distrib/sets/lists/xcomp/shl.mi:1.58 --- src/distrib/sets/lists/xcomp/shl.mi:1.57 Thu Jul 14 03:41:49 2022 +++ src/distrib/sets/lists/xcomp/shl.mi Mon May 13 10:59:31 2024 @@ -1,4 +1,4 @@ -# $NetBSD: shl.mi,v 1.57 2022/07/14 07:41:49 mrg Exp $ +# $NetBSD: shl.mi,v 1.58 2024/05/13 14:59:31 christos Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -50,7 +50,7 @@ ./usr/X11R7/lib/libXvMC_pic.axcomp-libXvMC-lib xorg,picinstall,compatx11file ./usr/X11R7/lib/libXv_pic.axcomp-libXv-lib xorg,picinstall,compatx11file ./usr/X11R7/lib/libXxf86dga_pic.a xcomp-libXxf86dga-lib xorg,picinstall,compatx11file -./usr/X11R7/lib/libXxf86misc_pic.a xcomp-libXxf86misc-lib xorg,picinstall,compatx11file +./usr/X11R7/lib/libXxf86misc_pic.a xcomp-obsolete obsolete ./usr/X11R7/lib/libXxf86vm_pic.a xcomp-libXxf86vm-lib xorg,picinstall,compatx11file ./usr/X11R7/lib/libdrm_pic.axcomp-libdrm-lib xorg,picinstall,compatx11file ./usr/X11R7/lib/libdrm_radeon_pic.a xcomp-libdrm_radeon-lib xorg,picinstall,compatx11file
CVS commit: src/distrib/sets/lists/xcomp
Module Name:src Committed By: christos Date: Mon May 13 14:59:31 UTC 2024 Modified Files: src/distrib/sets/lists/xcomp: shl.mi Log Message: more Xf86misc obsolete To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/distrib/sets/lists/xcomp/shl.mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Mon May 13 14:56:44 UTC 2024 Modified Files: src/distrib/sets/lists/xcomp: mi src/distrib/sets/lists/xdebug: mi Log Message: mark more of libXxf86misc obsolete To generate a diff of this commit: cvs rdiff -u -r1.242 -r1.243 src/distrib/sets/lists/xcomp/mi cvs rdiff -u -r1.46 -r1.47 src/distrib/sets/lists/xdebug/mi 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/xcomp/mi diff -u src/distrib/sets/lists/xcomp/mi:1.242 src/distrib/sets/lists/xcomp/mi:1.243 --- src/distrib/sets/lists/xcomp/mi:1.242 Thu May 9 02:38:27 2024 +++ src/distrib/sets/lists/xcomp/mi Mon May 13 10:56:44 2024 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.242 2024/05/09 06:38:27 nia Exp $ +# $NetBSD: mi,v 1.243 2024/05/13 14:56:44 christos Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -5962,7 +5962,7 @@ ./usr/libdata/lint/llib-lXvMC.ln xcomp-libXvMC-lintlib lint,xorg ./usr/libdata/lint/llib-lXvMCW.ln xcomp-libXvMCW-lintlib lint,xorg ./usr/libdata/lint/llib-lXxf86dga.ln xcomp-libXxf86dga-lintlib lint,xorg -./usr/libdata/lint/llib-lXxf86misc.ln xcomp-libXxf86misc-lintlib lint,xorg +./usr/libdata/lint/llib-lXxf86misc.ln xcomp-obsolete obsolete ./usr/libdata/lint/llib-lXxf86vm.ln xcomp-libXxf86vm-lintlib lint,xorg ./usr/libdata/lint/llib-ldrm.lnxcomp-libdrm-lintlib lint,xorg ./usr/libdata/lint/llib-ldrm_radeon.ln xcomp-libdrm_radeon-lintlib lint,xorg Index: src/distrib/sets/lists/xdebug/mi diff -u src/distrib/sets/lists/xdebug/mi:1.46 src/distrib/sets/lists/xdebug/mi:1.47 --- src/distrib/sets/lists/xdebug/mi:1.46 Sat Feb 4 11:34:36 2023 +++ src/distrib/sets/lists/xdebug/mi Mon May 13 10:56:44 2024 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.46 2023/02/04 16:34:36 wiz Exp $ +# $NetBSD: mi,v 1.47 2024/05/13 14:56:44 christos Exp $ ./etc/mtree/set.xdebug comp-sys-root ./usr/X11R7/lib base-x11-root xorg,debuglib,compatx11dir ./usr/X11R7/lib/libEGL_g.axdebug-libEGL-debuglib xorg,debuglib,compatx11file,xorg_glamor @@ -48,7 +48,7 @@ ./usr/X11R7/lib/libXvMC_g.axdebug-libXvMC-debuglib xorg,debuglib,compatx11file ./usr/X11R7/lib/libXv_g.axdebug-libXv-debuglib xorg,debuglib,compatx11file ./usr/X11R7/lib/libXxf86dga_g.axdebug-libXxf86dga-debuglib xorg,debuglib,compatx11file -./usr/X11R7/lib/libXxf86misc_g.a xdebug-libXxf86misc-debuglib xorg,debuglib,compatx11file +./usr/X11R7/lib/libXxf86misc_g.a xdebug-obsolete obsolete ./usr/X11R7/lib/libXxf86vm_g.axdebug-libXxf86vm-debuglib xorg,debuglib,compatx11file ./usr/X11R7/lib/libdrm_g.axdebug-libdrm-debuglib xorg,debuglib,compatx11file ./usr/X11R7/lib/libdrm_radeon_g.a xdebug-libdrm_radeon-debuglib xorg,debuglib,compatx11file
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Mon May 13 14:56:44 UTC 2024 Modified Files: src/distrib/sets/lists/xcomp: mi src/distrib/sets/lists/xdebug: mi Log Message: mark more of libXxf86misc obsolete To generate a diff of this commit: cvs rdiff -u -r1.242 -r1.243 src/distrib/sets/lists/xcomp/mi cvs rdiff -u -r1.46 -r1.47 src/distrib/sets/lists/xdebug/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Sun May 12 19:54:48 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: Add forward decl for procfs include. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/compat/linux/common/linux_misc.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_misc.h diff -u src/sys/compat/linux/common/linux_misc.h:1.31 src/sys/compat/linux/common/linux_misc.h:1.32 --- src/sys/compat/linux/common/linux_misc.h:1.31 Sun May 12 15:50:42 2024 +++ src/sys/compat/linux/common/linux_misc.h Sun May 12 15:54:48 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.h,v 1.31 2024/05/12 19:50:42 christos Exp $ */ +/* $NetBSD: linux_misc.h,v 1.32 2024/05/12 19:54:48 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -174,6 +174,7 @@ __packed #ifdef _KERNEL __BEGIN_DECLS +struct linux_timeval; int bsd_to_linux_wstat(int); int linux_select1(struct lwp *, register_t *, int, fd_set *, fd_set *, fd_set *, struct linux_timeval *);
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Sun May 12 19:54:48 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: Add forward decl for procfs include. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/compat/linux/common/linux_misc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Sun May 12 19:50:42 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: fix whitespace To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux/common/linux_misc.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_misc.h diff -u src/sys/compat/linux/common/linux_misc.h:1.30 src/sys/compat/linux/common/linux_misc.h:1.31 --- src/sys/compat/linux/common/linux_misc.h:1.30 Sun May 12 13:23:10 2024 +++ src/sys/compat/linux/common/linux_misc.h Sun May 12 15:50:42 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.h,v 1.30 2024/05/12 17:23:10 christos Exp $ */ +/* $NetBSD: linux_misc.h,v 1.31 2024/05/12 19:50:42 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -94,11 +94,11 @@ struct linux_sysinfo { #define LINUX_RLIMIT_MEMLOCK 8 #define LINUX_RLIMIT_AS 9 #define LINUX_RLIMIT_LOCKS 10 -#define LINUX_RLIMIT_SIGPENDING 11 -#define LINUX_RLIMIT_MSGQUEUE 12 -#define LINUX_RLIMIT_NICE 13 -#define LINUX_RLIMIT_RTPRIO 14 -#define LINUX_RLIMIT_RTTIME 15 +#define LINUX_RLIMIT_SIGPENDING 11 +#define LINUX_RLIMIT_MSGQUEUE 12 +#define LINUX_RLIMIT_NICE 13 +#define LINUX_RLIMIT_RTPRIO 14 +#define LINUX_RLIMIT_RTTIME 15 #ifdef __mips__ /* XXX only mips32. On mips64, it's ~0ul */ #define LINUX_RLIM_INFINITY 0x7fffUL #define LINUX32_RLIM_INFINITY 0x7fffU
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Sun May 12 19:50:42 UTC 2024 Modified Files: src/sys/compat/linux/common: linux_misc.h Log Message: fix whitespace To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux/common/linux_misc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sbin/cgdconfig
Module Name:src Committed By: christos Date: Sun May 12 18:02:16 UTC 2024 Modified Files: src/sbin/cgdconfig: Makefile cgdconfig.8 cgdconfig.c params.c params.h Log Message: PR/58212: Malte Dehling: Add zfs verification method To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sbin/cgdconfig/Makefile cvs rdiff -u -r1.57 -r1.58 src/sbin/cgdconfig/cgdconfig.8 cvs rdiff -u -r1.62 -r1.63 src/sbin/cgdconfig/cgdconfig.c cvs rdiff -u -r1.34 -r1.35 src/sbin/cgdconfig/params.c cvs rdiff -u -r1.14 -r1.15 src/sbin/cgdconfig/params.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/cgdconfig/Makefile diff -u src/sbin/cgdconfig/Makefile:1.22 src/sbin/cgdconfig/Makefile:1.23 --- src/sbin/cgdconfig/Makefile:1.22 Fri Aug 12 06:49:17 2022 +++ src/sbin/cgdconfig/Makefile Sun May 12 14:02:16 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2022/08/12 10:49:17 riastradh Exp $ +# $NetBSD: Makefile,v 1.23 2024/05/12 18:02:16 christos Exp $ RUMPPRG=cgdconfig MAN= cgdconfig.8 @@ -29,4 +29,19 @@ ARGON2_NO_THREADS=1 .include "${NETBSDSRCDIR}/external/apache2/argon2/lib/libargon2/Makefile.inc" .endif +.if ${MKZFS} != "no" +CPPFLAGS+= -DHAVE_ZFS + +OSNET=${NETBSDSRCDIR}/external/cddl/osnet +CPPFLAGS.cgdconfig.c+= -I${OSNET}/include +CPPFLAGS.cgdconfig.c+= -I${OSNET}/sys +CPPFLAGS.cgdconfig.c+= -I${OSNET}/dist/head +CPPFLAGS.cgdconfig.c+= -I${OSNET}/dist/lib/libzpool/common +CPPFLAGS.cgdconfig.c+= -I${OSNET}/dist/uts/common +CPPFLAGS.cgdconfig.c+= -I${OSNET}/dist/uts/common/fs/zfs + +COPTS.cgdconfig.c+= -Wno-unknown-pragmas +COPTS.cgdconfig.c+= -Wno-strict-prototypes +.endif + .include Index: src/sbin/cgdconfig/cgdconfig.8 diff -u src/sbin/cgdconfig/cgdconfig.8:1.57 src/sbin/cgdconfig/cgdconfig.8:1.58 --- src/sbin/cgdconfig/cgdconfig.8:1.57 Fri Aug 12 06:49:47 2022 +++ src/sbin/cgdconfig/cgdconfig.8 Sun May 12 14:02:16 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: cgdconfig.8,v 1.57 2022/08/12 10:49:47 riastradh Exp $ +.\" $NetBSD: cgdconfig.8,v 1.58 2024/05/12 18:02:16 christos Exp $ .\" .\" Copyright (c) 2002, The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd November 4, 2021 +.Dd May 12, 2024 .Dt CGDCONFIG 8 .Os .Sh NAME @@ -270,6 +270,8 @@ scan for a valid Master Boot Record. scan for a valid GUID partition table. .It ffs scan for a valid FFS file system. +.It zfs +scan for a valid ZFS vdev label (if compiled with MKZFS). .It re-enter prompt for passphrase twice, and ensure entered passphrases are identical. Index: src/sbin/cgdconfig/cgdconfig.c diff -u src/sbin/cgdconfig/cgdconfig.c:1.62 src/sbin/cgdconfig/cgdconfig.c:1.63 --- src/sbin/cgdconfig/cgdconfig.c:1.62 Sun Apr 28 20:28:18 2024 +++ src/sbin/cgdconfig/cgdconfig.c Sun May 12 14:02:16 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: cgdconfig.c,v 1.62 2024/04/29 00:28:18 riastradh Exp $ */ +/* $NetBSD: cgdconfig.c,v 1.63 2024/05/12 18:02:16 christos Exp $ */ /*- * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #ifndef lint __COPYRIGHT("@(#) Copyright (c) 2002, 2003\ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: cgdconfig.c,v 1.62 2024/04/29 00:28:18 riastradh Exp $"); +__RCSID("$NetBSD: cgdconfig.c,v 1.63 2024/05/12 18:02:16 christos Exp $"); #endif #ifdef HAVE_ARGON2 @@ -73,6 +73,11 @@ __RCSID("$NetBSD: cgdconfig.c,v 1.62 202 #include +#ifdef HAVE_ZFS +#include +#include +#endif + #include "params.h" #include "pkcs5_pbkdf2.h" #include "utils.h" @@ -98,11 +103,11 @@ enum action { /* if nflag is set, do not configure/unconfigure the cgd's */ -int nflag = 0; +static int nflag = 0; /* if Sflag is set, generate shared keys */ -int Sflag = 0; +static int Sflag = 0; /* if pflag is set to PFLAG_STDIN read from stdin rather than getpass(3) */ @@ -110,7 +115,7 @@ int Sflag = 0; #define PFLAG_GETPASS_ECHO 0x02 #define PFLAG_GETPASS_MASK 0x03 #define PFLAG_STDIN 0x04 -int pflag = PFLAG_GETPASS; +static int pflag = PFLAG_GETPASS; /* * When configuring all cgds, save a cache of shared keys for key @@ -127,7 +132,7 @@ struct sharedkey { SLIST_ENTRY(sharedkey) used; int verified; }; -LIST_HEAD(, sharedkey) sharedkeys; +static LIST_HEAD(, sharedkey) sharedkeys; SLIST_HEAD(sharedkeyhits, sharedkey); static int configure(int, char **, struct params *, int); @@ -170,11 +175,14 @@ static int verify_ffs(int); static int verify_reenter(struct params *); static int verify_mbr(int); static int verify_gpt(int); +#ifdef HAVE_ZFS +static int verify_zfs(int); +#endif __dead static void usage(void); /* Verbose Framework */ -unsigned verbose = 0; +static unsigned verbose = 0; #define VERBOSE(x,y) if (verbose >= x) y #define VPRINTF(x,y) if (verbose >= x) (void)printf y @@ -636,12 +644,12 @@