1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

xprintf, xprintf-posix, xprintf-gnu: Use *zprintf.

* lib/xprintf.h (xprintf, xvprintf, xfprintf, xvfprintf): Change return
type to off64_t. Move documentation from xprintf.c to here. Mention
EOVERFLOW as another possible error unrelated to file I/O.
* lib/xprintf.c (xprintf): Change return type to off64_t.
(xvprintf): Likewise. Use vzprintf.
(xfprintf): Change return type to off64_t.
(xvfprintf): Likewise. Use vfzprintf.
* modules/xprintf (Description): Mention also fprintf. Mention EOVERFLOW
as another possible error unrelated to file I/O.
(Depends-on): Add vzprintf, vfzprintf.
* modules/xprintf-posix (Description): Mention also fprintf. Mention
EOVERFLOW as another possible error unrelated to file I/O.
(Depends-on): Add vzprintf-posix, vfzprintf-posix. Remove vprintf-posix,
vfprintf-posix.
* modules/xprintf-gnu (Description): Mention also fprintf. Mention
EOVERFLOW as another possible error unrelated to file I/O.
(Depends-on): Add vzprintf-gnu, vfzprintf-gnu. Remove vprintf-gnu,
vfprintf-gnu.
* tests/test-xprintf-posix.c (RETTYPE): Change to off64_t.
* tests/test-xfprintf-posix.c (RETTYPE): Likewise.
* NEWS: Document the change.
This commit is contained in:
Bruno Haible
2024-12-25 19:13:53 +01:00
parent f9204fa1f7
commit d2ed4c8293
9 changed files with 69 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
Description:
A wrapper around printf with POSIX and GNU compatible format string
interpretation, that calls error upon ENOMEM or EILSEQ errors.
Wrappers around printf and fprintf
with POSIX and GNU compatible format string interpretation,
that calls error upon ENOMEM, EOVERFLOW, or EILSEQ errors.
Comment:
This module should not be used as a dependency from a test module,
@@ -12,8 +13,8 @@ Files:
Depends-on:
xprintf
vprintf-gnu
vfprintf-gnu
vzprintf-gnu
vfzprintf-gnu
configure.ac: