History log of /src/lib/libc/stdlib/strfmon.3 (Results 1 – 25 of 84)
Revision Date Author Comments
# 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 ...


# 2a163c36 01-Dec-2023 Jose Luis Duran <jlduran@gmail.com>

strfmon.3: Cleanup example code

- xlocale.h would have been required if using strfmon_l(). Here,
setlocale() just requires locale.h.
- ANSIfy function declaration.
- Add a final return().

MFC af

strfmon.3: Cleanup example code

- xlocale.h would have been required if using strfmon_l(). Here,
setlocale() just requires locale.h.
- ANSIfy function declaration.
- Add a final return().

MFC after: 1 week

show more ...


# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 59cc636d 08-Nov-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Wording improvements

Use the same terminology as the other `_l` xlocale(3) functions.

Reviewed by: kib
MFC after: 1 week


# cdd9d92d 08-Nov-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Add an EXAMPLES section

Reviewed by: kib
MFC after: 1 week


# d96088b3 28-Oct-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon_l(3): Add name to the man page

Reviewed by: kib
PR: 267410
Github PR: #620
MFC after: 1 week


# 7cfd67ce 13-Oct-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Fix # explanation

There's only one value that specifies the number of digits after the
decimal point (oh, sorry, the "radix character") the other specifies the
number before...

While he

strfmon(3): Fix # explanation

There's only one value that specifies the number of digits after the
decimal point (oh, sorry, the "radix character") the other specifies the
number before...

While here, add a little more info on the effects of using the #n value.

Obtained from: https://github.com/NetBSD/src/commit/d1dd1a086400ae719bde1f2c45938d9bc1d29e8b
Reviewed by: kib
PR: 267282
Github PR: #619
MFC after: 1 week

show more ...


# 0efec50e 13-Oct-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Remove repeated words

Reviewed by: kib
PR: 267282
Github PR: #619
MFC after: 1 week


# 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 ...


# 2a163c36 01-Dec-2023 Jose Luis Duran <jlduran@gmail.com>

strfmon.3: Cleanup example code

- xlocale.h would have been required if using strfmon_l(). Here,
setlocale() just requires locale.h.
- ANSIfy function declaration.
- Add a final return().

MFC af

strfmon.3: Cleanup example code

- xlocale.h would have been required if using strfmon_l(). Here,
setlocale() just requires locale.h.
- ANSIfy function declaration.
- Add a final return().

MFC after: 1 week

show more ...


# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 59cc636d 08-Nov-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Wording improvements

Use the same terminology as the other `_l` xlocale(3) functions.

Reviewed by: kib
MFC after: 1 week


# cdd9d92d 08-Nov-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Add an EXAMPLES section

Reviewed by: kib
MFC after: 1 week


# d96088b3 28-Oct-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon_l(3): Add name to the man page

Reviewed by: kib
PR: 267410
Github PR: #620
MFC after: 1 week


# 7cfd67ce 13-Oct-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Fix # explanation

There's only one value that specifies the number of digits after the
decimal point (oh, sorry, the "radix character") the other specifies the
number before...

While he

strfmon(3): Fix # explanation

There's only one value that specifies the number of digits after the
decimal point (oh, sorry, the "radix character") the other specifies the
number before...

While here, add a little more info on the effects of using the #n value.

Obtained from: https://github.com/NetBSD/src/commit/d1dd1a086400ae719bde1f2c45938d9bc1d29e8b
Reviewed by: kib
PR: 267282
Github PR: #619
MFC after: 1 week

show more ...


# 0efec50e 13-Oct-2022 Jose Luis Duran <jlduran@gmail.com>

strfmon(3): Remove repeated words

Reviewed by: kib
PR: 267282
Github PR: #619
MFC after: 1 week


# 246e7a2b 02-Sep-2014 Neel Natu <neel@FreeBSD.org>

IFC @r269962

Submitted by: Anish Gupta (akgupt3@gmail.com)


# ee7b0571 19-Aug-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge head from 7/28


# 1b833d53 13-Aug-2014 Alexander V. Chernikov <melifaro@FreeBSD.org>

Sync to HEAD@r269943.


# 8fbf3d50 23-Jun-2014 Baptiste Daroussin <bapt@FreeBSD.org>

use .Mt to mark up email addresses consistently (part4)

PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>


# 23090366 04-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Sync from head


# de720122 15-Jul-2012 Gleb Smirnoff <glebius@FreeBSD.org>

Merge head r236710 through r238467.


# 6cf87ec8 13-Jul-2012 Xin LI <delphij@FreeBSD.org>

IFC @238412.


# b652778e 11-Jul-2012 Peter Grehan <grehan@FreeBSD.org>

IFC @ r238370


# af5b2c78 26-Jun-2012 Joel Dahl <joel@FreeBSD.org>

Remove end of line whitespace.


1234