From gitlab-mirror at kemper.freedesktop.org Wed Mar 30 21:08:52 2022 From: gitlab-mirror at kemper.freedesktop.org (GitLab Mirror) Date: Wed, 30 Mar 2022 21:08:52 +0000 (UTC) Subject: libbsd: Branch 'main' - 3 commits Message-ID: <20220330210853.02EBC760BC@kemper.freedesktop.org> COPYING | 3 -- man/libbsd.7 | 12 ++++++--- src/Makefile.am | 1 src/arc4random.h | 4 --- src/arc4random_openbsd.h | 61 ----------------------------------------------- src/local-elf.h | 10 +++++++ 6 files changed, 20 insertions(+), 71 deletions(-) New commits: commit 15200ec7ac97e3f169b6c2f378f0ec2f94663c9f Author: WANG Xuerui Date: Sat Sep 11 12:54:28 2021 +0800 Add LoongArch support to nlist() Closes: !13 Signed-off-by: WANG Xuerui Signed-off-by: Guillem Jover diff --git a/src/local-elf.h b/src/local-elf.h index 98a2962..1dd3b42 100644 --- a/src/local-elf.h +++ b/src/local-elf.h @@ -124,6 +124,16 @@ #define ELF_TARG_CLASS ELFCLASS64 #define ELF_TARG_DATA ELFDATA2LSB +#elif defined(__loongarch__) + +#define ELF_TARG_MACH EM_LOONGARCH +#if defined(__loongarch64) +#define ELF_TARG_CLASS ELFCLASS64 +#else +#error Unsupported ELF class +#endif +#define ELF_TARG_DATA ELFDATA2LSB + #elif defined(__m32r__) #define ELF_TARG_MACH EM_M32R commit f7465b93ec9fcb473df04e997067476ed2e7fd14 Author: Guillem Jover Date: Wed Mar 30 22:56:43 2022 +0200 man: Document when functions were added to musl in libbsd(7) The explicit_bzero(3) and reallocarray(3) functions are also present on musl libc, mention it in the superseded section. diff --git a/COPYING b/COPYING index 7fd11fa..18b996a 100644 --- a/COPYING +++ b/COPYING @@ -3,7 +3,7 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * Copyright: - Copyright ? 2004-2006, 2008-2021 Guillem Jover + Copyright ? 2004-2006, 2008-2022 Guillem Jover License: BSD-3-clause Files: diff --git a/man/libbsd.7 b/man/libbsd.7 index 9710a13..ff1ef1f 100644 --- a/man/libbsd.7 +++ b/man/libbsd.7 @@ -1,6 +1,6 @@ .\" libbsd man page .\" -.\" Copyright ? 2017-2021 Guillem Jover +.\" Copyright ? 2017-2022 Guillem Jover .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -24,7 +24,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd Feb 13, 2021 +.Dd Mar 30, 2022 .Dt LIBBSD 7 .Os .Sh NAME @@ -230,11 +230,15 @@ companion library, so it is advised to switch to use that directly instead. .It Fn explicit_bzero 3 This function is provided by .Nm glibc -2.25. +2.25, and +.Nm musl +1.1.20. .It Fn reallocarray 3 This function is provided by .Nm glibc -2.26. +2.26, and +.Nm musl +1.2.2. .El .Sh SEE ALSO .Xr arc4random 3bsd , commit e5ed5fdd62aeec980dfeb596b191f7deeb364030 Author: Guilherme Janczak Date: Fri Dec 31 08:25:08 2021 +0000 Remove arc4random() OpenBSD support The arc4random() support for OpenBSD does not build. The intention was to include any portability code so that the library could be easily ported to such systems, but it makes little sense to build it on OpenBSD where most of the functionality will be already present, or the software would have been ported anyway. [guillem at hadrons.org: Reword commit message to add rationale. ] Closes: !15 Signed-off-by: Guillem Jover diff --git a/COPYING b/COPYING index c225ede..7fd11fa 100644 --- a/COPYING +++ b/COPYING @@ -364,7 +364,6 @@ Files: man/strtonum.3bsd src/arc4random.c src/arc4random_linux.h - src/arc4random_openbsd.h src/arc4random_uniform.c src/arc4random_unix.h src/arc4random_win.h diff --git a/src/Makefile.am b/src/Makefile.am index ea0bdbe..7cf4a09 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,7 +66,6 @@ libbsd_la_SOURCES = \ arc4random.c \ arc4random.h \ arc4random_linux.h \ - arc4random_openbsd.h \ arc4random_uniform.c \ arc4random_unix.h \ arc4random_win.h \ diff --git a/src/arc4random.h b/src/arc4random.h index 812188b..b8675b4 100644 --- a/src/arc4random.h +++ b/src/arc4random.h @@ -32,9 +32,7 @@ int getentropy(void *buf, size_t len); -#if defined(__OpenBSD__) -#include "arc4random_openbsd.h" -#elif defined(__linux__) +#if defined(__linux__) #include "arc4random_linux.h" #elif defined(_WIN32) #include "arc4random_win.h" diff --git a/src/arc4random_openbsd.h b/src/arc4random_openbsd.h deleted file mode 100644 index 9cd8b68..0000000 --- a/src/arc4random_openbsd.h +++ /dev/null @@ -1,61 +0,0 @@ -/* $OpenBSD: arc4random.h,v 1.3 2014/07/20 20:51:13 bcook Exp $ */ - -/* - * Copyright (c) 1996, David Mazieres - * Copyright (c) 2008, Damien Miller - * Copyright (c) 2013, Markus Friedl - * Copyright (c) 2014, Theo de Raadt - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/* - * Stub functions for portability. - */ -#include - -#include - -#include "thread_private.h" - -static inline void -_getentropy_fail(void) -{ - raise(SIGKILL); -} - -static inline int -_rs_allocate(struct _rs **rsp, struct _rsx **rsxp) -{ - struct { - struct _rs rs; - struct _rsx rsx; - } *p; - - if ((p = mmap(NULL, sizeof(*p), PROT_READ|PROT_WRITE, - MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED) - return (-1); - if (minherit(p, sizeof(*p), MAP_INHERIT_ZERO) == -1) { - munmap(p, sizeof(*p)); - return (-1); - } - - *rsp = &p->rs; - *rsxp = &p->rsx; - return (0); -} - -static inline void -_rs_forkdetect(void) -{ -} From gitlab-mirror at kemper.freedesktop.org Wed Mar 30 21:11:48 2022 From: gitlab-mirror at kemper.freedesktop.org (GitLab Mirror) Date: Wed, 30 Mar 2022 21:11:48 +0000 (UTC) Subject: libbsd: Branch 'main' Message-ID: <20220330211148.CBC2E760BC@kemper.freedesktop.org> configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 84acf21568e32488a73bf20d5d2ccce643a2d18f Author: Guillem Jover Date: Wed Mar 30 23:09:35 2022 +0200 Release libbsd 0.11.6 diff --git a/configure.ac b/configure.ac index 5ca9e2d..5b6d22b 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], LIBBSD_ABI_MAJOR=0 LIBBSD_ABI_MINOR=11 -LIBBSD_ABI_PATCH=5 +LIBBSD_ABI_PATCH=6 LIBBSD_ABI="$LIBBSD_ABI_MAJOR:$LIBBSD_ABI_MINOR:$LIBBSD_ABI_PATCH" AC_SUBST([LIBBSD_ABI]) From gitlab-mirror at kemper.freedesktop.org Wed Mar 30 21:11:49 2022 From: gitlab-mirror at kemper.freedesktop.org (GitLab Mirror) Date: Wed, 30 Mar 2022 21:11:49 +0000 (UTC) Subject: libbsd: Changes to 'refs/tags/0.11.6' Message-ID: <20220330211149.F2AFA760BC@kemper.freedesktop.org> Tag '0.11.6' created by Guillem Jover at 2022-03-30 21:10 +0000 Release libbsd 0.11.6 -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETz509DYFDBD1aWV0uXK/PqSuV6MFAmJEx1oACgkQuXK/PqSu V6Nd6xAAri9PGKsPggs/U/0O3Sjb+frxPzej0FSFlBQf1iCbGdYVKRimKv1dgNpO oUQR9AeatJj7f4s+4bOWB4SXfNThcjtibmsz3oNq6F5Gqvhh+u9qPn5CUT2OcwTG UO1Qqr36G2NImrKSh37mNazHoIvmZerh1DQ+0oSs3PqEGCXdqWkStx5vPgSeSZsZ jyJNl/XPWa5mjJzKBSITXUyPUb0EQb3agTgixeL0dMyZn6QINuY8aXAUDfhKXaNL XYtjBVjjJq+wjhnxW8oEODhD421cJYHNGuRTwUfydGZG2H2ngLcNH+wWM/geU+XK In5LkQdqYU7KtarGAOjgnZ1TzdJYGJAFksOe+9EN0hViVQjK4VwaViSHHLCs15ms lqb+/cnj3AigNQB3buOf86Y2g+OBqTyAEmgPNM8MOgvhYlyjektmB0u9KDXrtWN+ wBBlmv8PyXDpzD0OmxKm5iDstZc5aS9oHxyj6seSCx1BhdvK1sKJYRj0DSbSxZEw 2R/KPy/1XhmxrxNAfOcdlG7BP4q9wx4RfypLxFBeReeWcARLqlFDll3GW9kbSaVP c5nscB62zy7wIZ6r5VXN/NnK2BJQBwiXjA935RsTu96iG1h9c7S7uBzyNjJmi8On OZ/dfSczRGPurpkI82VNhXO3CFoHljgH6vwxnsz3M7Z0SYglFdk= =a/oo -----END PGP SIGNATURE----- Changes since 0.11.5-9: --- 0 files changed --- From guillem at hadrons.org Wed Mar 30 21:21:24 2022 From: guillem at hadrons.org (Guillem Jover) Date: Wed, 30 Mar 2022 23:21:24 +0200 Subject: [ANNOUNCE] libbsd 0.11.6 released Message-ID: Hi! This release includes: - Build system and test suite fixes for musl. - Removal of unused OpenBSD support for arc4random(). - LoongArch support for nlist(). Git tag: 0.11.6 Tarball: OpenPGP: SHA256: 19b38f3172eaf693e6e1c68714636190c7e48851e45224d720b3b5bc0499b5df libbsd-0.11.6.tar.xz SHA512: 9dbbfb84340fc69f59667241701d81d176439ce168f123344805898a269f7bd0e98abf8c7fc12d9bf539d1effb19424d93b647cc9120f693327e736d339e6075 libbsd-0.11.6.tar.xz Changes since 0.11.5: Duncan Overbruck (4): test: Remove static FILE declaration from fpurge test fpurge: Make it work with non fd based FILEs test: Add fpurge() test case using open_memstream(3) FILE build: Add alpine to CI for tests with musl libc Guilherme Janczak (1): Remove arc4random() OpenBSD support Guillem Jover (4): build: Sort test programs in .gitignore test: Import explicit_bzero and strtonum test cases from OpenBSD man: Document when functions were added to musl in libbsd(7) Release libbsd 0.11.6 WANG Xuerui (1): Add LoongArch support to nlist() Thanks, Guillem -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: