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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
/* Test of error-checking xprintf() function with POSIX compatible formatting.
Copyright (C) 2007-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
#include <config.h>
#include "xprintf.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "macros.h"
#define RETTYPE off64_t
#include "test-printf-posix.h"
int
main (_GL_UNUSED int argc, char *argv[])
{
test_function (xprintf);
return test_exit_status;
}