Hash :
d2ed4c82
Author :
Date :
2024-12-25T19:13:53
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.
Description:
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,
otherwise when this module occurs as a tests-related module, it will
have side effects on the compilation of the 'vasnprintf' module, if
that module occurs among the main modules in lib/.
Files:
Depends-on:
xprintf
vzprintf-gnu
vfzprintf-gnu
configure.ac:
Makefile.am:
Include:
"xprintf.h"
License:
GPL
Maintainer:
all