| 863b5c13 | 09-Mar-2026 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
system(3): Fix brain glitch in previous commit
We were saving SIGINT twice instead of SIGINT and SIGQUIT.
Also restore original order of operations (SIGINT then SIGQUIT), which matches the order in
system(3): Fix brain glitch in previous commit
We were saving SIGINT twice instead of SIGINT and SIGQUIT.
Also restore original order of operations (SIGINT then SIGQUIT), which matches the order in which they're discussed in the POSIX description of system(3).
MFC after: 1 week Sponsored by: Klara, Inc. Fixes: 48368f702423 ("system(3): Address test robustness issue")
show more ...
|
| 8ae3f449 | 25-Feb-2026 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
system(3): Fix null case
Our manual page states that if given a null pointer, system() returns non-zero if the shell is available and zero if it is not. This is consistent with the C standard's des
system(3): Fix null case
Our manual page states that if given a null pointer, system() returns non-zero if the shell is available and zero if it is not. This is consistent with the C standard's description of system(), but it is not what we actually do. What we actually do is always return non-zero, as required by POSIX.
As the POSIX rationale explains, implementing the logic required by the C standard does not violate POSIX, since a conforming system always has a shell, therefore the logic will always return non-zero.
Since our libc is commonly used in non-conforming situations such as chroots or thin jails, we should implement the full logic required by the C standard.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: obiwac, bnovkov, kevans Differential Revision: https://reviews.freebsd.org/D55484
show more ...
|
| cf85e703 | 26-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
strfmon: Fix negative sign handling for C locale
If the locale's positive_sign and negative_sign values would both be returned by localeconv() as empty strings, strfmon() shall behave as if the nega
strfmon: Fix negative sign handling for C locale
If the locale's positive_sign and negative_sign values would both be returned by localeconv() as empty strings, strfmon() shall behave as if the negative_sign value was the string "-".
This occurs with the C locale. The implementation previously assigned "0" to sign_posn (parentheses around the entire string); now it assigns it to "1" (sign before the string) when it is undefined (CHAR_MAX).
Austin Group Defect 1199[1] is applied, changing the requirements for the '+' and '(' flags.
[1]: https://www.austingroupbugs.net/view.php?id=1199
Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53913
show more ...
|
| 1fd01897 | 26-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
strfmon: EINVAL if the '+' flag and both signs are empty
According to the Open Group Base Specifications Issue 8[1], strfmon(3) should return EINVAL when the '+' flag was included in a conversion sp
strfmon: EINVAL if the '+' flag and both signs are empty
According to the Open Group Base Specifications Issue 8[1], strfmon(3) should return EINVAL when the '+' flag was included in a conversion specification and the locale's positive_sign and negative_sign values would both be returned by localeconv(3) as empty strings.
Austin Group Defect 1199[2] is applied, adding the [EINVAL] error.
[1]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/strfmon.html [2]: https://www.austingroupbugs.net/view.php?id=1199
Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53912
show more ...
|
| c0946aee | 07-Aug-2024 |
Mark Johnston <markj@FreeBSD.org> |
libc tests: Add some test cases for recursive exiting
Derived from tests posted by kib in D46108. I made one of them use a pthread barrier instead of sleeping.
Reviewed by: kib MFC after: 2 weeks
libc tests: Add some test cases for recursive exiting
Derived from tests posted by kib in D46108. I made one of them use a pthread barrier instead of sleeping.
Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D46176
show more ...
|