- 09 Feb, 2021 6 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
Switch from the previous versioned symbol implementation which required users to also link against the message digest provider explicitly, or they would fail to find the symbols, to an implementation that loads the symbols from the linked library providing the functions using dlsym(), thus preserving backwards compatibility.
-
Guillem Jover authored
We need to list all internal libraries there so that we can statically link.
-
Guillem Jover authored
Using various variables means we have to keep these in sync in various places. Just use a single variable that we can use anywhere where this is needed.
-
Guillem Jover authored
They were not failing when not finding the SHA-2 functions and were hardcoding -lmd regardless of what library had been found.
-
Guillem Jover authored
The __-prefixed types cannot be assumed to be defined. Use the standard types instead. Closes: #6
-
- 08 Feb, 2021 5 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
Closes: !11 Based-on-patch-by:
cptpcrd <cptpcrd.git@gmail.com> Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
More important if close_range() is going to be used, since casting negative values to 'unsigned int' might hide the errors. [guillem@hadrons.org: Minor coding style fix. ] Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
Guillem Jover authored
Take most of the changes done in sudo, but preserve the existing local changes and refactoring. In addition, refactor pstat implementation into closefrom_pstat(), so that the code is easier to read, and requires no conditional declarations.
-
This brings <sys/queue.h> to the most up-to-date version from FreeBSD, incorporating 18 commits from the past 5 years (2015-02-24 - 2021-01-25): $ git log --oneline 9090a24aed70..8d55837dc133 sys/sys/queue.h share/man/man3/queue.3 Only minimal changes compared to the FreeBSD version have been applied (queue.3 -> queue.3bsd, _LIBBSD_ prefix). [guillem@hadrons.org: Remove reference to kernel mode in man page. ] Closes: !12 Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 07 Feb, 2021 12 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
This will make it possible to explicitly select the OpenBSD vis implementation (the current default) for code of OpenBSD origins.
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
This splits the implementation responsibilities, and reduces embedded code copies, which was one of the driving points with this project to start with, so it's nice to give a good example.
-
[guillem@hadrons.org: - Remove .exe extension from default program name. - Call reallocarray() once by switching to a «do {} while» loop. - Minor coding style fixes. ] Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
Guillem Jover authored
-
Guillem Jover authored
Warned-by: lintian Fixes: commit 01f0d1ea
-
- 01 Jan, 2021 2 commits
-
-
Add recallocarray(), introduced in OpenBSD 6.1, and freezero(), introduced in OpenBSD 6.2. The former is imported as-is from OpenBSD, while the latter is the non-malloc-internal branch of the same code (and also the OpenSSH portable variant). Both of these originated in OpenBSD, but have also been implemented by IllumOS, cf. https://www.illumos.org/issues/8546 Documentation for these functions is in malloc(3) upstream, the relevant parts of which were previously imported in reallocarray(3bsd). Update reallocarray(3bsd) with the changes that were introduced since, and add the relevant bits for recallocarray() and freezero(), plus aliases. [guillem@hadrons.org: Update copyright in COPYING. ] Closes: !10 Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
The Intel compiler does not define __amd64__ on x86_64 platforms; instead, like other compilers, it defines __x86_64__ . Closes: !8 Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 21 Dec, 2020 9 commits
-
-
Guillem Jover authored
Even though man-pages project now includes man pages for system data types, we still include these for any other system that does not have them, to provide a self-contained project with code and documentation.
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
These are non-issues, but having a clean ASAN test suite makes it possible to detect actual problems in the tested code. Warned-by: gcc ASAN
-
Guillem Jover authored
We need to free the cookiewrap even when the closefn method is NULL. Warned-by: gcc ASAN
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
Fixes: commit 99320b91.
-
Guillem Jover authored
Fixes: commit 2d7de186.
-
- 08 Aug, 2019 6 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
Some systems such as Windows or musl-libc based ones do not have these BSD extensions. In addition libbsd itself is making use of the warnx() functions, so we better provide these interfaces in case they are missing.
-
Guillem Jover authored
Do not depend on the system vwarn() and verr() functions to implement the *c() variants, as the system might actually lack any of the <err.h> BSD extensions.
-
Guillem Jover authored
-
This is a Russian 64-bit LE VLIW architecture named Elbrus (formerly Elbrus 2000). [guillem@hadrons.org: - Place the entry in alphabetical order. ] Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
Closes: !7 Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-