mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
warn-on-use: use instead of link-warning
Each *.in.h file serves two purposes - provide enough self-contained content to serve as a replacement for the system header regardless of the user's compiler, and offer the developer the ability to detect any gnulib modules that might have been inadvertantly excluded. The former requires independence from config.h, and routes everything through a Makefile.am snippet that uses @@ substitution specific to the modules that were in use, with details learned at configure time. The latter works by poisoning anything that gnulib did not replace, but which the developer had natively available, explaining why their tests passed during development. Poisoning relies on gcc features, and requires manual triggering by adding -DGNULIB_POSIXCHECK to CFLAGS; it assumes that <config.h> is properly included. In fact, we do not want to use @@ substitution for HAVE_DECL_* during poisoning, because the warning is only relevant for the gnulib modules which were not included, and thus where the m4 macros to set proper @@ values have not been run. Furthermore, we only need to poison interfaces that already have a declaration; if something is not declared, then the developer wouldn't have been able to link, so their code won't be using the problematic interface in the first place. * modules/stdio (Depends-on, Makefile.am): Drop link-warning. * modules/unistd (Depends-on, Makefile.am): Likewise. * modules/arpa_inet (Depends-on): Replace link-warning with warn-on-use. (Makefile.am): Update rules accordingly. * modules/ctype (Depends-on, Makefile.am): Likewise. * modules/dirent (Depends-on, Makefile.am): Likewise. * modules/fcntl-h (Depends-on, Makefile.am): Likewise. * modules/inttypes (Depends-on, Makefile.am): Likewise. * modules/langinfo (Depends-on, Makefile.am): Likewise. * modules/locale (Depends-on, Makefile.am): Likewise. * modules/math (Depends-on, Makefile.am): Likewise. * modules/search (Depends-on, Makefile.am): Likewise. * modules/signal (Depends-on, Makefile.am): Likewise. * modules/spawn (Depends-on, Makefile.am): Likewise. * modules/stdlib (Depends-on, Makefile.am): Likewise. * modules/string (Depends-on, Makefile.am): Likewise. * modules/strings (Depends-on, Makefile.am): Likewise. * modules/sys_file (Depends-on, Makefile.am): Likewise. * modules/sys_ioctl (Depends-on, Makefile.am): Likewise. * modules/sys_select (Depends-on, Makefile.am): Likewise. * modules/sys_socket (Depends-on, Makefile.am): Likewise. * modules/sys_stat (Depends-on, Makefile.am): Likewise. * modules/sys_times (Depends-on, Makefile.am): Likewise. * modules/sys_utsname (Depends-on, Makefile.am): Likewise. * modules/wchar (Depends-on, Makefile.am): Likewise. * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions should be poisoned. * m4/ctype.m4 (gl_CTYPE_H): Likewise. * m4/dirent_h.m4 (gl_DIRENT_H): Likewise. * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise. * m4/inttypes.m4 (gl_INTTYPES_H): Likewise. * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise. * m4/locale_h.m4 (gl_LOCALE_H): Likewise. * m4/math_h.m4 (gl_MATH_H): Likewise. * m4/search_h.m4 (gl_SEARCH_H): Likewise. * m4/signal_h.m4 (gl_SIGNAL_H): Likewise. * m4/spawn_h.m4 (gl_SPAWN_H): Likewise. * m4/stdio_h.m4 (gl_STDIO_H): Likewise. * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise. * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise. * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise. * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise. * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise. * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise. * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise. * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise. * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise. * m4/unistd_h.m4 (gl_UNISTD_H): Likewise. * m4/wchar.m4 (gl_WCHAR_H): Likewise. * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of GL_LINK_WARNING. * lib/ctype.in.h: Likewise. * lib/dirent.in.h: Likewise. * lib/fcntl.in.h: Likewise. * lib/inttypes.in.h: Likewise. * lib/langinfo.in.h: Likewise. * lib/locale.in.h: Likewise. * lib/math.in.h: Likewise. * lib/search.in.h: Likewise. * lib/signal.in.h: Likewise. * lib/spawn.in.h: Likewise. * lib/stdio.in.h: Likewise. * lib/stdlib.in.h: Likewise. * lib/string.in.h: Likewise. * lib/strings.in.h: Likewise. * lib/sys_file.in.h: Likewise. * lib/sys_ioctl.in.h: Likewise. * lib/sys_select.in.h: Likewise. * lib/sys_socket.in.h: Likewise. * lib/sys_stat.in.h: Likewise. * lib/sys_times.in.h: Likewise. * lib/sys_utsname.in.h: Likewise. * lib/unistd.in.h: Likewise. * lib/wchar.in.h: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
80
ChangeLog
80
ChangeLog
@@ -1,3 +1,83 @@
|
|||||||
|
2010-01-20 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
|
warn-on-use: use instead of link-warning
|
||||||
|
* modules/stdio (Depends-on, Makefile.am): Drop link-warning.
|
||||||
|
* modules/unistd (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/arpa_inet (Depends-on): Replace link-warning with
|
||||||
|
warn-on-use.
|
||||||
|
(Makefile.am): Update rules accordingly.
|
||||||
|
* modules/ctype (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/dirent (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/fcntl-h (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/inttypes (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/langinfo (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/locale (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/math (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/search (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/signal (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/spawn (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/stdlib (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/string (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/strings (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_file (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_select (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_socket (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_stat (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_times (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/sys_utsname (Depends-on, Makefile.am): Likewise.
|
||||||
|
* modules/wchar (Depends-on, Makefile.am): Likewise.
|
||||||
|
* m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
|
||||||
|
should be poisoned.
|
||||||
|
* m4/ctype.m4 (gl_CTYPE_H): Likewise.
|
||||||
|
* m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
|
||||||
|
* m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
|
||||||
|
* m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
|
||||||
|
* m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
|
||||||
|
* m4/locale_h.m4 (gl_LOCALE_H): Likewise.
|
||||||
|
* m4/math_h.m4 (gl_MATH_H): Likewise.
|
||||||
|
* m4/search_h.m4 (gl_SEARCH_H): Likewise.
|
||||||
|
* m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
|
||||||
|
* m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
|
||||||
|
* m4/stdio_h.m4 (gl_STDIO_H): Likewise.
|
||||||
|
* m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
|
||||||
|
* m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
|
||||||
|
* m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
|
||||||
|
* m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
|
||||||
|
* m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
|
||||||
|
* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
|
||||||
|
* m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
|
||||||
|
* m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
|
||||||
|
* m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
|
||||||
|
* m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
|
||||||
|
* m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
|
||||||
|
* m4/wchar.m4 (gl_WCHAR_H): Likewise.
|
||||||
|
* lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
|
||||||
|
GL_LINK_WARNING.
|
||||||
|
* lib/ctype.in.h: Likewise.
|
||||||
|
* lib/dirent.in.h: Likewise.
|
||||||
|
* lib/fcntl.in.h: Likewise.
|
||||||
|
* lib/inttypes.in.h: Likewise.
|
||||||
|
* lib/langinfo.in.h: Likewise.
|
||||||
|
* lib/locale.in.h: Likewise.
|
||||||
|
* lib/math.in.h: Likewise.
|
||||||
|
* lib/search.in.h: Likewise.
|
||||||
|
* lib/signal.in.h: Likewise.
|
||||||
|
* lib/spawn.in.h: Likewise.
|
||||||
|
* lib/stdio.in.h: Likewise.
|
||||||
|
* lib/stdlib.in.h: Likewise.
|
||||||
|
* lib/string.in.h: Likewise.
|
||||||
|
* lib/strings.in.h: Likewise.
|
||||||
|
* lib/sys_file.in.h: Likewise.
|
||||||
|
* lib/sys_ioctl.in.h: Likewise.
|
||||||
|
* lib/sys_select.in.h: Likewise.
|
||||||
|
* lib/sys_socket.in.h: Likewise.
|
||||||
|
* lib/sys_stat.in.h: Likewise.
|
||||||
|
* lib/sys_times.in.h: Likewise.
|
||||||
|
* lib/sys_utsname.in.h: Likewise.
|
||||||
|
* lib/unistd.in.h: Likewise.
|
||||||
|
* lib/wchar.in.h: Likewise.
|
||||||
|
|
||||||
2010-01-20 Bruno Haible <bruno@clisp.org>
|
2010-01-20 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Avoid duplicate -lm.
|
Avoid duplicate -lm.
|
||||||
|
@@ -39,10 +39,10 @@
|
|||||||
#ifndef _GL_ARPA_INET_H
|
#ifndef _GL_ARPA_INET_H
|
||||||
#define _GL_ARPA_INET_H
|
#define _GL_ARPA_INET_H
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@@ -70,10 +70,10 @@ extern const char *inet_ntop (int af, const void *restrict src,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef inet_ntop
|
# undef inet_ntop
|
||||||
# define inet_ntop(af,src,dst,cnt) \
|
# if HAVE_RAW_DECL_INET_NTOP
|
||||||
(GL_LINK_WARNING ("inet_ntop is unportable - " \
|
_GL_WARN_ON_USE (inet_ntop, "inet_ntop is unportable - "
|
||||||
"use gnulib module inet_ntop for portability"), \
|
"use gnulib module inet_ntop for portability");
|
||||||
inet_ntop (af, src, dst, cnt))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_INET_PTON@
|
#if @GNULIB_INET_PTON@
|
||||||
@@ -83,10 +83,10 @@ extern int inet_pton (int af, const char *restrict src, void *restrict dst)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef inet_pton
|
# undef inet_pton
|
||||||
# define inet_pton(af,src,dst) \
|
# if HAVE_RAW_DECL_INET_PTON
|
||||||
(GL_LINK_WARNING ("inet_pton is unportable - " \
|
_GL_WARN_ON_USE (inet_pton, "inet_pton is unportable - "
|
||||||
"use gnulib module inet_pton for portability"), \
|
"use gnulib module inet_pton for portability");
|
||||||
inet_pton (af, src, dst))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
#ifndef _GL_CTYPE_H
|
#ifndef _GL_CTYPE_H
|
||||||
#define _GL_CTYPE_H
|
#define _GL_CTYPE_H
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* Return non-zero if c is a blank, i.e. a space or tab character. */
|
/* Return non-zero if c is a blank, i.e. a space or tab character. */
|
||||||
#if @GNULIB_ISBLANK@
|
#if @GNULIB_ISBLANK@
|
||||||
@@ -45,10 +45,10 @@ extern int isblank (int c);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef isblank
|
# undef isblank
|
||||||
# define isblank(c) \
|
# if HAVE_RAW_DECL_ISBLANK
|
||||||
(GL_LINK_WARNING ("isblank is unportable - " \
|
_GL_WARN_ON_USE (isblank, "isblank is unportable - "
|
||||||
"use gnulib module isblank for portability"), \
|
"use gnulib module isblank for portability");
|
||||||
isblank (c))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _GL_CTYPE_H */
|
#endif /* _GL_CTYPE_H */
|
||||||
|
@@ -29,10 +29,9 @@
|
|||||||
/* Get ino_t. Needed on some systems, including glibc 2.8. */
|
/* Get ino_t. Needed on some systems, including glibc 2.8. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -53,10 +52,10 @@ extern int dirfd (DIR *dir) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef dirfd
|
# undef dirfd
|
||||||
# define dirfd(d) \
|
# if HAVE_RAW_DECL_DIRFD
|
||||||
(GL_LINK_WARNING ("dirfd is unportable - " \
|
_GL_WARN_ON_USE (dirfd, "dirfd is unportable - "
|
||||||
"use gnulib module dirfd for portability"), \
|
"use gnulib module dirfd for portability");
|
||||||
dirfd (d))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FDOPENDIR@
|
#if @GNULIB_FDOPENDIR@
|
||||||
@@ -74,10 +73,10 @@ extern DIR *fdopendir (int fd);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fdopendir
|
# undef fdopendir
|
||||||
# define fdopendir(f) \
|
# if HAVE_RAW_DECL_FDOPENDIR
|
||||||
(GL_LINK_WARNING ("fdopendir is unportable - " \
|
_GL_WARN_ON_USE (fdopendir, "fdopendir is unportable - "
|
||||||
"use gnulib module fdopendir for portability"), \
|
"use gnulib module fdopendir for portability");
|
||||||
fdopendir (f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @REPLACE_OPENDIR@
|
#if @REPLACE_OPENDIR@
|
||||||
@@ -98,10 +97,10 @@ extern int scandir (const char *dir, struct dirent ***namelist,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef scandir
|
# undef scandir
|
||||||
# define scandir(d,n,f,c) \
|
# if HAVE_RAW_DECL_SCANDIR
|
||||||
(GL_LINK_WARNING ("scandir is unportable - " \
|
_GL_WARN_ON_USE (scandir, "scandir is unportable - "
|
||||||
"use gnulib module scandir for portability"), \
|
"use gnulib module scandir for portability");
|
||||||
scandir (d, n, f, c))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_ALPHASORT@
|
#if @GNULIB_ALPHASORT@
|
||||||
@@ -112,10 +111,10 @@ extern int alphasort (const struct dirent **, const struct dirent **)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef alphasort
|
# undef alphasort
|
||||||
# define alphasort(a,b) \
|
# if HAVE_RAW_DECL_ALPHASORT
|
||||||
(GL_LINK_WARNING ("alphasort is unportable - " \
|
_GL_WARN_ON_USE (alphasort, "alphasort is unportable - "
|
||||||
"use gnulib module alphasort for portability"), \
|
"use gnulib module alphasort for portability");
|
||||||
alphasort (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@@ -50,10 +50,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
/* Declare overridden functions. */
|
/* Declare overridden functions. */
|
||||||
|
|
||||||
@@ -71,10 +71,10 @@ extern int fcntl (int fd, int action, ...);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fcntl
|
# undef fcntl
|
||||||
# define fcntl \
|
# if HAVE_RAW_DECL_FCNTL
|
||||||
(GL_LINK_WARNING ("fcntl is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - "
|
||||||
"use gnulib module fcntl for portability"), \
|
"use gnulib module fcntl for portability");
|
||||||
fcntl)
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_OPEN@
|
#if @GNULIB_OPEN@
|
||||||
@@ -85,10 +85,9 @@ extern int open (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef open
|
# undef open
|
||||||
# define open \
|
/* Assume open is always declared. */
|
||||||
(GL_LINK_WARNING ("open is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (open, "open is not always POSIX compliant - "
|
||||||
"use gnulib module open for portability"), \
|
"use gnulib module open for portability");
|
||||||
open)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_OPENAT@
|
#if @GNULIB_OPENAT@
|
||||||
@@ -102,10 +101,10 @@ extern int openat (int fd, char const *file, int flags, /* mode_t mode */ ...)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef openat
|
# undef openat
|
||||||
# define openat \
|
# if HAVE_RAW_DECL_OPENAT
|
||||||
(GL_LINK_WARNING ("openat is not portable - " \
|
_GL_WARN_ON_USE (openat, "openat is not portable - "
|
||||||
"use gnulib module openat for portability"), \
|
"use gnulib module openat for portability");
|
||||||
openat)
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@@ -48,10 +48,10 @@
|
|||||||
# error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@gnu.org>."
|
# error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@gnu.org>."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* 7.8.1 Macros for format specifiers */
|
/* 7.8.1 Macros for format specifiers */
|
||||||
|
|
||||||
#if ! defined __cplusplus || defined __STDC_FORMAT_MACROS
|
#if ! defined __cplusplus || defined __STDC_FORMAT_MACROS
|
||||||
@@ -1050,10 +1050,10 @@ extern intmax_t imaxabs (intmax_t);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef imaxabs
|
# undef imaxabs
|
||||||
# define imaxabs(a) \
|
# if HAVE_RAW_DECL_IMAXABS
|
||||||
(GL_LINK_WARNING ("imaxabs is unportable - " \
|
_GL_WARN_ON_USE (imaxabs, "imaxabs is unportable - "
|
||||||
"use gnulib module imaxabs for portability"), \
|
"use gnulib module imaxabs for portability");
|
||||||
imaxabs (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_IMAXDIV@
|
#if @GNULIB_IMAXDIV@
|
||||||
@@ -1063,10 +1063,10 @@ extern imaxdiv_t imaxdiv (intmax_t, intmax_t);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef imaxdiv
|
# undef imaxdiv
|
||||||
# define imaxdiv(a,b) \
|
# if HAVE_RAW_DECL_IMAXDIV
|
||||||
(GL_LINK_WARNING ("imaxdiv is unportable - " \
|
_GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - "
|
||||||
"use gnulib module imaxdiv for portability"), \
|
"use gnulib module imaxdiv for portability");
|
||||||
imaxdiv (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRTOIMAX@
|
#if @GNULIB_STRTOIMAX@
|
||||||
@@ -1075,10 +1075,10 @@ extern intmax_t strtoimax (const char *, char **, int) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strtoimax
|
# undef strtoimax
|
||||||
# define strtoimax(p,e,b) \
|
# if HAVE_RAW_DECL_STRTOIMAX
|
||||||
(GL_LINK_WARNING ("strtoimax is unportable - " \
|
_GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - "
|
||||||
"use gnulib module strtoimax for portability"), \
|
"use gnulib module strtoimax for portability");
|
||||||
strtoimax (p, e, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRTOUMAX@
|
#if @GNULIB_STRTOUMAX@
|
||||||
@@ -1087,10 +1087,10 @@ extern uintmax_t strtoumax (const char *, char **, int) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strtoumax
|
# undef strtoumax
|
||||||
# define strtoumax(p,e,b) \
|
# if HAVE_RAW_DECL_STRTOUMAX
|
||||||
(GL_LINK_WARNING ("strtoumax is unportable - " \
|
_GL_WARN_ON_USE (strtoumax, "strtoumax is unportable - "
|
||||||
"use gnulib module strtoumax for portability"), \
|
"use gnulib module strtoumax for portability");
|
||||||
strtoumax (p, e, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Don't bother defining or declaring wcstoimax and wcstoumax, since
|
/* Don't bother defining or declaring wcstoimax and wcstoumax, since
|
||||||
|
@@ -123,7 +123,7 @@ typedef int nl_item;
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* Declare overridden functions. */
|
/* Declare overridden functions. */
|
||||||
|
|
||||||
@@ -146,10 +146,10 @@ extern char *nl_langinfo (nl_item item);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef nl_langinfo
|
# undef nl_langinfo
|
||||||
# define nl_langinfo(i) \
|
# if HAVE_RAW_DECL_NL_LANGINFO
|
||||||
(GL_LINK_WARNING ("nl_langinfo is not portable - " \
|
_GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - "
|
||||||
"use gnulib module nl_langinfo for portability"), \
|
"use gnulib module nl_langinfo for portability");
|
||||||
nl_langinfo (i))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -34,10 +34,10 @@
|
|||||||
# include <xlocale.h>
|
# include <xlocale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
|
/* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
|
||||||
On systems that don't define it, use the same value as GNU libintl. */
|
On systems that don't define it, use the same value as GNU libintl. */
|
||||||
#if !defined LC_MESSAGES
|
#if !defined LC_MESSAGES
|
||||||
@@ -52,10 +52,10 @@ extern locale_t duplocale (locale_t locale) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef duplocale
|
# undef duplocale
|
||||||
# define duplocale(l) \
|
# if HAVE_RAW_DECL_DUPLOCALE
|
||||||
(GL_LINK_WARNING ("duplocale is buggy on some glibc systems - " \
|
_GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - "
|
||||||
"use gnulib module duplocale for portability"), \
|
"use gnulib module duplocale for portability");
|
||||||
duplocale (l))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _GL_LOCALE_H */
|
#endif /* _GL_LOCALE_H */
|
||||||
|
179
lib/math.in.h
179
lib/math.in.h
@@ -28,10 +28,10 @@
|
|||||||
#define _GL_MATH_H
|
#define _GL_MATH_H
|
||||||
|
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* Helper macros to define a portability warning for the
|
/* Helper macros to define a portability warning for the
|
||||||
classification macro FUNC called with VALUE. POSIX declares the
|
classification macro FUNC called with VALUE. POSIX declares the
|
||||||
classification macros with an argument of real-floating (that is,
|
classification macros with an argument of real-floating (that is,
|
||||||
@@ -111,10 +111,9 @@ extern double frexp (double x, int *expptr) _GL_ARG_NONNULL ((2));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef frexp
|
# undef frexp
|
||||||
# define frexp(x,e) \
|
/* Assume frexp is always declared. */
|
||||||
(GL_LINK_WARNING ("frexp is unportable - " \
|
_GL_WARN_ON_USE (frexp, "frexp is unportable - "
|
||||||
"use gnulib module frexp for portability"), \
|
"use gnulib module frexp for portability");
|
||||||
frexp (x, e))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -124,10 +123,10 @@ extern long double acosl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef acosl
|
# undef acosl
|
||||||
# define acosl(x) \
|
# if HAVE_RAW_DECL_ACOSL
|
||||||
(GL_LINK_WARNING ("acosl is unportable - " \
|
_GL_WARN_ON_USE (acosl, "acosl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
acosl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -137,10 +136,10 @@ extern long double asinl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef asinl
|
# undef asinl
|
||||||
# define asinl(x) \
|
# if HAVE_RAW_DECL_ASINL
|
||||||
(GL_LINK_WARNING ("asinl is unportable - " \
|
_GL_WARN_ON_USE (asinl, "asinl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
asinl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -150,10 +149,10 @@ extern long double atanl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef atanl
|
# undef atanl
|
||||||
# define atanl(x) \
|
# if HAVE_RAW_DECL_ATANL
|
||||||
(GL_LINK_WARNING ("atanl is unportable - " \
|
_GL_WARN_ON_USE (atanl, "atanl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
atanl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -164,10 +163,10 @@ extern float ceilf (float x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef ceilf
|
# undef ceilf
|
||||||
# define ceilf(x) \
|
# if HAVE_RAW_DECL_CEILF
|
||||||
(GL_LINK_WARNING ("ceilf is unportable - " \
|
_GL_WARN_ON_USE (ceilf, "ceilf is unportable - "
|
||||||
"use gnulib module ceilf for portability"), \
|
"use gnulib module ceilf for portability");
|
||||||
ceilf (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_CEILL@
|
#if @GNULIB_CEILL@
|
||||||
@@ -177,10 +176,10 @@ extern long double ceill (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef ceill
|
# undef ceill
|
||||||
# define ceill(x) \
|
# if HAVE_RAW_DECL_CEILL
|
||||||
(GL_LINK_WARNING ("ceill is unportable - " \
|
_GL_WARN_ON_USE (ceill, "ceill is unportable - "
|
||||||
"use gnulib module ceill for portability"), \
|
"use gnulib module ceill for portability");
|
||||||
ceill (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -194,10 +193,10 @@ extern long double cosl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef cosl
|
# undef cosl
|
||||||
# define cosl(x) \
|
# if HAVE_RAW_DECL_COSL
|
||||||
(GL_LINK_WARNING ("cosl is unportable - " \
|
_GL_WARN_ON_USE (cosl, "cosl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
cosl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -207,10 +206,10 @@ extern long double expl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef expl
|
# undef expl
|
||||||
# define expl(x) \
|
# if HAVE_RAW_DECL_EXPL
|
||||||
(GL_LINK_WARNING ("expl is unportable - " \
|
_GL_WARN_ON_USE (expl, "expl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
expl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -221,10 +220,10 @@ extern float floorf (float x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef floorf
|
# undef floorf
|
||||||
# define floorf(x) \
|
# if HAVE_RAW_DECL_FLOORF
|
||||||
(GL_LINK_WARNING ("floorf is unportable - " \
|
_GL_WARN_ON_USE (floorf, "floorf is unportable - "
|
||||||
"use gnulib module floorf for portability"), \
|
"use gnulib module floorf for portability");
|
||||||
floorf (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FLOORL@
|
#if @GNULIB_FLOORL@
|
||||||
@@ -234,10 +233,10 @@ extern long double floorl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef floorl
|
# undef floorl
|
||||||
# define floorl(x) \
|
# if HAVE_RAW_DECL_FLOORL
|
||||||
(GL_LINK_WARNING ("floorl is unportable - " \
|
_GL_WARN_ON_USE (floorl, "floorl is unportable - "
|
||||||
"use gnulib module floorl for portability"), \
|
"use gnulib module floorl for portability");
|
||||||
floorl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -256,10 +255,10 @@ extern long double frexpl (long double x, int *expptr) _GL_ARG_NONNULL ((2));
|
|||||||
#endif
|
#endif
|
||||||
#if !@GNULIB_FREXPL@ && defined GNULIB_POSIXCHECK
|
#if !@GNULIB_FREXPL@ && defined GNULIB_POSIXCHECK
|
||||||
# undef frexpl
|
# undef frexpl
|
||||||
# define frexpl(x,e) \
|
# if HAVE_RAW_DECL_FREXPL
|
||||||
(GL_LINK_WARNING ("frexpl is unportable - " \
|
_GL_WARN_ON_USE (frexpl, "frexpl is unportable - "
|
||||||
"use gnulib module frexpl for portability"), \
|
"use gnulib module frexpl for portability");
|
||||||
frexpl (x, e))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -272,10 +271,10 @@ extern long double ldexpl (long double x, int exp);
|
|||||||
#endif
|
#endif
|
||||||
#if !@GNULIB_LDEXPL@ && defined GNULIB_POSIXCHECK
|
#if !@GNULIB_LDEXPL@ && defined GNULIB_POSIXCHECK
|
||||||
# undef ldexpl
|
# undef ldexpl
|
||||||
# define ldexpl(x,e) \
|
# if HAVE_RAW_DECL_LDEXPL
|
||||||
(GL_LINK_WARNING ("ldexpl is unportable - " \
|
_GL_WARN_ON_USE (ldexpl, "ldexpl is unportable - "
|
||||||
"use gnulib module ldexpl for portability"), \
|
"use gnulib module ldexpl for portability");
|
||||||
ldexpl (x, e))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -289,10 +288,10 @@ extern long double logl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef logl
|
# undef logl
|
||||||
# define logl(x) \
|
# if HAVE_RAW_DECL_LOGL
|
||||||
(GL_LINK_WARNING ("logl is unportable - " \
|
_GL_WARN_ON_USE (logl, "logl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
logl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -304,10 +303,10 @@ extern float roundf (float x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef roundf
|
# undef roundf
|
||||||
# define roundf(x) \
|
# if HAVE_RAW_DECL_ROUNDF
|
||||||
(GL_LINK_WARNING ("roundf is unportable - " \
|
_GL_WARN_ON_USE (roundf, "roundf is unportable - "
|
||||||
"use gnulib module roundf for portability"), \
|
"use gnulib module roundf for portability");
|
||||||
roundf (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_ROUND@
|
#if @GNULIB_ROUND@
|
||||||
@@ -318,10 +317,10 @@ extern double round (double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef round
|
# undef round
|
||||||
# define round(x) \
|
# if HAVE_RAW_DECL_ROUND
|
||||||
(GL_LINK_WARNING ("round is unportable - " \
|
_GL_WARN_ON_USE (round, "round is unportable - "
|
||||||
"use gnulib module round for portability"), \
|
"use gnulib module round for portability");
|
||||||
round (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_ROUNDL@
|
#if @GNULIB_ROUNDL@
|
||||||
@@ -332,10 +331,10 @@ extern long double roundl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef roundl
|
# undef roundl
|
||||||
# define roundl(x) \
|
# if HAVE_RAW_DECL_ROUNDL
|
||||||
(GL_LINK_WARNING ("roundl is unportable - " \
|
_GL_WARN_ON_USE (roundl, "roundl is unportable - "
|
||||||
"use gnulib module roundl for portability"), \
|
"use gnulib module roundl for portability");
|
||||||
roundl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -349,10 +348,10 @@ extern long double sinl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef sinl
|
# undef sinl
|
||||||
# define sinl(x) \
|
# if HAVE_RAW_DECL_SINL
|
||||||
(GL_LINK_WARNING ("sinl is unportable - " \
|
_GL_WARN_ON_USE (sinl, "sinl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
sinl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -362,10 +361,10 @@ extern long double sqrtl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef sqrtl
|
# undef sqrtl
|
||||||
# define sqrtl(x) \
|
# if HAVE_RAW_DECL_SQRTL
|
||||||
(GL_LINK_WARNING ("sqrtl is unportable - " \
|
_GL_WARN_ON_USE (sqrtl, "sqrtl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
sqrtl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -375,10 +374,10 @@ extern long double tanl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef tanl
|
# undef tanl
|
||||||
# define tanl(x) \
|
# if HAVE_RAW_DECL_TANL
|
||||||
(GL_LINK_WARNING ("tanl is unportable - " \
|
_GL_WARN_ON_USE (tanl, "tanl is unportable - "
|
||||||
"use gnulib module mathl for portability"), \
|
"use gnulib module mathl for portability");
|
||||||
tanl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -389,10 +388,10 @@ extern float truncf (float x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef truncf
|
# undef truncf
|
||||||
# define truncf(x) \
|
# if HAVE_RAW_DECL_TRUNCF
|
||||||
(GL_LINK_WARNING ("truncf is unportable - " \
|
_GL_WARN_ON_USE (truncf, "truncf is unportable - "
|
||||||
"use gnulib module truncf for portability"), \
|
"use gnulib module truncf for portability");
|
||||||
truncf (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_TRUNC@
|
#if @GNULIB_TRUNC@
|
||||||
@@ -402,10 +401,10 @@ extern double trunc (double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef trunc
|
# undef trunc
|
||||||
# define trunc(x) \
|
# if HAVE_RAW_DECL_TRUNC
|
||||||
(GL_LINK_WARNING ("trunc is unportable - " \
|
_GL_WARN_ON_USE (trunc, "trunc is unportable - "
|
||||||
"use gnulib module trunc for portability"), \
|
"use gnulib module trunc for portability");
|
||||||
trunc (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_TRUNCL@
|
#if @GNULIB_TRUNCL@
|
||||||
@@ -416,10 +415,10 @@ extern long double truncl (long double x);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef truncl
|
# undef truncl
|
||||||
# define truncl(x) \
|
# if HAVE_RAW_DECL_TRUNCL
|
||||||
(GL_LINK_WARNING ("truncl is unportable - " \
|
_GL_WARN_ON_USE (truncl, "truncl is unportable - "
|
||||||
"use gnulib module truncl for portability"), \
|
"use gnulib module truncl for portability");
|
||||||
truncl (x))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -29,10 +29,10 @@
|
|||||||
#define _GL_SEARCH_H
|
#define _GL_SEARCH_H
|
||||||
|
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -101,25 +101,25 @@ extern void twalk (const void *vroot,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef tsearch
|
# undef tsearch
|
||||||
# define tsearch(k,v,c) \
|
# if HAVE_RAW_DECL_TSEARCH
|
||||||
(GL_LINK_WARNING ("tsearch is unportable - " \
|
_GL_WARN_ON_USE (tsearch, "tsearch is unportable - "
|
||||||
"use gnulib module tsearch for portability"), \
|
"use gnulib module tsearch for portability");
|
||||||
tsearch (k, v, c))
|
# endif
|
||||||
# undef tfind
|
# undef tfind
|
||||||
# define tfind(k,v,c) \
|
# if HAVE_RAW_DECL_TFIND
|
||||||
(GL_LINK_WARNING ("tfind is unportable - " \
|
_GL_WARN_ON_USE (tfind, "tfind is unportable - "
|
||||||
"use gnulib module tsearch for portability"), \
|
"use gnulib module tsearch for portability");
|
||||||
tfind (k, v, c))
|
# endif
|
||||||
# undef tdelete
|
# undef tdelete
|
||||||
# define tdelete(k,v,c) \
|
# if HAVE_RAW_DECL_TDELETE
|
||||||
(GL_LINK_WARNING ("tdelete is unportable - " \
|
_GL_WARN_ON_USE (tdelete, "tdelete is unportable - "
|
||||||
"use gnulib module tsearch for portability"), \
|
"use gnulib module tsearch for portability");
|
||||||
tdelete (k, v, c))
|
# endif
|
||||||
# undef twalk
|
# undef twalk
|
||||||
# define twalk(v,a) \
|
# if HAVE_RAW_DECL_TWALK
|
||||||
(GL_LINK_WARNING ("twalk is unportable - " \
|
_GL_WARN_ON_USE (twalk, "twalk is unportable - "
|
||||||
"use gnulib module tsearch for portability"), \
|
"use gnulib module tsearch for portability");
|
||||||
twalk (v, a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -35,10 +35,10 @@
|
|||||||
#ifndef _GL_SIGNAL_H
|
#ifndef _GL_SIGNAL_H
|
||||||
#define _GL_SIGNAL_H
|
#define _GL_SIGNAL_H
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* Define pid_t, uid_t.
|
/* Define pid_t, uid_t.
|
||||||
Also, mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
|
Also, mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -129,40 +129,40 @@ extern int raise (int sig);
|
|||||||
# endif /* !@HAVE_POSIX_SIGNALBLOCKING@ */
|
# endif /* !@HAVE_POSIX_SIGNALBLOCKING@ */
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef sigaddset
|
# undef sigaddset
|
||||||
# define sigaddset(s,n) \
|
# if HAVE_RAW_DECL_SIGADDSET
|
||||||
(GL_LINK_WARNING ("sigaddset is unportable - " \
|
_GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigaddset (s, n))
|
# endif
|
||||||
# undef sigdelset
|
# undef sigdelset
|
||||||
# define sigdelset(s,n) \
|
# if HAVE_RAW_DECL_SIGDELSET
|
||||||
(GL_LINK_WARNING ("sigdelset is unportable - " \
|
_GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigdelset (s, n))
|
# endif
|
||||||
# undef sigemptyset
|
# undef sigemptyset
|
||||||
# define sigemptyset(s) \
|
# if HAVE_RAW_DECL_SIGEMPTYSET
|
||||||
(GL_LINK_WARNING ("sigemptyset is unportable - " \
|
_GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigemptyset (s))
|
# endif
|
||||||
# undef sigfillset
|
# undef sigfillset
|
||||||
# define sigfillset(s) \
|
# if HAVE_RAW_DECL_SIGFILLSET
|
||||||
(GL_LINK_WARNING ("sigfillset is unportable - " \
|
_GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigfillset (s))
|
# endif
|
||||||
# undef sigismember
|
# undef sigismember
|
||||||
# define sigismember(s,n) \
|
# if HAVE_RAW_DECL_SIGISMEMBER
|
||||||
(GL_LINK_WARNING ("sigismember is unportable - " \
|
_GL_WARN_ON_USE (sigismember, "sigismember is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigismember (s, n))
|
# endif
|
||||||
# undef sigpending
|
# undef sigpending
|
||||||
# define sigpending(s) \
|
# if HAVE_RAW_DECL_SIGPENDING
|
||||||
(GL_LINK_WARNING ("sigpending is unportable - " \
|
_GL_WARN_ON_USE (sigpending, "sigpending is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigpending (s))
|
# endif
|
||||||
# undef sigprocmask
|
# undef sigprocmask
|
||||||
# define sigprocmask(h,s,o) \
|
# if HAVE_RAW_DECL_SIGPROCMASK
|
||||||
(GL_LINK_WARNING ("sigprocmask is unportable - " \
|
_GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - "
|
||||||
"use gnulib module sigprocmask for portability"), \
|
"use the gnulib module sigprocmask for portability");
|
||||||
sigprocmask (h, s, o))
|
# endif
|
||||||
#endif /* @GNULIB_SIGPROCMASK@ */
|
#endif /* @GNULIB_SIGPROCMASK@ */
|
||||||
|
|
||||||
|
|
||||||
@@ -228,10 +228,10 @@ extern int sigaction (int, const struct sigaction *restrict,
|
|||||||
# endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */
|
# endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef sigaction
|
# undef sigaction
|
||||||
# define sigaction(s,a,o) \
|
# if HAVE_RAW_DECL_SIGACTION
|
||||||
(GL_LINK_WARNING ("sigaction is unportable - " \
|
_GL_WARN_ON_USE (sigaction, "sigaction is unportable - "
|
||||||
"use gnulib module sigaction for portability"), \
|
"use the gnulib module sigaction for portability");
|
||||||
sigaction (s, a, o))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some systems don't have SA_NODEFER. */
|
/* Some systems don't have SA_NODEFER. */
|
||||||
|
172
lib/spawn.in.h
172
lib/spawn.in.h
@@ -70,10 +70,10 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
/* Data structure to contain attributes for thread creation. */
|
/* Data structure to contain attributes for thread creation. */
|
||||||
#if @REPLACE_POSIX_SPAWN@
|
#if @REPLACE_POSIX_SPAWN@
|
||||||
@@ -163,10 +163,10 @@ extern int posix_spawn (pid_t *_Restrict_ __pid,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawn
|
# undef posix_spawn
|
||||||
# define posix_spawn(a,b,c,d,e,f) \
|
# if HAVE_RAW_DECL_POSIX_SPAWN
|
||||||
(GL_LINK_WARNING ("posix_spawn is unportable - " \
|
_GL_WARN_ON_USE (posix_spawn, "posix_spawn is unportable - "
|
||||||
"use gnulib module posix_spawn for portability"), \
|
"use gnulib module posix_spawn for portability");
|
||||||
posix_spawn (a, b, c, d, e, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNP@
|
#if @GNULIB_POSIX_SPAWNP@
|
||||||
@@ -186,10 +186,10 @@ extern int posix_spawnp (pid_t *__pid, const char *__file,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnp
|
# undef posix_spawnp
|
||||||
# define posix_spawnp(a,b,c,d,e,f) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNP
|
||||||
(GL_LINK_WARNING ("posix_spawnp is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnp, "posix_spawnp is unportable - "
|
||||||
"use gnulib module posix_spawnp for portability"), \
|
"use gnulib module posix_spawnp for portability");
|
||||||
posix_spawnp (a, b, c, d, e, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -204,10 +204,10 @@ extern int posix_spawnattr_init (posix_spawnattr_t *__attr)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_init
|
# undef posix_spawnattr_init
|
||||||
# define posix_spawnattr_init(a) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_INIT
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_init is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_init, "posix_spawnattr_init is unportable - "
|
||||||
"use gnulib module posix_spawnattr_init for portability"), \
|
"use gnulib module posix_spawnattr_init for portability");
|
||||||
posix_spawnattr_init (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_DESTROY@
|
#if @GNULIB_POSIX_SPAWNATTR_DESTROY@
|
||||||
@@ -221,10 +221,10 @@ extern int posix_spawnattr_destroy (posix_spawnattr_t *__attr)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_destroy
|
# undef posix_spawnattr_destroy
|
||||||
# define posix_spawnattr_destroy(a) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_DESTROY
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_destroy is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_destroy, "posix_spawnattr_destroy is unportable - "
|
||||||
"use gnulib module posix_spawnattr_destroy for portability"), \
|
"use gnulib module posix_spawnattr_destroy for portability");
|
||||||
posix_spawnattr_destroy (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@
|
#if @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@
|
||||||
@@ -240,10 +240,10 @@ extern int posix_spawnattr_getsigdefault (const posix_spawnattr_t *_Restrict_ __
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_getsigdefault
|
# undef posix_spawnattr_getsigdefault
|
||||||
# define posix_spawnattr_getsigdefault(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGDEFAULT
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_getsigdefault is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_getsigdefault, "posix_spawnattr_getsigdefault is unportable - "
|
||||||
"use gnulib module posix_spawnattr_getsigdefault for portability"), \
|
"use gnulib module posix_spawnattr_getsigdefault for portability");
|
||||||
posix_spawnattr_getsigdefault (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@
|
#if @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@
|
||||||
@@ -258,10 +258,10 @@ extern int posix_spawnattr_setsigdefault (posix_spawnattr_t *_Restrict_ __attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_setsigdefault
|
# undef posix_spawnattr_setsigdefault
|
||||||
# define posix_spawnattr_setsigdefault(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGDEFAULT
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_setsigdefault is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_setsigdefault, "posix_spawnattr_setsigdefault is unportable - "
|
||||||
"use gnulib module posix_spawnattr_setsigdefault for portability"), \
|
"use gnulib module posix_spawnattr_setsigdefault for portability");
|
||||||
posix_spawnattr_setsigdefault (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@
|
#if @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@
|
||||||
@@ -276,10 +276,10 @@ extern int posix_spawnattr_getsigmask (const posix_spawnattr_t *_Restrict_ __att
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_getsigmask
|
# undef posix_spawnattr_getsigmask
|
||||||
# define posix_spawnattr_getsigmask(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGMASK
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_getsigmask is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_getsigmask, "posix_spawnattr_getsigmask is unportable - "
|
||||||
"use gnulib module posix_spawnattr_getsigmask for portability"), \
|
"use gnulib module posix_spawnattr_getsigmask for portability");
|
||||||
posix_spawnattr_getsigmask (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@
|
#if @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@
|
||||||
@@ -294,10 +294,10 @@ extern int posix_spawnattr_setsigmask (posix_spawnattr_t *_Restrict_ __attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_setsigmask
|
# undef posix_spawnattr_setsigmask
|
||||||
# define posix_spawnattr_setsigmask(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGMASK
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_setsigmask is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_setsigmask, "posix_spawnattr_setsigmask is unportable - "
|
||||||
"use gnulib module posix_spawnattr_setsigmask for portability"), \
|
"use gnulib module posix_spawnattr_setsigmask for portability");
|
||||||
posix_spawnattr_setsigmask (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_GETFLAGS@
|
#if @GNULIB_POSIX_SPAWNATTR_GETFLAGS@
|
||||||
@@ -312,10 +312,10 @@ extern int posix_spawnattr_getflags (const posix_spawnattr_t *_Restrict_ __attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_getflags
|
# undef posix_spawnattr_getflags
|
||||||
# define posix_spawnattr_getflags(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETFLAGS
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_getflags is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_getflags, "posix_spawnattr_getflags is unportable - "
|
||||||
"use gnulib module posix_spawnattr_getflags for portability"), \
|
"use gnulib module posix_spawnattr_getflags for portability");
|
||||||
posix_spawnattr_getflags (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_SETFLAGS@
|
#if @GNULIB_POSIX_SPAWNATTR_SETFLAGS@
|
||||||
@@ -330,10 +330,10 @@ extern int posix_spawnattr_setflags (posix_spawnattr_t *__attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_setflags
|
# undef posix_spawnattr_setflags
|
||||||
# define posix_spawnattr_setflags(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETFLAGS
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_setflags is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_setflags, "posix_spawnattr_setflags is unportable - "
|
||||||
"use gnulib module posix_spawnattr_setflags for portability"), \
|
"use gnulib module posix_spawnattr_setflags for portability");
|
||||||
posix_spawnattr_setflags (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_GETPGROUP@
|
#if @GNULIB_POSIX_SPAWNATTR_GETPGROUP@
|
||||||
@@ -348,10 +348,10 @@ extern int posix_spawnattr_getpgroup (const posix_spawnattr_t *_Restrict_ __attr
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_getpgroup
|
# undef posix_spawnattr_getpgroup
|
||||||
# define posix_spawnattr_getpgroup(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETPGROUP
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_getpgroup is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_getpgroup, "posix_spawnattr_getpgroup is unportable - "
|
||||||
"use gnulib module posix_spawnattr_getpgroup for portability"), \
|
"use gnulib module posix_spawnattr_getpgroup for portability");
|
||||||
posix_spawnattr_getpgroup (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_SETPGROUP@
|
#if @GNULIB_POSIX_SPAWNATTR_SETPGROUP@
|
||||||
@@ -366,10 +366,10 @@ extern int posix_spawnattr_setpgroup (posix_spawnattr_t *__attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_setpgroup
|
# undef posix_spawnattr_setpgroup
|
||||||
# define posix_spawnattr_setpgroup(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETPGROUP
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_setpgroup is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_setpgroup, "posix_spawnattr_setpgroup is unportable - "
|
||||||
"use gnulib module posix_spawnattr_setpgroup for portability"), \
|
"use gnulib module posix_spawnattr_setpgroup for portability");
|
||||||
posix_spawnattr_setpgroup (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@
|
#if @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@
|
||||||
@@ -384,10 +384,10 @@ extern int posix_spawnattr_getschedpolicy (const posix_spawnattr_t *_Restrict_ _
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_getschedpolicy
|
# undef posix_spawnattr_getschedpolicy
|
||||||
# define posix_spawnattr_getschedpolicy(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSCHEDPOLICY
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_getschedpolicy is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_getschedpolicy, "posix_spawnattr_getschedpolicy is unportable - "
|
||||||
"use gnulib module posix_spawnattr_getschedpolicy for portability"), \
|
"use gnulib module posix_spawnattr_getschedpolicy for portability");
|
||||||
posix_spawnattr_getschedpolicy (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@
|
#if @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@
|
||||||
@@ -402,10 +402,10 @@ extern int posix_spawnattr_setschedpolicy (posix_spawnattr_t *__attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_setschedpolicy
|
# undef posix_spawnattr_setschedpolicy
|
||||||
# define posix_spawnattr_setschedpolicy(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSCHEDPOLICY
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_setschedpolicy is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_setschedpolicy, "posix_spawnattr_setschedpolicy is unportable - "
|
||||||
"use gnulib module posix_spawnattr_setschedpolicy for portability"), \
|
"use gnulib module posix_spawnattr_setschedpolicy for portability");
|
||||||
posix_spawnattr_setschedpolicy (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@
|
#if @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@
|
||||||
@@ -420,10 +420,10 @@ extern int posix_spawnattr_getschedparam (const posix_spawnattr_t *_Restrict_ __
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_getschedparam
|
# undef posix_spawnattr_getschedparam
|
||||||
# define posix_spawnattr_getschedparam(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSCHEDPARAM
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_getschedparam is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_getschedparam, "posix_spawnattr_getschedparam is unportable - "
|
||||||
"use gnulib module posix_spawnattr_getschedparam for portability"), \
|
"use gnulib module posix_spawnattr_getschedparam for portability");
|
||||||
posix_spawnattr_getschedparam (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@
|
#if @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@
|
||||||
@@ -438,10 +438,10 @@ extern int posix_spawnattr_setschedparam (posix_spawnattr_t *_Restrict_ __attr,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawnattr_setschedparam
|
# undef posix_spawnattr_setschedparam
|
||||||
# define posix_spawnattr_setschedparam(a, b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSCHEDPARAM
|
||||||
(GL_LINK_WARNING ("posix_spawnattr_setschedparam is unportable - " \
|
_GL_WARN_ON_USE (posix_spawnattr_setschedparam, "posix_spawnattr_setschedparam is unportable - "
|
||||||
"use gnulib module posix_spawnattr_setschedparam for portability"), \
|
"use gnulib module posix_spawnattr_setschedparam for portability");
|
||||||
posix_spawnattr_setschedparam (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -456,10 +456,10 @@ extern int posix_spawn_file_actions_init (posix_spawn_file_actions_t *__file_act
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawn_file_actions_init
|
# undef posix_spawn_file_actions_init
|
||||||
# define posix_spawn_file_actions_init(a) \
|
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_INIT
|
||||||
(GL_LINK_WARNING ("posix_spawn_file_actions_init is unportable - " \
|
_GL_WARN_ON_USE (posix_spawn_file_actions_init, "posix_spawn_file_actions_init is unportable - "
|
||||||
"use gnulib module posix_spawn_file_actions_init for portability"), \
|
"use gnulib module posix_spawn_file_actions_init for portability");
|
||||||
posix_spawn_file_actions_init (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@
|
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@
|
||||||
@@ -473,10 +473,10 @@ extern int posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *__file_
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawn_file_actions_destroy
|
# undef posix_spawn_file_actions_destroy
|
||||||
# define posix_spawn_file_actions_destroy(a) \
|
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_DESTROY
|
||||||
(GL_LINK_WARNING ("posix_spawn_file_actions_destroy is unportable - " \
|
_GL_WARN_ON_USE (posix_spawn_file_actions_destroy, "posix_spawn_file_actions_destroy is unportable - "
|
||||||
"use gnulib module posix_spawn_file_actions_destroy for portability"), \
|
"use gnulib module posix_spawn_file_actions_destroy for portability");
|
||||||
posix_spawn_file_actions_destroy (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@
|
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@
|
||||||
@@ -494,10 +494,10 @@ extern int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *_Restri
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawn_file_actions_addopen
|
# undef posix_spawn_file_actions_addopen
|
||||||
# define posix_spawn_file_actions_addopen(a, b, c, d, e) \
|
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
|
||||||
(GL_LINK_WARNING ("posix_spawn_file_actions_addopen is unportable - " \
|
_GL_WARN_ON_USE (posix_spawn_file_actions_addopen, "posix_spawn_file_actions_addopen is unportable - "
|
||||||
"use gnulib module posix_spawn_file_actions_addopen for portability"), \
|
"use gnulib module posix_spawn_file_actions_addopen for portability");
|
||||||
posix_spawn_file_actions_addopen (a, b, c, d, e))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@
|
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@
|
||||||
@@ -513,10 +513,10 @@ extern int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *__file
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawn_file_actions_addclose
|
# undef posix_spawn_file_actions_addclose
|
||||||
# define posix_spawn_file_actions_addclose(a,b) \
|
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
|
||||||
(GL_LINK_WARNING ("posix_spawn_file_actions_addclose is unportable - " \
|
_GL_WARN_ON_USE (posix_spawn_file_actions_addclose, "posix_spawn_file_actions_addclose is unportable - "
|
||||||
"use gnulib module posix_spawn_file_actions_addclose for portability"), \
|
"use gnulib module posix_spawn_file_actions_addclose for portability");
|
||||||
posix_spawn_file_actions_addclose (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@
|
#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@
|
||||||
@@ -532,10 +532,10 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *__file_
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef posix_spawn_file_actions_adddup2
|
# undef posix_spawn_file_actions_adddup2
|
||||||
# define posix_spawn_file_actions_adddup2(a,b,c) \
|
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
|
||||||
(GL_LINK_WARNING ("posix_spawn_file_actions_adddup2 is unportable - " \
|
_GL_WARN_ON_USE (posix_spawn_file_actions_adddup2, "posix_spawn_file_actions_adddup2 is unportable - "
|
||||||
"use gnulib module posix_spawn_file_actions_adddup2 for portability"), \
|
"use gnulib module posix_spawn_file_actions_adddup2 for portability");
|
||||||
posix_spawn_file_actions_adddup2 (a, b, c))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
186
lib/stdio.in.h
186
lib/stdio.in.h
@@ -57,8 +57,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
/* The definition of _GL_WARN_ON_USE is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
@@ -78,10 +76,10 @@ extern int dprintf (int fd, const char *format, ...)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef dprintf
|
# undef dprintf
|
||||||
# define dprintf \
|
# if HAVE_RAW_DECL_DPRINTF
|
||||||
(GL_LINK_WARNING ("dprintf is unportable - " \
|
_GL_WARN_ON_USE (dprintf, "dprintf is unportable - "
|
||||||
"use gnulib module dprintf for portability"), \
|
"use gnulib module dprintf for portability");
|
||||||
dprintf)
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FCLOSE@
|
#if @GNULIB_FCLOSE@
|
||||||
@@ -92,11 +90,9 @@ extern int fclose (FILE *stream) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fclose
|
# undef fclose
|
||||||
# define fclose(f) \
|
/* Assume fclose is always declared. */
|
||||||
(GL_LINK_WARNING ("fclose is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - "
|
||||||
"use gnulib module fclose for portable " \
|
"use gnulib module fclose for portable POSIX compliance");
|
||||||
"POSIX compliance"), \
|
|
||||||
fclose (f))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FFLUSH@
|
#if @GNULIB_FFLUSH@
|
||||||
@@ -112,11 +108,9 @@ extern int fclose (FILE *stream) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fflush
|
# undef fflush
|
||||||
# define fflush(f) \
|
/* Assume fflush is always declared. */
|
||||||
(GL_LINK_WARNING ("fflush is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
|
||||||
"use gnulib module fflush for portable " \
|
"use gnulib module fflush for portable POSIX compliance");
|
||||||
"POSIX compliance"), \
|
|
||||||
fflush (f))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* It is very rare that the developer ever has full control of stdin,
|
/* It is very rare that the developer ever has full control of stdin,
|
||||||
@@ -134,10 +128,9 @@ extern FILE * fopen (const char *filename, const char *mode)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fopen
|
# undef fopen
|
||||||
# define fopen(f,m) \
|
/* Assume fopen is always declared. */
|
||||||
(GL_LINK_WARNING ("fopen on Win32 platforms is not POSIX compatible - " \
|
_GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - "
|
||||||
"use gnulib module fopen for portability"), \
|
"use gnulib module fopen for portability");
|
||||||
fopen (f, m))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FPRINTF_POSIX@
|
#if @GNULIB_FPRINTF_POSIX@
|
||||||
@@ -154,11 +147,10 @@ extern int fprintf (FILE *fp, const char *format, ...)
|
|||||||
_GL_ARG_NONNULL ((1, 2));
|
_GL_ARG_NONNULL ((1, 2));
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fprintf
|
# undef fprintf
|
||||||
# define fprintf \
|
/* Assume fprintf is always declared. */
|
||||||
(GL_LINK_WARNING ("fprintf is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - "
|
||||||
"use gnulib module fprintf-posix for portable " \
|
"use gnulib module fprintf-posix for portable "
|
||||||
"POSIX compliance"), \
|
"POSIX compliance");
|
||||||
fprintf)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FPURGE@
|
#if @GNULIB_FPURGE@
|
||||||
@@ -176,10 +168,10 @@ extern int fprintf (FILE *fp, const char *format, ...)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fpurge
|
# undef fpurge
|
||||||
# define fpurge(f) \
|
# if HAVE_RAW_DECL_FPURGE
|
||||||
(GL_LINK_WARNING ("fpurge is not always present - " \
|
_GL_WARN_ON_USE (fpurge, "fpurge is not always present - "
|
||||||
"use gnulib module fpurge for portability"), \
|
"use gnulib module fpurge for portability");
|
||||||
fpurge (f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_FPUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
|
#if @GNULIB_FPUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
|
||||||
@@ -203,10 +195,9 @@ extern FILE * freopen (const char *filename, const char *mode, FILE *stream)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef freopen
|
# undef freopen
|
||||||
# define freopen(f,m,s) \
|
/* Assume freopen is always declared. */
|
||||||
(GL_LINK_WARNING ("freopen on Win32 platforms is not POSIX compatible - " \
|
_GL_WARN_ON_USE (freopen, "freopen on Win32 platforms is not POSIX compatible - "
|
||||||
"use gnulib module freopen for portability"), \
|
"use gnulib module freopen for portability");
|
||||||
freopen (f, m, s))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set up the following warnings, based on which modules are in use.
|
/* Set up the following warnings, based on which modules are in use.
|
||||||
@@ -362,10 +353,10 @@ extern ssize_t getdelim (char **lineptr, size_t *linesize, int delimiter,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getdelim
|
# undef getdelim
|
||||||
# define getdelim(l, s, d, f) \
|
# if HAVE_RAW_DECL_GETDELIM
|
||||||
(GL_LINK_WARNING ("getdelim is unportable - " \
|
_GL_WARN_ON_USE (getdelim, "getdelim is unportable - "
|
||||||
"use gnulib module getdelim for portability"), \
|
"use gnulib module getdelim for portability");
|
||||||
getdelim (l, s, d, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_GETLINE@
|
#if @GNULIB_GETLINE@
|
||||||
@@ -385,10 +376,10 @@ extern ssize_t getline (char **lineptr, size_t *linesize, FILE *stream)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getline
|
# undef getline
|
||||||
# define getline(l, s, f) \
|
# if HAVE_RAW_DECL_GETLINE
|
||||||
(GL_LINK_WARNING ("getline is unportable - " \
|
_GL_WARN_ON_USE (getline, "getline is unportable - "
|
||||||
"use gnulib module getline for portability"), \
|
"use gnulib module getline for portability");
|
||||||
getline (l, s, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_OBSTACK_PRINTF@
|
#if @GNULIB_OBSTACK_PRINTF@
|
||||||
@@ -421,10 +412,9 @@ extern void perror (const char *string);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef perror
|
# undef perror
|
||||||
# define perror(s) \
|
/* Assume perror is always declared. */
|
||||||
(GL_LINK_WARNING ("perror is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - "
|
||||||
"use gnulib module perror for portability"), \
|
"use gnulib module perror for portability");
|
||||||
perror (s))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_POPEN@
|
#if @GNULIB_POPEN@
|
||||||
@@ -436,10 +426,10 @@ extern FILE *popen (const char *cmd, const char *mode)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef popen
|
# undef popen
|
||||||
# define popen(c,m) \
|
# if HAVE_RAW_DECL_POPEN
|
||||||
(GL_LINK_WARNING ("popen is buggy on some platforms - " \
|
_GL_WARN_ON_USE (popen, "popen is buggy on some platforms - "
|
||||||
"use gnulib module popen or pipe for more portability"), \
|
"use gnulib module popen or pipe for more portability");
|
||||||
popen (c, m))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_PRINTF_POSIX@
|
#if @GNULIB_PRINTF_POSIX@
|
||||||
@@ -456,18 +446,10 @@ extern int printf (const char *format, ...)
|
|||||||
__attribute__ ((__format__ (__printf__, 1, 2))) _GL_ARG_NONNULL ((1));
|
__attribute__ ((__format__ (__printf__, 1, 2))) _GL_ARG_NONNULL ((1));
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef printf
|
# undef printf
|
||||||
# define printf \
|
/* Assume printf is always declared. */
|
||||||
(GL_LINK_WARNING ("printf is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - "
|
||||||
"use gnulib module printf-posix for portable " \
|
"use gnulib module printf-posix for portable "
|
||||||
"POSIX compliance"), \
|
"POSIX compliance");
|
||||||
printf)
|
|
||||||
/* Don't break __attribute__((format(printf,M,N))). */
|
|
||||||
# define format(kind,m,n) format (__##kind##__, m, n)
|
|
||||||
# define __format__(kind,m,n) __format__ (__##kind##__, m, n)
|
|
||||||
# define ____printf____ __printf__
|
|
||||||
# define ____scanf____ __scanf__
|
|
||||||
# define ____strftime____ __strftime__
|
|
||||||
# define ____strfmon____ __strfmon__
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_PUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
|
#if @GNULIB_PUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
|
||||||
@@ -496,10 +478,9 @@ extern int remove (const char *name) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef remove
|
# undef remove
|
||||||
# define remove(n) \
|
/* Assume remove is always declared. */
|
||||||
(GL_LINK_WARNING ("remove cannot handle directories on some platforms - " \
|
_GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - "
|
||||||
"use gnulib module remove for more portability"), \
|
"use gnulib module remove for more portability");
|
||||||
remove (n))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_RENAME@
|
#if @GNULIB_RENAME@
|
||||||
@@ -511,10 +492,9 @@ extern int rename (const char *old_filename, const char *new_filename)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef rename
|
# undef rename
|
||||||
# define rename(o,n) \
|
/* Assume rename is always declared. */
|
||||||
(GL_LINK_WARNING ("rename is buggy on some platforms - " \
|
_GL_WARN_ON_USE (rename, "rename is buggy on some platforms - "
|
||||||
"use gnulib module rename for more portability"), \
|
"use gnulib module rename for more portability");
|
||||||
rename (o, n))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_RENAMEAT@
|
#if @GNULIB_RENAMEAT@
|
||||||
@@ -528,10 +508,10 @@ extern int renameat (int fd1, char const *file1, int fd2, char const *file2)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef renameat
|
# undef renameat
|
||||||
# define renameat(d1,f1,d2,f2) \
|
# if HAVE_RAW_DECL_RENAMEAT
|
||||||
(GL_LINK_WARNING ("renameat is not portable - " \
|
_GL_WARN_ON_USE (renameat, "renameat is not portable - "
|
||||||
"use gnulib module renameat for portability"), \
|
"use gnulib module renameat for portability");
|
||||||
renameat (d1, f1, d2, f2))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_SNPRINTF@
|
#if @GNULIB_SNPRINTF@
|
||||||
@@ -545,10 +525,10 @@ extern int snprintf (char *str, size_t size, const char *format, ...)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef snprintf
|
# undef snprintf
|
||||||
# define snprintf \
|
# if HAVE_RAW_DECL_SNPRINTF
|
||||||
(GL_LINK_WARNING ("snprintf is unportable - " \
|
_GL_WARN_ON_USE (snprintf, "snprintf is unportable - "
|
||||||
"use gnulib module snprintf for portability"), \
|
"use gnulib module snprintf for portability");
|
||||||
snprintf)
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some people would argue that sprintf should be handled like gets
|
/* Some people would argue that sprintf should be handled like gets
|
||||||
@@ -569,11 +549,10 @@ extern int sprintf (char *str, const char *format, ...)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef sprintf
|
# undef sprintf
|
||||||
# define sprintf \
|
/* Assume sprintf is always declared. */
|
||||||
(GL_LINK_WARNING ("sprintf is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - "
|
||||||
"use gnulib module sprintf-posix for portable " \
|
"use gnulib module sprintf-posix for portable "
|
||||||
"POSIX compliance"), \
|
"POSIX compliance");
|
||||||
sprintf)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_VASPRINTF@
|
#if @GNULIB_VASPRINTF@
|
||||||
@@ -603,10 +582,10 @@ extern int vdprintf (int fd, const char *format, va_list args)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef vdprintf
|
# undef vdprintf
|
||||||
# define vdprintf(d,f,a) \
|
# if HAVE_RAW_DECL_VDPRINTF
|
||||||
(GL_LINK_WARNING ("vdprintf is unportable - " \
|
_GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - "
|
||||||
"use gnulib module vdprintf for portability"), \
|
"use gnulib module vdprintf for portability");
|
||||||
vdprintf (d, f, a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_VFPRINTF_POSIX@
|
#if @GNULIB_VFPRINTF_POSIX@
|
||||||
@@ -623,11 +602,10 @@ extern int vfprintf (FILE *fp, const char *format, va_list args)
|
|||||||
_GL_ARG_NONNULL ((1, 2));
|
_GL_ARG_NONNULL ((1, 2));
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef vfprintf
|
# undef vfprintf
|
||||||
# define vfprintf(s,f,a) \
|
/* Assume vfprintf is always declared. */
|
||||||
(GL_LINK_WARNING ("vfprintf is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - "
|
||||||
"use gnulib module vfprintf-posix for portable " \
|
"use gnulib module vfprintf-posix for portable "
|
||||||
"POSIX compliance"), \
|
"POSIX compliance");
|
||||||
vfprintf (s, f, a))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_VPRINTF_POSIX@
|
#if @GNULIB_VPRINTF_POSIX@
|
||||||
@@ -642,11 +620,10 @@ extern int vprintf (const char *format, va_list args)
|
|||||||
__attribute__ ((__format__ (__printf__, 1, 0))) _GL_ARG_NONNULL ((1));
|
__attribute__ ((__format__ (__printf__, 1, 0))) _GL_ARG_NONNULL ((1));
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef vprintf
|
# undef vprintf
|
||||||
# define vprintf(f,a) \
|
/* Assume vprintf is always declared. */
|
||||||
(GL_LINK_WARNING ("vprintf is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - "
|
||||||
"use gnulib module vprintf-posix for portable " \
|
"use gnulib module vprintf-posix for portable "
|
||||||
"POSIX compliance"), \
|
"POSIX compliance");
|
||||||
vprintf (f, a))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_VSNPRINTF@
|
#if @GNULIB_VSNPRINTF@
|
||||||
@@ -660,10 +637,10 @@ extern int vsnprintf (char *str, size_t size, const char *format, va_list args)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef vsnprintf
|
# undef vsnprintf
|
||||||
# define vsnprintf(b,s,f,a) \
|
# if HAVE_RAW_DECL_VSNPRINTF
|
||||||
(GL_LINK_WARNING ("vsnprintf is unportable - " \
|
_GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - "
|
||||||
"use gnulib module vsnprintf for portability"), \
|
"use gnulib module vsnprintf for portability");
|
||||||
vsnprintf (b, s, f, a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_VSPRINTF_POSIX@
|
#if @GNULIB_VSPRINTF_POSIX@
|
||||||
@@ -675,11 +652,10 @@ extern int vsprintf (char *str, const char *format, va_list args)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef vsprintf
|
# undef vsprintf
|
||||||
# define vsprintf(b,f,a) \
|
/* Assume vsprintf is always declared. */
|
||||||
(GL_LINK_WARNING ("vsprintf is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - "
|
||||||
"use gnulib module vsprintf-posix for portable " \
|
"use gnulib module vsprintf-posix for portable "
|
||||||
"POSIX compliance"), \
|
"POSIX compliance");
|
||||||
vsprintf (b, f, a))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
185
lib/stdlib.in.h
185
lib/stdlib.in.h
@@ -74,10 +74,10 @@ struct random_data
|
|||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
/* Some systems do not define EXIT_*, despite otherwise supporting C89. */
|
/* Some systems do not define EXIT_*, despite otherwise supporting C89. */
|
||||||
#ifndef EXIT_SUCCESS
|
#ifndef EXIT_SUCCESS
|
||||||
@@ -105,10 +105,10 @@ extern long long atoll (const char *string) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef atoll
|
# undef atoll
|
||||||
# define atoll(s) \
|
# if HAVE_RAW_DECL_ATOLL
|
||||||
(GL_LINK_WARNING ("atoll is unportable - " \
|
_GL_WARN_ON_USE (atoll, "atoll is unportable - "
|
||||||
"use gnulib module atoll for portability"), \
|
"use gnulib module atoll for portability");
|
||||||
atoll (s))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_CALLOC_POSIX@
|
#if @GNULIB_CALLOC_POSIX@
|
||||||
@@ -119,10 +119,9 @@ extern void * calloc (size_t nmemb, size_t size);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef calloc
|
# undef calloc
|
||||||
# define calloc(n,s) \
|
/* Assume calloc is always declared. */
|
||||||
(GL_LINK_WARNING ("calloc is not POSIX compliant everywhere - " \
|
_GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - "
|
||||||
"use gnulib module calloc-posix for portability"), \
|
"use gnulib module calloc-posix for portability");
|
||||||
calloc (n, s))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_CANONICALIZE_FILE_NAME@
|
#if @GNULIB_CANONICALIZE_FILE_NAME@
|
||||||
@@ -134,10 +133,10 @@ extern char *canonicalize_file_name (const char *name) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef canonicalize_file_name
|
# undef canonicalize_file_name
|
||||||
# define canonicalize_file_name(n) \
|
# if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME
|
||||||
(GL_LINK_WARNING ("canonicalize_file_name is unportable - " \
|
_GL_WARN_ON_USE (canonicalize_file_name, "canonicalize_file_name is unportable - "
|
||||||
"use gnulib module canonicalize-lgpl for portability"), \
|
"use gnulib module canonicalize-lgpl for portability");
|
||||||
canonicalize_file_name (n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_GETLOADAVG@
|
#if @GNULIB_GETLOADAVG@
|
||||||
@@ -150,10 +149,10 @@ extern int getloadavg (double loadavg[], int nelem) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getloadavg
|
# undef getloadavg
|
||||||
# define getloadavg(l,n) \
|
# if HAVE_RAW_DECL_GETLOADAVG
|
||||||
(GL_LINK_WARNING ("getloadavg is not portable - " \
|
_GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - "
|
||||||
"use gnulib module getloadavg for portability"), \
|
"use gnulib module getloadavg for portability");
|
||||||
getloadavg (l, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_GETSUBOPT@
|
#if @GNULIB_GETSUBOPT@
|
||||||
@@ -174,10 +173,10 @@ extern int getsubopt (char **optionp, char *const *tokens, char **valuep)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getsubopt
|
# undef getsubopt
|
||||||
# define getsubopt(o,t,v) \
|
# if HAVE_RAW_DECL_GETSUBOPT
|
||||||
(GL_LINK_WARNING ("getsubopt is unportable - " \
|
_GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - "
|
||||||
"use gnulib module getsubopt for portability"), \
|
"use gnulib module getsubopt for portability");
|
||||||
getsubopt (o, t, v))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_MALLOC_POSIX@
|
#if @GNULIB_MALLOC_POSIX@
|
||||||
@@ -188,10 +187,9 @@ extern void * malloc (size_t size);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef malloc
|
# undef malloc
|
||||||
# define malloc(s) \
|
/* Assume malloc is always declared. */
|
||||||
(GL_LINK_WARNING ("malloc is not POSIX compliant everywhere - " \
|
_GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
|
||||||
"use gnulib module malloc-posix for portability"), \
|
"use gnulib module malloc-posix for portability");
|
||||||
malloc (s))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_MKDTEMP@
|
#if @GNULIB_MKDTEMP@
|
||||||
@@ -205,10 +203,10 @@ extern char * mkdtemp (char * /*template*/) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkdtemp
|
# undef mkdtemp
|
||||||
# define mkdtemp(t) \
|
# if HAVE_RAW_DECL_MKDTEMP
|
||||||
(GL_LINK_WARNING ("mkdtemp is unportable - " \
|
_GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - "
|
||||||
"use gnulib module mkdtemp for portability"), \
|
"use gnulib module mkdtemp for portability");
|
||||||
mkdtemp (t))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_MKOSTEMP@
|
#if @GNULIB_MKOSTEMP@
|
||||||
@@ -229,10 +227,10 @@ extern int mkostemp (char * /*template*/, int /*flags*/) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkostemp
|
# undef mkostemp
|
||||||
# define mkostemp(t,f) \
|
# if HAVE_RAW_DECL_MKOSTEMP
|
||||||
(GL_LINK_WARNING ("mkostemp is unportable - " \
|
_GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - "
|
||||||
"use gnulib module mkostemp for portability"), \
|
"use gnulib module mkostemp for portability");
|
||||||
mkostemp (t, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_MKOSTEMPS@
|
#if @GNULIB_MKOSTEMPS@
|
||||||
@@ -255,10 +253,10 @@ extern int mkostemps (char * /*template*/, int /*suffixlen*/, int /*flags*/)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkostemps
|
# undef mkostemps
|
||||||
# define mkostemps(t,s,f) \
|
# if HAVE_RAW_DECL_MKOSTEMPS
|
||||||
(GL_LINK_WARNING ("mkostemps is unportable - " \
|
_GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - "
|
||||||
"use gnulib module mkostemps for portability"), \
|
"use gnulib module mkostemps for portability");
|
||||||
mkostemps (t, s, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_MKSTEMP@
|
#if @GNULIB_MKSTEMP@
|
||||||
@@ -277,10 +275,10 @@ extern int mkstemp (char * /*template*/) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkstemp
|
# undef mkstemp
|
||||||
# define mkstemp(t) \
|
# if HAVE_RAW_DECL_MKSTEMP
|
||||||
(GL_LINK_WARNING ("mkstemp is unportable - " \
|
_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - "
|
||||||
"use gnulib module mkstemp for portability"), \
|
"use gnulib module mkstemp for portability");
|
||||||
mkstemp (t))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_MKSTEMPS@
|
#if @GNULIB_MKSTEMPS@
|
||||||
@@ -300,10 +298,10 @@ extern int mkstemps (char * /*template*/, int /*suffixlen*/)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkstemps
|
# undef mkstemps
|
||||||
# define mkstemps(t,s) \
|
# if HAVE_RAW_DECL_MKSTEMPS
|
||||||
(GL_LINK_WARNING ("mkstemps is unportable - " \
|
_GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - "
|
||||||
"use gnulib module mkstemps for portability"), \
|
"use gnulib module mkstemps for portability");
|
||||||
mkstemps (t, s))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_PUTENV@
|
#if @GNULIB_PUTENV@
|
||||||
@@ -333,25 +331,25 @@ int random_r (struct random_data *buf, int32_t *result)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef random_r
|
# undef random_r
|
||||||
# define random_r(b,r) \
|
# if HAVE_RAW_DECL_RANDOM_R
|
||||||
(GL_LINK_WARNING ("random_r is unportable - " \
|
_GL_WARN_ON_USE (random_r, "random_r is unportable - "
|
||||||
"use gnulib module random_r for portability"), \
|
"use gnulib module random_r for portability");
|
||||||
random_r (b,r))
|
# endif
|
||||||
# undef initstate_r
|
# undef initstate_r
|
||||||
# define initstate_r(s,b,sz,r) \
|
# if HAVE_RAW_DECL_INITSTATE_R
|
||||||
(GL_LINK_WARNING ("initstate_r is unportable - " \
|
_GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - "
|
||||||
"use gnulib module random_r for portability"), \
|
"use gnulib module random_r for portability");
|
||||||
initstate_r (s,b,sz,r))
|
# endif
|
||||||
# undef srandom_r
|
# undef srandom_r
|
||||||
# define srandom_r(s,r) \
|
# if HAVE_RAW_DECL_SRANDOM_R
|
||||||
(GL_LINK_WARNING ("srandom_r is unportable - " \
|
_GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - "
|
||||||
"use gnulib module random_r for portability"), \
|
"use gnulib module random_r for portability");
|
||||||
srandom_r (s,r))
|
# endif
|
||||||
# undef setstate_r
|
# undef setstate_r
|
||||||
# define setstate_r(a,r) \
|
# if HAVE_RAW_DECL_SETSTATE_R
|
||||||
(GL_LINK_WARNING ("setstate_r is unportable - " \
|
_GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - "
|
||||||
"use gnulib module random_r for portability"), \
|
"use gnulib module random_r for portability");
|
||||||
setstate_r (a,r))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_REALLOC_POSIX@
|
#if @GNULIB_REALLOC_POSIX@
|
||||||
@@ -362,10 +360,9 @@ extern void * realloc (void *ptr, size_t size);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef realloc
|
# undef realloc
|
||||||
# define realloc(p,s) \
|
/* Assume realloc is always declared. */
|
||||||
(GL_LINK_WARNING ("realloc is not POSIX compliant everywhere - " \
|
_GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - "
|
||||||
"use gnulib module realloc-posix for portability"), \
|
"use gnulib module realloc-posix for portability");
|
||||||
realloc (p, s))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_REALPATH@
|
#if @GNULIB_REALPATH@
|
||||||
@@ -377,10 +374,10 @@ extern char *realpath (const char *name, char *resolved) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef realpath
|
# undef realpath
|
||||||
# define realpath(n,r) \
|
# if HAVE_RAW_DECL_REALPATH
|
||||||
(GL_LINK_WARNING ("realpath is unportable - use gnulib module " \
|
_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module "
|
||||||
"canonicalize or canonicalize-lgpl for portability"), \
|
"canonicalize or canonicalize-lgpl for portability");
|
||||||
realpath (n, r))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_RPMATCH@
|
#if @GNULIB_RPMATCH@
|
||||||
@@ -391,10 +388,10 @@ extern int rpmatch (const char *response) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef rpmatch
|
# undef rpmatch
|
||||||
# define rpmatch(r) \
|
# if HAVE_RAW_DECL_RPMATCH
|
||||||
(GL_LINK_WARNING ("rpmatch is unportable - " \
|
_GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - "
|
||||||
"use gnulib module rpmatch for portability"), \
|
"use gnulib module rpmatch for portability");
|
||||||
rpmatch (r))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_SETENV@
|
#if @GNULIB_SETENV@
|
||||||
@@ -410,10 +407,10 @@ extern int setenv (const char *name, const char *value, int replace)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef setenv
|
# undef setenv
|
||||||
# define setenv(n,v,o) \
|
# if HAVE_RAW_DECL_SETENV
|
||||||
(GL_LINK_WARNING ("setenv is unportable - " \
|
_GL_WARN_ON_USE (setenv, "setenv is unportable - "
|
||||||
"use gnulib module setenv for portability"), \
|
"use gnulib module setenv for portability");
|
||||||
setenv (n, v, o))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRTOD@
|
#if @GNULIB_STRTOD@
|
||||||
@@ -426,10 +423,10 @@ extern double strtod (const char *str, char **endp) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strtod
|
# undef strtod
|
||||||
# define strtod(s, e) \
|
# if HAVE_RAW_DECL_STRTOD
|
||||||
(GL_LINK_WARNING ("strtod is unportable - " \
|
_GL_WARN_ON_USE (strtod, "strtod is unportable - "
|
||||||
"use gnulib module strtod for portability"), \
|
"use gnulib module strtod for portability");
|
||||||
strtod (s, e))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRTOLL@
|
#if @GNULIB_STRTOLL@
|
||||||
@@ -447,10 +444,10 @@ extern long long strtoll (const char *string, char **endptr, int base)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strtoll
|
# undef strtoll
|
||||||
# define strtoll(s,e,b) \
|
# if HAVE_RAW_DECL_STRTOLL
|
||||||
(GL_LINK_WARNING ("strtoll is unportable - " \
|
_GL_WARN_ON_USE (strtoll, "strtoll is unportable - "
|
||||||
"use gnulib module strtoll for portability"), \
|
"use gnulib module strtoll for portability");
|
||||||
strtoll (s, e, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRTOULL@
|
#if @GNULIB_STRTOULL@
|
||||||
@@ -468,10 +465,10 @@ extern unsigned long long strtoull (const char *string, char **endptr, int base)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strtoull
|
# undef strtoull
|
||||||
# define strtoull(s,e,b) \
|
# if HAVE_RAW_DECL_STRTOULL
|
||||||
(GL_LINK_WARNING ("strtoull is unportable - " \
|
_GL_WARN_ON_USE (strtoull, "strtoull is unportable - "
|
||||||
"use gnulib module strtoull for portability"), \
|
"use gnulib module strtoull for portability");
|
||||||
strtoull (s, e, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_UNSETENV@
|
#if @GNULIB_UNSETENV@
|
||||||
@@ -485,10 +482,10 @@ extern int unsetenv (const char *name) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef unsetenv
|
# undef unsetenv
|
||||||
# define unsetenv(n) \
|
# if HAVE_RAW_DECL_UNSETENV
|
||||||
(GL_LINK_WARNING ("unsetenv is unportable - " \
|
_GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - "
|
||||||
"use gnulib module unsetenv for portability"), \
|
"use gnulib module unsetenv for portability");
|
||||||
unsetenv (n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
230
lib/string.in.h
230
lib/string.in.h
@@ -48,10 +48,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -67,10 +67,9 @@ extern void *memchr (void const *__s, int __c, size_t __n)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef memchr
|
# undef memchr
|
||||||
# define memchr(s,c,n) \
|
/* Assume memchr is always declared. */
|
||||||
(GL_LINK_WARNING ("memchr has platform-specific bugs - " \
|
_GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
|
||||||
"use gnulib module memchr for portability" ), \
|
"use gnulib module memchr for portability" );
|
||||||
memchr (s, c, n))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Return the first occurrence of NEEDLE in HAYSTACK. */
|
/* Return the first occurrence of NEEDLE in HAYSTACK. */
|
||||||
@@ -85,11 +84,11 @@ extern void *memmem (void const *__haystack, size_t __haystack_len,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef memmem
|
# undef memmem
|
||||||
# define memmem(a,al,b,bl) \
|
# if HAVE_RAW_DECL_MEMMEM
|
||||||
(GL_LINK_WARNING ("memmem is unportable and often quadratic - " \
|
_GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - "
|
||||||
"use gnulib module memmem-simple for portability, " \
|
"use gnulib module memmem-simple for portability, "
|
||||||
"and module memmem for speed" ), \
|
"and module memmem for speed" );
|
||||||
memmem (a, al, b, bl))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
|
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
|
||||||
@@ -102,10 +101,10 @@ extern void *mempcpy (void *restrict __dest, void const *restrict __src,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mempcpy
|
# undef mempcpy
|
||||||
# define mempcpy(a,b,n) \
|
# if HAVE_RAW_DECL_MEMPCPY
|
||||||
(GL_LINK_WARNING ("mempcpy is unportable - " \
|
_GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - "
|
||||||
"use gnulib module mempcpy for portability"), \
|
"use gnulib module mempcpy for portability");
|
||||||
mempcpy (a, b, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Search backwards through a block for a byte (specified as an int). */
|
/* Search backwards through a block for a byte (specified as an int). */
|
||||||
@@ -116,10 +115,10 @@ extern void *memrchr (void const *, int, size_t)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef memrchr
|
# undef memrchr
|
||||||
# define memrchr(a,b,c) \
|
# if HAVE_RAW_DECL_MEMRCHR
|
||||||
(GL_LINK_WARNING ("memrchr is unportable - " \
|
_GL_WARN_ON_USE (memrchr, "memrchr is unportable - "
|
||||||
"use gnulib module memrchr for portability"), \
|
"use gnulib module memrchr for portability");
|
||||||
memrchr (a, b, c))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find the first occurrence of C in S. More efficient than
|
/* Find the first occurrence of C in S. More efficient than
|
||||||
@@ -132,10 +131,10 @@ extern void *rawmemchr (void const *__s, int __c_in)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef rawmemchr
|
# undef rawmemchr
|
||||||
# define rawmemchr(a,b) \
|
# if HAVE_RAW_DECL_RAWMEMCHR
|
||||||
(GL_LINK_WARNING ("rawmemchr is unportable - " \
|
_GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - "
|
||||||
"use gnulib module rawmemchr for portability"), \
|
"use gnulib module rawmemchr for portability");
|
||||||
rawmemchr (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Copy SRC to DST, returning the address of the terminating '\0' in DST. */
|
/* Copy SRC to DST, returning the address of the terminating '\0' in DST. */
|
||||||
@@ -146,10 +145,10 @@ extern char *stpcpy (char *restrict __dst, char const *restrict __src)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef stpcpy
|
# undef stpcpy
|
||||||
# define stpcpy(a,b) \
|
# if HAVE_RAW_DECL_STPCPY
|
||||||
(GL_LINK_WARNING ("stpcpy is unportable - " \
|
_GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - "
|
||||||
"use gnulib module stpcpy for portability"), \
|
"use gnulib module stpcpy for portability");
|
||||||
stpcpy (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Copy no more than N bytes of SRC to DST, returning a pointer past the
|
/* Copy no more than N bytes of SRC to DST, returning a pointer past the
|
||||||
@@ -163,21 +162,20 @@ extern char *stpncpy (char *restrict __dst, char const *restrict __src,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef stpncpy
|
# undef stpncpy
|
||||||
# define stpncpy(a,b,n) \
|
# if HAVE_RAW_DECL_STPNCPY
|
||||||
(GL_LINK_WARNING ("stpncpy is unportable - " \
|
_GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
|
||||||
"use gnulib module stpncpy for portability"), \
|
"use gnulib module stpncpy for portability");
|
||||||
stpncpy (a, b, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined GNULIB_POSIXCHECK
|
#if defined GNULIB_POSIXCHECK
|
||||||
/* strchr() does not work with multibyte strings if the locale encoding is
|
/* strchr() does not work with multibyte strings if the locale encoding is
|
||||||
GB18030 and the character to be searched is a digit. */
|
GB18030 and the character to be searched is a digit. */
|
||||||
# undef strchr
|
# undef strchr
|
||||||
# define strchr(s,c) \
|
/* Assume strchr is always declared. */
|
||||||
(GL_LINK_WARNING ("strchr cannot work correctly on character strings " \
|
_GL_WARN_ON_USE (strchr, "strchr cannot work correctly on character strings "
|
||||||
"in some multibyte locales - " \
|
"in some multibyte locales - "
|
||||||
"use mbschr if you care about internationalization"), \
|
"use mbschr if you care about internationalization");
|
||||||
strchr (s, c))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find the first occurrence of C in S or the final NUL byte. */
|
/* Find the first occurrence of C in S or the final NUL byte. */
|
||||||
@@ -188,10 +186,10 @@ extern char *strchrnul (char const *__s, int __c_in)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strchrnul
|
# undef strchrnul
|
||||||
# define strchrnul(a,b) \
|
# if HAVE_RAW_DECL_STRCHRNUL
|
||||||
(GL_LINK_WARNING ("strchrnul is unportable - " \
|
_GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - "
|
||||||
"use gnulib module strchrnul for portability"), \
|
"use gnulib module strchrnul for portability");
|
||||||
strchrnul (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Duplicate S, returning an identical malloc'd string. */
|
/* Duplicate S, returning an identical malloc'd string. */
|
||||||
@@ -205,10 +203,10 @@ extern char *strdup (char const *__s) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strdup
|
# undef strdup
|
||||||
# define strdup(a) \
|
# if HAVE_RAW_DECL_STRDUP
|
||||||
(GL_LINK_WARNING ("strdup is unportable - " \
|
_GL_WARN_ON_USE (strdup, "strdup is unportable - "
|
||||||
"use gnulib module strdup for portability"), \
|
"use gnulib module strdup for portability");
|
||||||
strdup (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Return a newly allocated copy of at most N bytes of STRING. */
|
/* Return a newly allocated copy of at most N bytes of STRING. */
|
||||||
@@ -222,10 +220,10 @@ extern char *strndup (char const *__string, size_t __n) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strndup
|
# undef strndup
|
||||||
# define strndup(a,n) \
|
# if HAVE_RAW_DECL_STRNDUP
|
||||||
(GL_LINK_WARNING ("strndup is unportable - " \
|
_GL_WARN_ON_USE (strndup, "strndup is unportable - "
|
||||||
"use gnulib module strndup for portability"), \
|
"use gnulib module strndup for portability");
|
||||||
strndup (a, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find the length (number of bytes) of STRING, but scan at most
|
/* Find the length (number of bytes) of STRING, but scan at most
|
||||||
@@ -238,10 +236,10 @@ extern size_t strnlen (char const *__string, size_t __maxlen)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strnlen
|
# undef strnlen
|
||||||
# define strnlen(a,n) \
|
# if HAVE_RAW_DECL_STRNLEN
|
||||||
(GL_LINK_WARNING ("strnlen is unportable - " \
|
_GL_WARN_ON_USE (strnlen, "strnlen is unportable - "
|
||||||
"use gnulib module strnlen for portability"), \
|
"use gnulib module strnlen for portability");
|
||||||
strnlen (a, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined GNULIB_POSIXCHECK
|
#if defined GNULIB_POSIXCHECK
|
||||||
@@ -250,11 +248,10 @@ extern size_t strnlen (char const *__string, size_t __maxlen)
|
|||||||
locale encoding is GB18030 and one of the characters to be searched is a
|
locale encoding is GB18030 and one of the characters to be searched is a
|
||||||
digit. */
|
digit. */
|
||||||
# undef strcspn
|
# undef strcspn
|
||||||
# define strcspn(s,a) \
|
/* Assume strcspn is always declared. */
|
||||||
(GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \
|
_GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings "
|
||||||
"in multibyte locales - " \
|
"in multibyte locales - "
|
||||||
"use mbscspn if you care about internationalization"), \
|
"use mbscspn if you care about internationalization");
|
||||||
strcspn (s, a))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find the first occurrence in S of any character in ACCEPT. */
|
/* Find the first occurrence in S of any character in ACCEPT. */
|
||||||
@@ -269,40 +266,36 @@ extern char *strpbrk (char const *__s, char const *__accept)
|
|||||||
locale encoding is GB18030 and one of the characters to be searched is a
|
locale encoding is GB18030 and one of the characters to be searched is a
|
||||||
digit. */
|
digit. */
|
||||||
# undef strpbrk
|
# undef strpbrk
|
||||||
# define strpbrk(s,a) \
|
_GL_WARN_ON_USE (strpbrk, "strpbrk cannot work correctly on character strings "
|
||||||
(GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \
|
"in multibyte locales - "
|
||||||
"in multibyte locales - " \
|
"use mbspbrk if you care about internationalization");
|
||||||
"use mbspbrk if you care about internationalization"), \
|
|
||||||
strpbrk (s, a))
|
|
||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strpbrk
|
# undef strpbrk
|
||||||
# define strpbrk(s,a) \
|
# if HAVE_RAW_DECL_STRPBRK
|
||||||
(GL_LINK_WARNING ("strpbrk is unportable - " \
|
_GL_WARN_ON_USE (strpbrk, "strpbrk is unportable - "
|
||||||
"use gnulib module strpbrk for portability"), \
|
"use gnulib module strpbrk for portability");
|
||||||
strpbrk (s, a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined GNULIB_POSIXCHECK
|
#if defined GNULIB_POSIXCHECK
|
||||||
/* strspn() assumes the second argument is a list of single-byte characters.
|
/* strspn() assumes the second argument is a list of single-byte characters.
|
||||||
Even in this simple case, it cannot work with multibyte strings. */
|
Even in this simple case, it cannot work with multibyte strings. */
|
||||||
# undef strspn
|
# undef strspn
|
||||||
# define strspn(s,a) \
|
/* Assume strspn is always declared. */
|
||||||
(GL_LINK_WARNING ("strspn cannot work correctly on character strings " \
|
_GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
|
||||||
"in multibyte locales - " \
|
"in multibyte locales - "
|
||||||
"use mbsspn if you care about internationalization"), \
|
"use mbsspn if you care about internationalization");
|
||||||
strspn (s, a))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined GNULIB_POSIXCHECK
|
#if defined GNULIB_POSIXCHECK
|
||||||
/* strrchr() does not work with multibyte strings if the locale encoding is
|
/* strrchr() does not work with multibyte strings if the locale encoding is
|
||||||
GB18030 and the character to be searched is a digit. */
|
GB18030 and the character to be searched is a digit. */
|
||||||
# undef strrchr
|
# undef strrchr
|
||||||
# define strrchr(s,c) \
|
/* Assume strrchr is always declared. */
|
||||||
(GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \
|
_GL_WARN_ON_USE (strrchr, "strrchr cannot work correctly on character strings "
|
||||||
"in some multibyte locales - " \
|
"in some multibyte locales - "
|
||||||
"use mbsrchr if you care about internationalization"), \
|
"use mbsrchr if you care about internationalization");
|
||||||
strrchr (s, c))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Search the next delimiter (char listed in DELIM) starting at *STRINGP.
|
/* Search the next delimiter (char listed in DELIM) starting at *STRINGP.
|
||||||
@@ -328,18 +321,16 @@ extern char *strsep (char **restrict __stringp, char const *restrict __delim)
|
|||||||
# endif
|
# endif
|
||||||
# if defined GNULIB_POSIXCHECK
|
# if defined GNULIB_POSIXCHECK
|
||||||
# undef strsep
|
# undef strsep
|
||||||
# define strsep(s,d) \
|
_GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings "
|
||||||
(GL_LINK_WARNING ("strsep cannot work correctly on character strings " \
|
"in multibyte locales - "
|
||||||
"in multibyte locales - " \
|
"use mbssep if you care about internationalization");
|
||||||
"use mbssep if you care about internationalization"), \
|
|
||||||
strsep (s, d))
|
|
||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strsep
|
# undef strsep
|
||||||
# define strsep(s,d) \
|
# if HAVE_RAW_DECL_STRSEP
|
||||||
(GL_LINK_WARNING ("strsep is unportable - " \
|
_GL_WARN_ON_USE (strsep, "strsep is unportable - "
|
||||||
"use gnulib module strsep for portability"), \
|
"use gnulib module strsep for portability");
|
||||||
strsep (s, d))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRSTR@
|
#if @GNULIB_STRSTR@
|
||||||
@@ -354,13 +345,12 @@ extern char *strstr (const char *haystack, const char *needle)
|
|||||||
POSIX says that it operates on "strings", and "string" in POSIX is defined
|
POSIX says that it operates on "strings", and "string" in POSIX is defined
|
||||||
as a sequence of bytes, not of characters. */
|
as a sequence of bytes, not of characters. */
|
||||||
# undef strstr
|
# undef strstr
|
||||||
# define strstr(a,b) \
|
/* Assume strstr is always declared. */
|
||||||
(GL_LINK_WARNING ("strstr is quadratic on many systems, and cannot " \
|
_GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot "
|
||||||
"work correctly on character strings in most " \
|
"work correctly on character strings in most "
|
||||||
"multibyte locales - " \
|
"multibyte locales - "
|
||||||
"use mbsstr if you care about internationalization, " \
|
"use mbsstr if you care about internationalization, "
|
||||||
"or use strstr if you care about speed"), \
|
"or use strstr if you care about speed");
|
||||||
strstr (a, b))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive
|
/* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive
|
||||||
@@ -378,13 +368,13 @@ extern char *strcasestr (const char *haystack, const char *needle)
|
|||||||
It is a glibc extension, and glibc implements it only for unibyte
|
It is a glibc extension, and glibc implements it only for unibyte
|
||||||
locales. */
|
locales. */
|
||||||
# undef strcasestr
|
# undef strcasestr
|
||||||
# define strcasestr(a,b) \
|
# if HAVE_RAW_DECL_STRCASESTR
|
||||||
(GL_LINK_WARNING ("strcasestr does work correctly on character strings " \
|
_GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character "
|
||||||
"in multibyte locales - " \
|
"strings in multibyte locales - "
|
||||||
"use mbscasestr if you care about " \
|
"use mbscasestr if you care about "
|
||||||
"internationalization, or use c-strcasestr if you want " \
|
"internationalization, or use c-strcasestr if you want "
|
||||||
"a locale independent function"), \
|
"a locale independent function");
|
||||||
strcasestr (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Parse S into tokens separated by characters in DELIM.
|
/* Parse S into tokens separated by characters in DELIM.
|
||||||
@@ -413,7 +403,7 @@ extern char *strcasestr (const char *haystack, const char *needle)
|
|||||||
# if @REPLACE_STRTOK_R@
|
# if @REPLACE_STRTOK_R@
|
||||||
# undef strtok_r
|
# undef strtok_r
|
||||||
# define strtok_r rpl_strtok_r
|
# define strtok_r rpl_strtok_r
|
||||||
# elif @UNDEFINE_STRTOK_R@
|
# elif @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK
|
||||||
# undef strtok_r
|
# undef strtok_r
|
||||||
# endif
|
# endif
|
||||||
# if ! @HAVE_DECL_STRTOK_R@ || @REPLACE_STRTOK_R@
|
# if ! @HAVE_DECL_STRTOK_R@ || @REPLACE_STRTOK_R@
|
||||||
@@ -422,19 +412,16 @@ extern char *strtok_r (char *restrict s, char const *restrict delim,
|
|||||||
_GL_ARG_NONNULL ((2, 3));
|
_GL_ARG_NONNULL ((2, 3));
|
||||||
# endif
|
# endif
|
||||||
# if defined GNULIB_POSIXCHECK
|
# if defined GNULIB_POSIXCHECK
|
||||||
# undef strtok_r
|
_GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character "
|
||||||
# define strtok_r(s,d,p) \
|
"strings in multibyte locales - "
|
||||||
(GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \
|
"use mbstok_r if you care about internationalization");
|
||||||
"in multibyte locales - " \
|
|
||||||
"use mbstok_r if you care about internationalization"), \
|
|
||||||
strtok_r (s, d, p))
|
|
||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strtok_r
|
# undef strtok_r
|
||||||
# define strtok_r(s,d,p) \
|
# if HAVE_RAW_DECL_STRTOK_R
|
||||||
(GL_LINK_WARNING ("strtok_r is unportable - " \
|
_GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - "
|
||||||
"use gnulib module strtok_r for portability"), \
|
"use gnulib module strtok_r for portability");
|
||||||
strtok_r (s, d, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -614,10 +601,9 @@ extern char *strerror (int);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strerror
|
# undef strerror
|
||||||
# define strerror(e) \
|
/* Assume strerror is always declared. */
|
||||||
(GL_LINK_WARNING ("strerror is unportable - " \
|
_GL_WARN_ON_USE (strerror, "strerror is unportable - "
|
||||||
"use gnulib module strerror to guarantee non-NULL result"), \
|
"use gnulib module strerror to guarantee non-NULL result");
|
||||||
strerror (e))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRSIGNAL@
|
#if @GNULIB_STRSIGNAL@
|
||||||
@@ -629,10 +615,10 @@ extern char *strsignal (int __sig);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strsignal
|
# undef strsignal
|
||||||
# define strsignal(a) \
|
# if HAVE_RAW_DECL_STRSIGNAL
|
||||||
(GL_LINK_WARNING ("strsignal is unportable - " \
|
_GL_WARN_ON_USE (strsignal, "strsignal is unportable - "
|
||||||
"use gnulib module strsignal for portability"), \
|
"use gnulib module strsignal for portability");
|
||||||
strsignal (a))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_STRVERSCMP@
|
#if @GNULIB_STRVERSCMP@
|
||||||
@@ -641,10 +627,10 @@ extern int strverscmp (const char *, const char *) _GL_ARG_NONNULL ((1, 2));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef strverscmp
|
# undef strverscmp
|
||||||
# define strverscmp(a, b) \
|
# if HAVE_RAW_DECL_STRVERSCMP
|
||||||
(GL_LINK_WARNING ("strverscmp is unportable - " \
|
_GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - "
|
||||||
"use gnulib module strverscmp for portability"), \
|
"use gnulib module strverscmp for portability");
|
||||||
strverscmp (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -29,10 +29,9 @@
|
|||||||
#define _GL_STRINGS_H
|
#define _GL_STRINGS_H
|
||||||
|
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -52,14 +51,14 @@ extern int strcasecmp (char const *s1, char const *s2)
|
|||||||
POSIX says that it operates on "strings", and "string" in POSIX is defined
|
POSIX says that it operates on "strings", and "string" in POSIX is defined
|
||||||
as a sequence of bytes, not of characters. */
|
as a sequence of bytes, not of characters. */
|
||||||
# undef strcasecmp
|
# undef strcasecmp
|
||||||
# define strcasecmp(a,b) \
|
# if HAVE_RAW_DECL_STRCASECMP
|
||||||
(GL_LINK_WARNING ("strcasecmp cannot work correctly on character strings " \
|
_GL_WARN_ON_USE (strcasecmp, "strcasecmp cannot work correctly on character "
|
||||||
"in multibyte locales - " \
|
"strings in multibyte locales - "
|
||||||
"use mbscasecmp if you care about " \
|
"use mbscasecmp if you care about "
|
||||||
"internationalization, or use c_strcasecmp (from " \
|
"internationalization, or use c_strcasecmp , "
|
||||||
"gnulib module c-strcase) if you want a locale " \
|
"gnulib module c-strcase) if you want a locale "
|
||||||
"independent function"), \
|
"independent function");
|
||||||
strcasecmp (a, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Compare no more than N bytes of strings S1 and S2, ignoring case,
|
/* Compare no more than N bytes of strings S1 and S2, ignoring case,
|
||||||
@@ -75,14 +74,14 @@ extern int strncasecmp (char const *s1, char const *s2, size_t n)
|
|||||||
POSIX says that it operates on "strings", and "string" in POSIX is defined
|
POSIX says that it operates on "strings", and "string" in POSIX is defined
|
||||||
as a sequence of bytes, not of characters. */
|
as a sequence of bytes, not of characters. */
|
||||||
# undef strncasecmp
|
# undef strncasecmp
|
||||||
# define strncasecmp(a,b,n) \
|
# if HAVE_RAW_DECL_STRNCASECMP
|
||||||
(GL_LINK_WARNING ("strncasecmp cannot work correctly on character " \
|
_GL_WARN_ON_USE (strncasecmp, "strncasecmp cannot work correctly on character "
|
||||||
"strings in multibyte locales - " \
|
"strings in multibyte locales - "
|
||||||
"use mbsncasecmp or mbspcasecmp if you care about " \
|
"use mbsncasecmp or mbspcasecmp if you care about "
|
||||||
"internationalization, or use c_strncasecmp (from " \
|
"internationalization, or use c_strncasecmp , "
|
||||||
"gnulib module c-strcase) if you want a locale " \
|
"gnulib module c-strcase) if you want a locale "
|
||||||
"independent function"), \
|
"independent function");
|
||||||
strncasecmp (a, b, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
# define LOCK_NB 4 /* Don't block when locking. */
|
# define LOCK_NB 4 /* Don't block when locking. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
#if @GNULIB_FLOCK@
|
#if @GNULIB_FLOCK@
|
||||||
/* Apply or remove advisory locks on an open file.
|
/* Apply or remove advisory locks on an open file.
|
||||||
@@ -51,10 +51,10 @@ extern int flock (int fd, int operation);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef flock
|
# undef flock
|
||||||
# define flock(fd,op) \
|
# if HAVE_RAW_DECL_FLOCK
|
||||||
(GL_LINK_WARNING ("flock is unportable - " \
|
_GL_WARN_ON_USE (flock, "flock is unportable - "
|
||||||
"use gnulib module flock for portability"), \
|
"use gnulib module flock for portability");
|
||||||
flock ((fd), (op)))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
/* Declare overridden functions. */
|
/* Declare overridden functions. */
|
||||||
@@ -57,10 +57,10 @@ extern int ioctl (int fd, int request, ... /* {void *,char *} arg */);
|
|||||||
# define ioctl ioctl_used_without_requesting_gnulib_module_ioctl
|
# define ioctl ioctl_used_without_requesting_gnulib_module_ioctl
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef ioctl
|
# undef ioctl
|
||||||
# define ioctl \
|
# if HAVE_RAW_DECL_IOCTL
|
||||||
(GL_LINK_WARNING ("ioctl does not portably work on sockets - " \
|
_GL_WARN_ON_USE (ioctl, "ioctl does not portably work on sockets - "
|
||||||
"use gnulib module ioctl for portability"), \
|
"use gnulib module ioctl for portability");
|
||||||
ioctl)
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -86,10 +86,10 @@ extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
|
|||||||
# define select select_used_without_requesting_gnulib_module_select
|
# define select select_used_without_requesting_gnulib_module_select
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef select
|
# undef select
|
||||||
# define select(n,r,w,e,t) \
|
# if HAVE_RAW_DECL_SELECT
|
||||||
(GL_LINK_WARNING ("select is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (select, "select is not always POSIX compliant - "
|
||||||
"use gnulib module select for portability"), \
|
"use gnulib module select for portability");
|
||||||
select (n, r, w, e, t))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
|
@@ -126,7 +126,7 @@ struct sockaddr_storage
|
|||||||
# define SHUT_RDWR SD_BOTH
|
# define SHUT_RDWR SD_BOTH
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
# if @HAVE_WINSOCK2_H@
|
# if @HAVE_WINSOCK2_H@
|
||||||
/* Include headers needed by the emulation code. */
|
/* Include headers needed by the emulation code. */
|
||||||
@@ -187,10 +187,10 @@ extern int rpl_socket (int, int, int protocol);
|
|||||||
# define socket socket_used_without_requesting_gnulib_module_socket
|
# define socket socket_used_without_requesting_gnulib_module_socket
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef socket
|
# undef socket
|
||||||
# define socket(d,t,p) \
|
# if HAVE_RAW_DECL_SOCKET
|
||||||
(GL_LINK_WARNING ("socket is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - "
|
||||||
"use gnulib module socket for portability"), \
|
"use gnulib module socket for portability");
|
||||||
socket (d, t, p))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_CONNECT@
|
# if @GNULIB_CONNECT@
|
||||||
@@ -204,10 +204,10 @@ extern int rpl_connect (int, struct sockaddr *, int) _GL_ARG_NONNULL ((2));
|
|||||||
# define connect socket_used_without_requesting_gnulib_module_connect
|
# define connect socket_used_without_requesting_gnulib_module_connect
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef connect
|
# undef connect
|
||||||
# define connect(s,a,l) \
|
# if HAVE_RAW_DECL_CONNECT
|
||||||
(GL_LINK_WARNING ("connect is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - "
|
||||||
"use gnulib module connect for portability"), \
|
"use gnulib module connect for portability");
|
||||||
connect (s, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_ACCEPT@
|
# if @GNULIB_ACCEPT@
|
||||||
@@ -221,10 +221,10 @@ extern int rpl_accept (int, struct sockaddr *, int *);
|
|||||||
# define accept accept_used_without_requesting_gnulib_module_accept
|
# define accept accept_used_without_requesting_gnulib_module_accept
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef accept
|
# undef accept
|
||||||
# define accept(s,a,l) \
|
# if HAVE_RAW_DECL_ACCEPT
|
||||||
(GL_LINK_WARNING ("accept is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - "
|
||||||
"use gnulib module accept for portability"), \
|
"use gnulib module accept for portability");
|
||||||
accept (s, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_BIND@
|
# if @GNULIB_BIND@
|
||||||
@@ -238,10 +238,10 @@ extern int rpl_bind (int, struct sockaddr *, int) _GL_ARG_NONNULL ((2));
|
|||||||
# define bind bind_used_without_requesting_gnulib_module_bind
|
# define bind bind_used_without_requesting_gnulib_module_bind
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef bind
|
# undef bind
|
||||||
# define bind(s,a,l) \
|
# if HAVE_RAW_DECL_BIND
|
||||||
(GL_LINK_WARNING ("bind is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - "
|
||||||
"use gnulib module bind for portability"), \
|
"use gnulib module bind for portability");
|
||||||
bind (s, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_GETPEERNAME@
|
# if @GNULIB_GETPEERNAME@
|
||||||
@@ -256,10 +256,10 @@ extern int rpl_getpeername (int, struct sockaddr *, int *)
|
|||||||
# define getpeername getpeername_used_without_requesting_gnulib_module_getpeername
|
# define getpeername getpeername_used_without_requesting_gnulib_module_getpeername
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef getpeername
|
# undef getpeername
|
||||||
# define getpeername(s,a,l) \
|
# if HAVE_RAW_DECL_GETPEERNAME
|
||||||
(GL_LINK_WARNING ("getpeername is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - "
|
||||||
"use gnulib module getpeername for portability"), \
|
"use gnulib module getpeername for portability");
|
||||||
getpeername (s, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_GETSOCKNAME@
|
# if @GNULIB_GETSOCKNAME@
|
||||||
@@ -274,10 +274,10 @@ extern int rpl_getsockname (int, struct sockaddr *, int *)
|
|||||||
# define getsockname getsockname_used_without_requesting_gnulib_module_getsockname
|
# define getsockname getsockname_used_without_requesting_gnulib_module_getsockname
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef getsockname
|
# undef getsockname
|
||||||
# define getsockname(s,a,l) \
|
# if HAVE_RAW_DECL_GETSOCKNAME
|
||||||
(GL_LINK_WARNING ("getsockname is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - "
|
||||||
"use gnulib module getsockname for portability"), \
|
"use gnulib module getsockname for portability");
|
||||||
getsockname (s, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_GETSOCKOPT@
|
# if @GNULIB_GETSOCKOPT@
|
||||||
@@ -292,10 +292,10 @@ extern int rpl_getsockopt (int, int, int, void *, socklen_t *)
|
|||||||
# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
|
# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef getsockopt
|
# undef getsockopt
|
||||||
# define getsockopt(s,lvl,o,v,l) \
|
# if HAVE_RAW_DECL_GETSOCKOPT
|
||||||
(GL_LINK_WARNING ("getsockopt is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - "
|
||||||
"use gnulib module getsockopt for portability"), \
|
"use gnulib module getsockopt for portability");
|
||||||
getsockopt (s, lvl, o, v, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_LISTEN@
|
# if @GNULIB_LISTEN@
|
||||||
@@ -309,10 +309,10 @@ extern int rpl_listen (int, int);
|
|||||||
# define listen listen_used_without_requesting_gnulib_module_listen
|
# define listen listen_used_without_requesting_gnulib_module_listen
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef listen
|
# undef listen
|
||||||
# define listen(s,b) \
|
# if HAVE_RAW_DECL_LISTEN
|
||||||
(GL_LINK_WARNING ("listen is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - "
|
||||||
"use gnulib module listen for portability"), \
|
"use gnulib module listen for portability");
|
||||||
listen (s, b))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_RECV@
|
# if @GNULIB_RECV@
|
||||||
@@ -326,10 +326,10 @@ extern int rpl_recv (int, void *, int, int) _GL_ARG_NONNULL ((2));
|
|||||||
# define recv recv_used_without_requesting_gnulib_module_recv
|
# define recv recv_used_without_requesting_gnulib_module_recv
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef recv
|
# undef recv
|
||||||
# define recv(s,b,n,f) \
|
# if HAVE_RAW_DECL_RECV
|
||||||
(GL_LINK_WARNING ("recv is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - "
|
||||||
"use gnulib module recv for portability"), \
|
"use gnulib module recv for portability");
|
||||||
recv (s, b, n, f))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_SEND@
|
# if @GNULIB_SEND@
|
||||||
@@ -343,10 +343,10 @@ extern int rpl_send (int, const void *, int, int) _GL_ARG_NONNULL ((2));
|
|||||||
# define send send_used_without_requesting_gnulib_module_send
|
# define send send_used_without_requesting_gnulib_module_send
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef send
|
# undef send
|
||||||
# define send(s,b,n,f) \
|
# if HAVE_RAW_DECL_SEND
|
||||||
(GL_LINK_WARNING ("send is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (send, "send is not always POSIX compliant - "
|
||||||
"use gnulib module send for portability"), \
|
"use gnulib module send for portability");
|
||||||
send (s, b, n, f))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_RECVFROM@
|
# if @GNULIB_RECVFROM@
|
||||||
@@ -361,10 +361,10 @@ extern int rpl_recvfrom (int, void *, int, int, struct sockaddr *, int *)
|
|||||||
# define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom
|
# define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef recvfrom
|
# undef recvfrom
|
||||||
# define recvfrom(s,b,n,f,a,l) \
|
# if HAVE_RAW_DECL_RECVFROM
|
||||||
(GL_LINK_WARNING ("recvfrom is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - "
|
||||||
"use gnulib module recvfrom for portability"), \
|
"use gnulib module recvfrom for portability");
|
||||||
recvfrom (s, b, n, f, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_SENDTO@
|
# if @GNULIB_SENDTO@
|
||||||
@@ -379,10 +379,10 @@ extern int rpl_sendto (int, const void *, int, int, struct sockaddr *, int)
|
|||||||
# define sendto sendto_used_without_requesting_gnulib_module_sendto
|
# define sendto sendto_used_without_requesting_gnulib_module_sendto
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef sendto
|
# undef sendto
|
||||||
# define sendto(s,b,n,f,a,l) \
|
# if HAVE_RAW_DECL_SENDTO
|
||||||
(GL_LINK_WARNING ("sendto is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - "
|
||||||
"use gnulib module sendto for portability"), \
|
"use gnulib module sendto for portability");
|
||||||
sendto (s, b, n, f, a, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_SETSOCKOPT@
|
# if @GNULIB_SETSOCKOPT@
|
||||||
@@ -397,10 +397,10 @@ extern int rpl_setsockopt (int, int, int, const void *, socklen_t)
|
|||||||
# define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt
|
# define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef setsockopt
|
# undef setsockopt
|
||||||
# define setsockopt(s,lvl,o,v,l) \
|
# if HAVE_RAW_DECL_SETSOCKOPT
|
||||||
(GL_LINK_WARNING ("setsockopt is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - "
|
||||||
"use gnulib module setsockopt for portability"), \
|
"use gnulib module setsockopt for portability");
|
||||||
setsockopt (s, lvl, o, v, l))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @GNULIB_SHUTDOWN@
|
# if @GNULIB_SHUTDOWN@
|
||||||
@@ -414,10 +414,10 @@ extern int rpl_shutdown (int, int);
|
|||||||
# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
|
# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef shutdown
|
# undef shutdown
|
||||||
# define shutdown(s,h) \
|
# if HAVE_RAW_DECL_SHUTDOWN
|
||||||
(GL_LINK_WARNING ("shutdown is not always POSIX compliant - " \
|
_GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - "
|
||||||
"use gnulib module shutdown for portability"), \
|
"use gnulib module shutdown for portability");
|
||||||
shutdown (s, h))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if @HAVE_WINSOCK2_H@
|
# if @HAVE_WINSOCK2_H@
|
||||||
@@ -448,10 +448,10 @@ extern int accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen,
|
|||||||
int flags);
|
int flags);
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef accept4
|
# undef accept4
|
||||||
# define accept4(s,a,l,f) \
|
# if HAVE_RAW_DECL_ACCEPT4
|
||||||
(GL_LINK_WARNING ("accept4 is unportable - " \
|
_GL_WARN_ON_USE (accept4, "accept4 is unportable - "
|
||||||
"use gnulib module accept4 for portability"), \
|
"use gnulib module accept4 for portability");
|
||||||
accept4 (s, a, l, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@@ -47,10 +47,10 @@
|
|||||||
#ifndef _GL_SYS_STAT_H
|
#ifndef _GL_SYS_STAT_H
|
||||||
#define _GL_SYS_STAT_H
|
#define _GL_SYS_STAT_H
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
/* Before doing "#define mkdir rpl_mkdir" below, we need to include all
|
/* Before doing "#define mkdir rpl_mkdir" below, we need to include all
|
||||||
headers that may declare mkdir(). */
|
headers that may declare mkdir(). */
|
||||||
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
|
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
|
||||||
@@ -302,10 +302,10 @@ extern int fchmodat (int fd, char const *file, mode_t mode, int flag)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fchmodat
|
# undef fchmodat
|
||||||
# define fchmodat(d,n,m,f) \
|
# if HAVE_RAW_DECL_FCHMODAT
|
||||||
(GL_LINK_WARNING ("fchmodat is not portable - " \
|
_GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - "
|
||||||
"use gnulib module openat for portability"), \
|
"use gnulib module openat for portability");
|
||||||
fchmodat (d, n, m, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -326,10 +326,10 @@ extern int fstatat (int fd, char const *name, struct stat *st, int flags)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fstatat
|
# undef fstatat
|
||||||
# define fstatat(d,n,s,f) \
|
# if HAVE_RAW_DECL_FSTATAT
|
||||||
(GL_LINK_WARNING ("fstatat is not portable - " \
|
_GL_WARN_ON_USE (fstatat, "fstatat is not portable - "
|
||||||
"use gnulib module openat for portability"), \
|
"use gnulib module openat for portability");
|
||||||
fstatat (d, n, s, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -343,10 +343,10 @@ extern int futimens (int fd, struct timespec const times[2]);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef futimens
|
# undef futimens
|
||||||
# define futimens(f,t) \
|
# if HAVE_RAW_DECL_FUTIMENS
|
||||||
(GL_LINK_WARNING ("futimens is not portable - " \
|
_GL_WARN_ON_USE (futimens, "futimens is not portable - "
|
||||||
"use gnulib module futimens for portability"), \
|
"use gnulib module futimens for portability");
|
||||||
futimens (f, t))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -368,10 +368,10 @@ extern int lchmod (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef lchmod
|
# undef lchmod
|
||||||
# define lchmod(f,m) \
|
# if HAVE_RAW_DECL_LCHMOD
|
||||||
(GL_LINK_WARNING ("lchmod is unportable - " \
|
_GL_WARN_ON_USE (lchmod, "lchmod is unportable - "
|
||||||
"use gnulib module lchmod for portability"), \
|
"use gnulib module lchmod for portability");
|
||||||
lchmod (f, m))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -388,10 +388,10 @@ extern int rpl_lstat (const char *name, struct stat *buf)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef lstat
|
# undef lstat
|
||||||
# define lstat(p,b) \
|
# if HAVE_RAW_DECL_LSTAT
|
||||||
(GL_LINK_WARNING ("lstat is unportable - " \
|
_GL_WARN_ON_USE (lstat, "lstat is unportable - "
|
||||||
"use gnulib module lstat for portability"), \
|
"use gnulib module lstat for portability");
|
||||||
lstat (p, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -423,10 +423,10 @@ extern int mkdirat (int fd, char const *file, mode_t mode)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkdirat
|
# undef mkdirat
|
||||||
# define mkdirat(d,n,m) \
|
# if HAVE_RAW_DECL_MKDIRAT
|
||||||
(GL_LINK_WARNING ("mkdirat is not portable - " \
|
_GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - "
|
||||||
"use gnulib module openat for portability"), \
|
"use gnulib module openat for portability");
|
||||||
mkdirat (d, n, m))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -440,10 +440,10 @@ extern int mkfifo (char const *file, mode_t mode) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkfifo
|
# undef mkfifo
|
||||||
# define mkfifo(n,m) \
|
# if HAVE_RAW_DECL_MKFIFO
|
||||||
(GL_LINK_WARNING ("mkfifo is not portable - " \
|
_GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - "
|
||||||
"use gnulib module mkfifo for portability"), \
|
"use gnulib module mkfifo for portability");
|
||||||
mkfifo (n, m))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -454,10 +454,10 @@ extern int mkfifoat (int fd, char const *file, mode_t mode)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mkfifoat
|
# undef mkfifoat
|
||||||
# define mkfifoat(d,n,m) \
|
# if HAVE_RAW_DECL_MKFIFOAT
|
||||||
(GL_LINK_WARNING ("mkfifoat is not portable - " \
|
_GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - "
|
||||||
"use gnulib module mkfifoat for portability"), \
|
"use gnulib module mkfifoat for portability");
|
||||||
mkfifoat (d, n, m))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -472,10 +472,10 @@ extern int mknod (char const *file, mode_t mode, dev_t dev)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mknod
|
# undef mknod
|
||||||
# define mknod(n,m,d) \
|
# if HAVE_RAW_DECL_MKNOD
|
||||||
(GL_LINK_WARNING ("mknod is not portable - " \
|
_GL_WARN_ON_USE (mknod, "mknod is not portable - "
|
||||||
"use gnulib module mknod for portability"), \
|
"use gnulib module mknod for portability");
|
||||||
mknod (n, m, d))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -486,10 +486,10 @@ extern int mknodat (int fd, char const *file, mode_t mode, dev_t dev)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mknodat
|
# undef mknodat
|
||||||
# define mknodat(f,n,m,d) \
|
# if HAVE_RAW_DECL_MKNODAT
|
||||||
(GL_LINK_WARNING ("mknodat is not portable - " \
|
_GL_WARN_ON_USE (mknodat, "mknodat is not portable - "
|
||||||
"use gnulib module mkfifoat for portability"), \
|
"use gnulib module mkfifoat for portability");
|
||||||
mknodat (f, n, m, d))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -512,10 +512,10 @@ extern int stat (const char *name, struct stat *buf) _GL_ARG_NONNULL ((1, 2));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef stat
|
# undef stat
|
||||||
# define stat(p,b) \
|
# if HAVE_RAW_DECL_STAT
|
||||||
(GL_LINK_WARNING ("stat is unportable - " \
|
_GL_WARN_ON_USE (stat, "stat is unportable - "
|
||||||
"use gnulib module stat for portability"), \
|
"use gnulib module stat for portability");
|
||||||
stat (p, b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -531,10 +531,10 @@ extern int stat (const char *name, struct stat *buf) _GL_ARG_NONNULL ((1, 2));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef utimensat
|
# undef utimensat
|
||||||
# define utimensat(d,n,t,f) \
|
# if HAVE_RAW_DECL_UTIMENSAT
|
||||||
(GL_LINK_WARNING ("utimensat is not portable - " \
|
_GL_WARN_ON_USE (utimensat, "utimensat is not portable - "
|
||||||
"use gnulib module utimensat for portability"), \
|
"use gnulib module utimensat for portability");
|
||||||
utimensat (d, n, t, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -38,10 +38,10 @@
|
|||||||
# include <time.h>
|
# include <time.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
# endif
|
# endif
|
||||||
@@ -64,10 +64,10 @@ extern "C" {
|
|||||||
# endif
|
# endif
|
||||||
# elif defined GNULIB_POSIXCHECK
|
# elif defined GNULIB_POSIXCHECK
|
||||||
# undef times
|
# undef times
|
||||||
# define times(s) \
|
# if HAVE_RAW_DECL_TIMES
|
||||||
(GL_LINK_WARNING ("times is unportable - " \
|
_GL_WARN_ON_USE (times, "times is unportable - "
|
||||||
"use gnulib module times for portability"), \
|
"use gnulib module times for portability");
|
||||||
times (s))
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
|
@@ -27,10 +27,10 @@
|
|||||||
|
|
||||||
#define _GL_SYS_UTSNAME_H
|
#define _GL_SYS_UTSNAME_H
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -81,10 +81,10 @@ extern int uname (struct utsname *buf) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef uname
|
# undef uname
|
||||||
# define uname(b) \
|
# if HAVE_RAW_DECL_UNAME
|
||||||
(GL_LINK_WARNING ("uname is unportable - " \
|
_GL_WARN_ON_USE (uname, "uname is unportable - "
|
||||||
"use gnulib module uname for portability"), \
|
"use gnulib module uname for portability");
|
||||||
uname (b))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
291
lib/unistd.in.h
291
lib/unistd.in.h
@@ -114,8 +114,6 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
/* The definition of _GL_WARN_ON_USE is copied here. */
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
@@ -164,11 +162,11 @@ extern int chown (const char *file, uid_t uid, gid_t gid)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef chown
|
# undef chown
|
||||||
# define chown(f,u,g) \
|
# if HAVE_RAW_DECL_CHOWN
|
||||||
(GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \
|
_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
|
||||||
"doesn't treat a uid or gid of -1 on some systems - " \
|
"doesn't treat a uid or gid of -1 on some systems - "
|
||||||
"use gnulib module chown for portability"), \
|
"use gnulib module chown for portability");
|
||||||
chown (f, u, g))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -184,10 +182,9 @@ extern int close (int);
|
|||||||
# define close close_used_without_requesting_gnulib_module_close
|
# define close close_used_without_requesting_gnulib_module_close
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef close
|
# undef close
|
||||||
# define close(f) \
|
/* Assume close is always declared. */
|
||||||
(GL_LINK_WARNING ("close does not portably work on sockets - " \
|
_GL_WARN_ON_USE (close, "close does not portably work on sockets - "
|
||||||
"use gnulib module close for portability"), \
|
"use gnulib module close for portability");
|
||||||
close (f))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -211,10 +208,10 @@ extern int dup2 (int oldfd, int newfd);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef dup2
|
# undef dup2
|
||||||
# define dup2(o,n) \
|
# if HAVE_RAW_DECL_DUP2
|
||||||
(GL_LINK_WARNING ("dup2 is unportable - " \
|
_GL_WARN_ON_USE (dup2, "dup2 is unportable - "
|
||||||
"use gnulib module dup2 for portability"), \
|
"use gnulib module dup2 for portability");
|
||||||
dup2 (o, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -233,10 +230,10 @@ extern int dup2 (int oldfd, int newfd);
|
|||||||
extern int dup3 (int oldfd, int newfd, int flags);
|
extern int dup3 (int oldfd, int newfd, int flags);
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef dup3
|
# undef dup3
|
||||||
# define dup3(o,n,f) \
|
# if HAVE_RAW_DECL_DUP3
|
||||||
(GL_LINK_WARNING ("dup3 is unportable - " \
|
_GL_WARN_ON_USE (dup3, "dup3 is unportable - "
|
||||||
"use gnulib module dup3 for portability"), \
|
"use gnulib module dup3 for portability");
|
||||||
dup3 (o, n, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -274,10 +271,10 @@ extern int euidaccess (const char *filename, int mode) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef euidaccess
|
# undef euidaccess
|
||||||
# define euidaccess(f,m) \
|
# if HAVE_RAW_DECL_EUIDACCESS
|
||||||
(GL_LINK_WARNING ("euidaccess is unportable - " \
|
_GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - "
|
||||||
"use gnulib module euidaccess for portability"), \
|
"use gnulib module euidaccess for portability");
|
||||||
euidaccess (f, m))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -288,10 +285,10 @@ extern int faccessat (int fd, char const *file, int mode, int flag)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef faccessat
|
# undef faccessat
|
||||||
# define faccessat(d,n,m,f) \
|
# if HAVE_RAW_DECL_FACCESSAT
|
||||||
(GL_LINK_WARNING ("faccessat is not portable - " \
|
_GL_WARN_ON_USE (faccessat, "faccessat is not portable - "
|
||||||
"use gnulib module faccessat for portability"), \
|
"use gnulib module faccessat for portability");
|
||||||
faccessat (d, n, m, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -314,10 +311,10 @@ extern const char *_gl_directory_name (int fd);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fchdir
|
# undef fchdir
|
||||||
# define fchdir(f) \
|
# if HAVE_RAW_DECL_FCHDIR
|
||||||
(GL_LINK_WARNING ("fchdir is unportable - " \
|
_GL_WARN_ON_USE (fchdir, "fchdir is unportable - "
|
||||||
"use gnulib module fchdir for portability"), \
|
"use gnulib module fchdir for portability");
|
||||||
fchdir (f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -332,10 +329,10 @@ extern int fchownat (int fd, char const *file, uid_t owner, gid_t group, int fla
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fchownat
|
# undef fchownat
|
||||||
# define fchownat(d,n,o,g,f) \
|
# if HAVE_RAW_DECL_FCHOWNAT
|
||||||
(GL_LINK_WARNING ("fchownat is not portable - " \
|
_GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
|
||||||
"use gnulib module openat for portability"), \
|
"use gnulib module openat for portability");
|
||||||
fchownat (d, n, o, g, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -349,10 +346,10 @@ extern int fsync (int fd);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef fsync
|
# undef fsync
|
||||||
# define fsync(fd) \
|
# if HAVE_RAW_DECL_FSYNC
|
||||||
(GL_LINK_WARNING ("fsync is unportable - " \
|
_GL_WARN_ON_USE (fsync, "fsync is unportable - "
|
||||||
"use gnulib module fsync for portability"), \
|
"use gnulib module fsync for portability");
|
||||||
fsync (fd))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -366,10 +363,10 @@ extern int ftruncate (int fd, off_t length);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef ftruncate
|
# undef ftruncate
|
||||||
# define ftruncate(f,l) \
|
# if HAVE_RAW_DECL_FTRUNCATE
|
||||||
(GL_LINK_WARNING ("ftruncate is unportable - " \
|
_GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
|
||||||
"use gnulib module ftruncate for portability"), \
|
"use gnulib module ftruncate for portability");
|
||||||
ftruncate (f, l))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -390,10 +387,10 @@ extern char * getcwd (char *buf, size_t size);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getcwd
|
# undef getcwd
|
||||||
# define getcwd(b,s) \
|
# if HAVE_RAW_DECL_GETCWD
|
||||||
(GL_LINK_WARNING ("getcwd is unportable - " \
|
_GL_WARN_ON_USE (getcwd, "getcwd is unportable - "
|
||||||
"use gnulib module getcwd for portability"), \
|
"use gnulib module getcwd for portability");
|
||||||
getcwd (b, s))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -413,10 +410,10 @@ extern int getdomainname(char *name, size_t len) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getdomainname
|
# undef getdomainname
|
||||||
# define getdomainname(n,l) \
|
# if HAVE_RAW_DECL_GETDOMAINNAME
|
||||||
(GL_LINK_WARNING ("getdomainname is unportable - " \
|
_GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - "
|
||||||
"use gnulib module getdomainname for portability"), \
|
"use gnulib module getdomainname for portability");
|
||||||
getdomainname (n, l))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -428,10 +425,10 @@ extern int getdtablesize (void);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getdtablesize
|
# undef getdtablesize
|
||||||
# define getdtablesize() \
|
# if HAVE_RAW_DECL_GETDTABLESIZE
|
||||||
(GL_LINK_WARNING ("getdtablesize is unportable - " \
|
_GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - "
|
||||||
"use gnulib module getdtablesize for portability"), \
|
"use gnulib module getdtablesize for portability");
|
||||||
getdtablesize ())
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -450,10 +447,10 @@ int getgroups (int n, gid_t *groups);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getgroups
|
# undef getgroups
|
||||||
# define getgroups(n,g) \
|
# if HAVE_RAW_DECL_GETGROUPS
|
||||||
(GL_LINK_WARNING ("getgroups is unportable - " \
|
_GL_WARN_ON_USE (getgroups, "getgroups is unportable - "
|
||||||
"use gnulib module getgroups for portability"), \
|
"use gnulib module getgroups for portability");
|
||||||
getgroups (n, g))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -477,10 +474,10 @@ extern int gethostname(char *name, size_t len) _GL_ARG_NONNULL ((1));
|
|||||||
# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
|
# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef gethostname
|
# undef gethostname
|
||||||
# define gethostname(n,l) \
|
# if HAVE_RAW_DECL_GETHOSTNAME
|
||||||
(GL_LINK_WARNING ("gethostname is unportable - " \
|
_GL_WARN_ON_USE (gethostname, "gethostname is unportable - "
|
||||||
"use gnulib module gethostname for portability"), \
|
"use gnulib module gethostname for portability");
|
||||||
gethostname (n, l))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -500,10 +497,10 @@ extern char *getlogin (void);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getlogin
|
# undef getlogin
|
||||||
# define getlogin() \
|
# if HAVE_RAW_DECL_GETLOGIN
|
||||||
(GL_LINK_WARNING ("getlogin is unportable - " \
|
_GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
|
||||||
"use gnulib module getlogin for portability"), \
|
"use gnulib module getlogin for portability");
|
||||||
getlogin ())
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -527,10 +524,10 @@ extern int getlogin_r (char *name, size_t size) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getlogin_r
|
# undef getlogin_r
|
||||||
# define getlogin_r(n,s) \
|
# if HAVE_RAW_DECL_GETLOGIN_R
|
||||||
(GL_LINK_WARNING ("getlogin_r is unportable - " \
|
_GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - "
|
||||||
"use gnulib module getlogin_r for portability"), \
|
"use gnulib module getlogin_r for portability");
|
||||||
getlogin_r (n, s))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -585,10 +582,10 @@ extern int getpagesize (void);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getpagesize
|
# undef getpagesize
|
||||||
# define getpagesize() \
|
# if HAVE_RAW_DECL_GETPAGESIZE
|
||||||
(GL_LINK_WARNING ("getpagesize is unportable - " \
|
_GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
|
||||||
"use gnulib module getpagesize for portability"), \
|
"use gnulib module getpagesize for portability");
|
||||||
getpagesize ())
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -605,20 +602,20 @@ extern void endusershell (void);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef getusershell
|
# undef getusershell
|
||||||
# define getusershell() \
|
# if HAVE_RAW_DECL_GETUSERSHELL
|
||||||
(GL_LINK_WARNING ("getusershell is unportable - " \
|
_GL_WARN_ON_USE (getusershell, "getusershell is unportable - "
|
||||||
"use gnulib module getusershell for portability"), \
|
"use gnulib module getusershell for portability");
|
||||||
getusershell ())
|
# endif
|
||||||
# undef setusershell
|
# undef setusershell
|
||||||
# define setusershell() \
|
# if HAVE_RAW_DECL_SETUSERSHELL
|
||||||
(GL_LINK_WARNING ("setusershell is unportable - " \
|
_GL_WARN_ON_USE (setusershell, "setusershell is unportable - "
|
||||||
"use gnulib module getusershell for portability"), \
|
"use gnulib module getusershell for portability");
|
||||||
setusershell ())
|
# endif
|
||||||
# undef endusershell
|
# undef endusershell
|
||||||
# define endusershell() \
|
# if HAVE_RAW_DECL_ENDUSERSHELL
|
||||||
(GL_LINK_WARNING ("endusershell is unportable - " \
|
_GL_WARN_ON_USE (endusershell, "endusershell is unportable - "
|
||||||
"use gnulib module getusershell for portability"), \
|
"use gnulib module getusershell for portability");
|
||||||
endusershell ())
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -638,10 +635,10 @@ extern int lchown (char const *file, uid_t owner, gid_t group)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef lchown
|
# undef lchown
|
||||||
# define lchown(f,u,g) \
|
# if HAVE_RAW_DECL_LCHOWN
|
||||||
(GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \
|
_GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - "
|
||||||
"systems - use gnulib module lchown for portability"), \
|
"use gnulib module lchown for portability");
|
||||||
lchown (f, u, g))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -659,10 +656,10 @@ extern int link (const char *path1, const char *path2)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef link
|
# undef link
|
||||||
# define link(path1,path2) \
|
# if HAVE_RAW_DECL_LINK
|
||||||
(GL_LINK_WARNING ("link is unportable - " \
|
_GL_WARN_ON_USE (link, "link is unportable - "
|
||||||
"use gnulib module link for portability"), \
|
"use gnulib module link for portability");
|
||||||
link (path1, path2))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_LINKAT@
|
#if @GNULIB_LINKAT@
|
||||||
@@ -680,10 +677,10 @@ extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef linkat
|
# undef linkat
|
||||||
# define linkat(f1,path1,f2,path2,f) \
|
# if HAVE_RAW_DECL_LINKAT
|
||||||
(GL_LINK_WARNING ("linkat is unportable - " \
|
_GL_WARN_ON_USE (linkat, "linkat is unportable - "
|
||||||
"use gnulib module linkat for portability"), \
|
"use gnulib module linkat for portability");
|
||||||
linkat (f1, path1, f2, path2,f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if @GNULIB_LSEEK@
|
#if @GNULIB_LSEEK@
|
||||||
@@ -697,10 +694,10 @@ extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef lseek
|
# undef lseek
|
||||||
# define lseek(f,o,w) \
|
# if HAVE_RAW_DECL_LSEEK
|
||||||
(GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \
|
_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
|
||||||
"systems - use gnulib module lseek for portability"), \
|
"systems - use gnulib module lseek for portability");
|
||||||
lseek (f, o, w))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -719,10 +716,10 @@ extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
|
|||||||
extern int pipe2 (int fd[2], int flags) _GL_ARG_NONNULL ((1));
|
extern int pipe2 (int fd[2], int flags) _GL_ARG_NONNULL ((1));
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef pipe2
|
# undef pipe2
|
||||||
# define pipe2(f,o) \
|
# if HAVE_RAW_DECL_PIPE2
|
||||||
(GL_LINK_WARNING ("pipe2 is unportable - " \
|
_GL_WARN_ON_USE (pipe2, "pipe2 is unportable - "
|
||||||
"use gnulib module pipe2 for portability"), \
|
"use gnulib module pipe2 for portability");
|
||||||
pipe2 (f, o))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -740,10 +737,10 @@ extern int pipe2 (int fd[2], int flags) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef pread
|
# undef pread
|
||||||
# define pread(f,b,s,o) \
|
# if HAVE_RAW_DECL_PREAD
|
||||||
(GL_LINK_WARNING ("pread is unportable - " \
|
_GL_WARN_ON_USE (pread, "pread is unportable - "
|
||||||
"use gnulib module pread for portability"), \
|
"use gnulib module pread for portability");
|
||||||
pread (f, b, s, o))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -762,10 +759,10 @@ extern ssize_t readlink (const char *file, char *buf, size_t bufsize)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef readlink
|
# undef readlink
|
||||||
# define readlink(f,b,s) \
|
# if HAVE_RAW_DECL_READLINK
|
||||||
(GL_LINK_WARNING ("readlink is unportable - " \
|
_GL_WARN_ON_USE (readlink, "readlink is unportable - "
|
||||||
"use gnulib module readlink for portability"), \
|
"use gnulib module readlink for portability");
|
||||||
readlink (f, b, s))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -776,10 +773,10 @@ extern ssize_t readlinkat (int fd, char const *file, char *buf, size_t len)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef readlinkat
|
# undef readlinkat
|
||||||
# define readlinkat(d,n,b,l) \
|
# if HAVE_RAW_DECL_READLINKAT
|
||||||
(GL_LINK_WARNING ("readlinkat is not portable - " \
|
_GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - "
|
||||||
"use gnulib module symlinkat for portability"), \
|
"use gnulib module symlinkat for portability");
|
||||||
readlinkat (d, n, b, l))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -791,10 +788,10 @@ extern int rmdir (char const *name) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef rmdir
|
# undef rmdir
|
||||||
# define rmdir(n) \
|
# if HAVE_RAW_DECL_RMDIR
|
||||||
(GL_LINK_WARNING ("rmdir is unportable - " \
|
_GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
|
||||||
"use gnulib module rmdir for portability"), \
|
"use gnulib module rmdir for portability");
|
||||||
rmdir (n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -812,10 +809,10 @@ extern unsigned int sleep (unsigned int n);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef sleep
|
# undef sleep
|
||||||
# define sleep(n) \
|
# if HAVE_RAW_DECL_SLEEP
|
||||||
(GL_LINK_WARNING ("sleep is unportable - " \
|
_GL_WARN_ON_USE (sleep, "sleep is unportable - "
|
||||||
"use gnulib module sleep for portability"), \
|
"use gnulib module sleep for portability");
|
||||||
sleep (n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -830,10 +827,10 @@ extern int symlink (char const *contents, char const *file)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef symlink
|
# undef symlink
|
||||||
# define symlink(c,n) \
|
# if HAVE_RAW_DECL_SYMLINK
|
||||||
(GL_LINK_WARNING ("symlink is not portable - " \
|
_GL_WARN_ON_USE (symlink, "symlink is not portable - "
|
||||||
"use gnulib module symlink for portability"), \
|
"use gnulib module symlink for portability");
|
||||||
symlink (c, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -844,10 +841,10 @@ extern int symlinkat (char const *contents, int fd, char const *file)
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef symlinkat
|
# undef symlinkat
|
||||||
# define symlinkat(c,d,n) \
|
# if HAVE_RAW_DECL_SYMLINKAT
|
||||||
(GL_LINK_WARNING ("symlinkat is not portable - " \
|
_GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - "
|
||||||
"use gnulib module symlinkat for portability"), \
|
"use gnulib module symlinkat for portability");
|
||||||
symlinkat (c, d, n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -859,10 +856,10 @@ extern int unlink (char const *file) _GL_ARG_NONNULL ((1));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef unlink
|
# undef unlink
|
||||||
# define unlink(n) \
|
# if HAVE_RAW_DECL_UNLINK
|
||||||
(GL_LINK_WARNING ("unlink is not portable - " \
|
_GL_WARN_ON_USE (unlink, "unlink is not portable - "
|
||||||
"use gnulib module unlink for portability"), \
|
"use gnulib module unlink for portability");
|
||||||
unlink (n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -876,10 +873,10 @@ extern int unlinkat (int fd, char const *file, int flag) _GL_ARG_NONNULL ((2));
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef unlinkat
|
# undef unlinkat
|
||||||
# define unlinkat(d,n,f) \
|
# if HAVE_RAW_DECL_UNLINKAT
|
||||||
(GL_LINK_WARNING ("unlinkat is not portable - " \
|
_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
|
||||||
"use gnulib module openat for portability"), \
|
"use gnulib module openat for portability");
|
||||||
unlinkat (d, n, f))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -897,10 +894,10 @@ extern int usleep (useconds_t n);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef usleep
|
# undef usleep
|
||||||
# define usleep(n) \
|
# if HAVE_RAW_DECL_USLEEP
|
||||||
(GL_LINK_WARNING ("usleep is unportable - " \
|
_GL_WARN_ON_USE (usleep, "usleep is unportable - "
|
||||||
"use gnulib module usleep for portability"), \
|
"use gnulib module usleep for portability");
|
||||||
usleep (n))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -75,10 +75,10 @@
|
|||||||
#ifndef _GL_WCHAR_H
|
#ifndef _GL_WCHAR_H
|
||||||
#define _GL_WCHAR_H
|
#define _GL_WCHAR_H
|
||||||
|
|
||||||
/* The definition of GL_LINK_WARNING is copied here. */
|
|
||||||
|
|
||||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||||
|
|
||||||
|
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@@ -115,10 +115,10 @@ extern wint_t btowc (int c);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef btowc
|
# undef btowc
|
||||||
# define btowc(c) \
|
# if HAVE_RAW_DECL_BTOWC
|
||||||
(GL_LINK_WARNING ("btowc is unportable - " \
|
_GL_WARN_ON_USE (btowc, "btowc is unportable - "
|
||||||
"use gnulib module btowc for portability"), \
|
"use gnulib module btowc for portability");
|
||||||
btowc (c))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -134,10 +134,10 @@ extern int wctob (wint_t wc);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef wctob
|
# undef wctob
|
||||||
# define wctob(w) \
|
# if HAVE_RAW_DECL_WCTOB
|
||||||
(GL_LINK_WARNING ("wctob is unportable - " \
|
_GL_WARN_ON_USE (wctob, "wctob is unportable - "
|
||||||
"use gnulib module wctob for portability"), \
|
"use gnulib module wctob for portability");
|
||||||
wctob (w))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -152,10 +152,10 @@ extern int mbsinit (const mbstate_t *ps);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mbsinit
|
# undef mbsinit
|
||||||
# define mbsinit(p) \
|
# if HAVE_RAW_DECL_MBSINIT
|
||||||
(GL_LINK_WARNING ("mbsinit is unportable - " \
|
_GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - "
|
||||||
"use gnulib module mbsinit for portability"), \
|
"use gnulib module mbsinit for portability");
|
||||||
mbsinit (p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -170,10 +170,10 @@ extern size_t mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mbrtowc
|
# undef mbrtowc
|
||||||
# define mbrtowc(w,s,n,p) \
|
# if HAVE_RAW_DECL_MBRTOWC
|
||||||
(GL_LINK_WARNING ("mbrtowc is unportable - " \
|
_GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - "
|
||||||
"use gnulib module mbrtowc for portability"), \
|
"use gnulib module mbrtowc for portability");
|
||||||
mbrtowc (w, s, n, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -188,10 +188,10 @@ extern size_t mbrlen (const char *s, size_t n, mbstate_t *ps);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mbrlen
|
# undef mbrlen
|
||||||
# define mbrlen(s,n,p) \
|
# if HAVE_RAW_DECL_MBRLEN
|
||||||
(GL_LINK_WARNING ("mbrlen is unportable - " \
|
_GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - "
|
||||||
"use gnulib module mbrlen for portability"), \
|
"use gnulib module mbrlen for portability");
|
||||||
mbrlen (s, n, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -207,10 +207,10 @@ extern size_t mbsrtowcs (wchar_t *dest, const char **srcp, size_t len, mbstate_t
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mbsrtowcs
|
# undef mbsrtowcs
|
||||||
# define mbsrtowcs(d,s,l,p) \
|
# if HAVE_RAW_DECL_MBSRTOWCS
|
||||||
(GL_LINK_WARNING ("mbsrtowcs is unportable - " \
|
_GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - "
|
||||||
"use gnulib module mbsrtowcs for portability"), \
|
"use gnulib module mbsrtowcs for portability");
|
||||||
mbsrtowcs (d, s, l, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -226,10 +226,10 @@ extern size_t mbsnrtowcs (wchar_t *dest, const char **srcp, size_t srclen, size_
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef mbsnrtowcs
|
# undef mbsnrtowcs
|
||||||
# define mbsnrtowcs(d,s,n,l,p) \
|
# if HAVE_RAW_DECL_MBSNRTOWCS
|
||||||
(GL_LINK_WARNING ("mbsnrtowcs is unportable - " \
|
_GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - "
|
||||||
"use gnulib module mbsnrtowcs for portability"), \
|
"use gnulib module mbsnrtowcs for portability");
|
||||||
mbsnrtowcs (d, s, n, l, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -244,10 +244,10 @@ extern size_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef wcrtomb
|
# undef wcrtomb
|
||||||
# define wcrtomb(s,w,p) \
|
# if HAVE_RAW_DECL_WCRTOMB
|
||||||
(GL_LINK_WARNING ("wcrtomb is unportable - " \
|
_GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - "
|
||||||
"use gnulib module wcrtomb for portability"), \
|
"use gnulib module wcrtomb for portability");
|
||||||
wcrtomb (s, w, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -263,10 +263,10 @@ extern size_t wcsrtombs (char *dest, const wchar_t **srcp, size_t len, mbstate_t
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef wcsrtombs
|
# undef wcsrtombs
|
||||||
# define wcsrtombs(d,s,l,p) \
|
# if HAVE_RAW_DECL_WCSRTOMBS
|
||||||
(GL_LINK_WARNING ("wcsrtombs is unportable - " \
|
_GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - "
|
||||||
"use gnulib module wcsrtombs for portability"), \
|
"use gnulib module wcsrtombs for portability");
|
||||||
wcsrtombs (d, s, l, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -282,10 +282,10 @@ extern size_t wcsnrtombs (char *dest, const wchar_t **srcp, size_t srclen, size_
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef wcsnrtombs
|
# undef wcsnrtombs
|
||||||
# define wcsnrtombs(d,s,n,l,p) \
|
# if HAVE_RAW_DECL_WCSNRTOMBS
|
||||||
(GL_LINK_WARNING ("wcsnrtombs is unportable - " \
|
_GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - "
|
||||||
"use gnulib module wcsnrtombs for portability"), \
|
"use gnulib module wcsnrtombs for portability");
|
||||||
wcsnrtombs (d, s, n, l, p))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -303,10 +303,10 @@ extern int wcwidth (int /* actually wchar_t */);
|
|||||||
# endif
|
# endif
|
||||||
#elif defined GNULIB_POSIXCHECK
|
#elif defined GNULIB_POSIXCHECK
|
||||||
# undef wcwidth
|
# undef wcwidth
|
||||||
# define wcwidth(w) \
|
# if HAVE_RAW_DECL_WCWIDTH
|
||||||
(GL_LINK_WARNING ("wcwidth is unportable - " \
|
_GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - "
|
||||||
"use gnulib module wcwidth for portability"), \
|
"use gnulib module wcwidth for portability");
|
||||||
wcwidth (w))
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# arpa_inet_h.m4 serial 6
|
# arpa_inet_h.m4 serial 7
|
||||||
dnl Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -21,6 +21,16 @@ AC_DEFUN([gl_HEADER_ARPA_INET],
|
|||||||
AC_SUBST([HAVE_ARPA_INET_H])
|
AC_SUBST([HAVE_ARPA_INET_H])
|
||||||
dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
|
dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
|
||||||
gl_CHECK_NEXT_HEADERS([arpa/inet.h])
|
gl_CHECK_NEXT_HEADERS([arpa/inet.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[
|
||||||
|
/* On some systems, this header is not self-consistent. */
|
||||||
|
#ifndef __GLIBC__
|
||||||
|
# include <sys/socket.h>
|
||||||
|
#endif
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
]], [inet_ntop inet_pton])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Unconditionally enables the replacement of <arpa/inet.h>.
|
dnl Unconditionally enables the replacement of <arpa/inet.h>.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# ctype_h.m4 serial 2
|
# ctype_h.m4 serial 3
|
||||||
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -10,6 +10,11 @@ AC_DEFUN([gl_CTYPE_H],
|
|||||||
dnl Execute this unconditionally, because CTYPE_H may be set by other
|
dnl Execute this unconditionally, because CTYPE_H may be set by other
|
||||||
dnl modules, after this code is executed.
|
dnl modules, after this code is executed.
|
||||||
gl_CHECK_NEXT_HEADERS([ctype.h])
|
gl_CHECK_NEXT_HEADERS([ctype.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <ctype.h>
|
||||||
|
]], [isblank])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_CTYPE_MODULE_INDICATOR],
|
AC_DEFUN([gl_CTYPE_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# dirent_h.m4 serial 8
|
# dirent_h.m4 serial 9
|
||||||
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -14,6 +14,11 @@ AC_DEFUN([gl_DIRENT_H],
|
|||||||
|
|
||||||
dnl <dirent.h> is always overridden, because of GNULIB_POSIXCHECK.
|
dnl <dirent.h> is always overridden, because of GNULIB_POSIXCHECK.
|
||||||
gl_CHECK_NEXT_HEADERS([dirent.h])
|
gl_CHECK_NEXT_HEADERS([dirent.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <dirent.h>
|
||||||
|
]], [alphasort dirfd fdopendir scandir])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Unconditionally enables the replacement of <dirent.h>.
|
dnl Unconditionally enables the replacement of <dirent.h>.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# serial 9
|
# serial 10
|
||||||
# Configure fcntl.h.
|
# Configure fcntl.h.
|
||||||
dnl Copyright (C) 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
@@ -12,6 +12,12 @@ AC_DEFUN([gl_FCNTL_H],
|
|||||||
AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
|
AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
|
||||||
AC_REQUIRE([gl_FCNTL_O_FLAGS])
|
AC_REQUIRE([gl_FCNTL_O_FLAGS])
|
||||||
gl_CHECK_NEXT_HEADERS([fcntl.h])
|
gl_CHECK_NEXT_HEADERS([fcntl.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use, if it is not common
|
||||||
|
dnl enough to be declared everywhere.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <fcntl.h>
|
||||||
|
]], [fcntl openat])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
|
AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# inttypes.m4 serial 16
|
# inttypes.m4 serial 17
|
||||||
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -233,6 +233,11 @@ const char *l = /* implicit string concatenation */
|
|||||||
else
|
else
|
||||||
UINT64_MAX_EQ_ULONG_MAX=-1
|
UINT64_MAX_EQ_ULONG_MAX=-1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <inttypes.h>
|
||||||
|
]], [imaxabs imaxdiv strtoimax strtoumax])
|
||||||
])
|
])
|
||||||
|
|
||||||
# Define the symbol $1 to be 1 if the condition is true, 0 otherwise.
|
# Define the symbol $1 to be 1 if the condition is true, 0 otherwise.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# langinfo_h.m4 serial 2
|
# langinfo_h.m4 serial 3
|
||||||
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -51,6 +51,11 @@ int a = ERA;
|
|||||||
AC_SUBST([HAVE_LANGINFO_H])
|
AC_SUBST([HAVE_LANGINFO_H])
|
||||||
AC_SUBST([HAVE_LANGINFO_CODESET])
|
AC_SUBST([HAVE_LANGINFO_CODESET])
|
||||||
AC_SUBST([HAVE_LANGINFO_ERA])
|
AC_SUBST([HAVE_LANGINFO_ERA])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <langinfo.h>
|
||||||
|
]], [nl_langinfo])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_LANGINFO_MODULE_INDICATOR],
|
AC_DEFUN([gl_LANGINFO_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# locale_h.m4 serial 6
|
# locale_h.m4 serial 7
|
||||||
dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -56,6 +56,15 @@ locale_t x;], [],
|
|||||||
|| test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
|
|| test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
|
||||||
gl_REPLACE_LOCALE_H
|
gl_REPLACE_LOCALE_H
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <locale.h>
|
||||||
|
/* Some systems provide declarations in a non-standard header. */
|
||||||
|
#if HAVE_XLOCALE_H
|
||||||
|
# include <xlocale.h>
|
||||||
|
#endif
|
||||||
|
]], [duplocale])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Unconditionally enables the replacement of <locale.h>.
|
dnl Unconditionally enables the replacement of <locale.h>.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# math_h.m4 serial 16
|
# math_h.m4 serial 17
|
||||||
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -35,6 +35,12 @@ AC_DEFUN([gl_MATH_H],
|
|||||||
if test $gl_cv_header_math_huge_val_works = no; then
|
if test $gl_cv_header_math_huge_val_works = no; then
|
||||||
REPLACE_HUGE_VAL=1
|
REPLACE_HUGE_VAL=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <math.h>
|
||||||
|
]], [acosl asinl atanl ceilf ceill cosl expl floorf floorl frexpl
|
||||||
|
ldexpl logl round roundf roundl sinl sqrtl tanl trunc truncf truncl])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_MATH_MODULE_INDICATOR],
|
AC_DEFUN([gl_MATH_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# search_h.m4 serial 4
|
# search_h.m4 serial 5
|
||||||
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -15,6 +15,11 @@ AC_DEFUN([gl_SEARCH_H],
|
|||||||
HAVE_SEARCH_H=0
|
HAVE_SEARCH_H=0
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_SEARCH_H])
|
AC_SUBST([HAVE_SEARCH_H])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <search.h>
|
||||||
|
]], [tdelete tfind tsearch twalk])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_SEARCH_MODULE_INDICATOR],
|
AC_DEFUN([gl_SEARCH_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# signal_h.m4 serial 8
|
# signal_h.m4 serial 9
|
||||||
dnl Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -15,6 +15,12 @@ AC_DEFUN([gl_SIGNAL_H],
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
]])
|
]])
|
||||||
AC_REQUIRE([AC_TYPE_UID_T])
|
AC_REQUIRE([AC_TYPE_UID_T])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <signal.h>
|
||||||
|
]], [sigaction sigaddset sigdelset sigemptyset sigfillset sigismember
|
||||||
|
sigpending sigprocmask])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR],
|
AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# spawn_h.m4 serial 5
|
# spawn_h.m4 serial 6
|
||||||
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -34,6 +34,20 @@ AC_DEFUN([gl_SPAWN_H],
|
|||||||
AC_SUBST([HAVE_SPAWN_H])
|
AC_SUBST([HAVE_SPAWN_H])
|
||||||
|
|
||||||
AC_REQUIRE([AC_C_RESTRICT])
|
AC_REQUIRE([AC_C_RESTRICT])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <spawn.h>
|
||||||
|
]], [posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy
|
||||||
|
posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault
|
||||||
|
posix_spawnattr_getsigmask posix_spawnattr_setsigmask
|
||||||
|
posix_spawnattr_getflags posix_spawnattr_setflags
|
||||||
|
posix_spawnattr_getpgroup posix_spawnattr_setpgroup
|
||||||
|
posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy
|
||||||
|
posix_spawnattr_getschedparam posix_spawnattr_setschedparam
|
||||||
|
posix_spawn_file_actions_init posix_spawn_file_actions_destroy
|
||||||
|
posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose
|
||||||
|
posix_spawwn_file_actions_adddup2])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Unconditionally enables the replacement of <spawn.h>.
|
dnl Unconditionally enables the replacement of <spawn.h>.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# stdio_h.m4 serial 23
|
# stdio_h.m4 serial 24
|
||||||
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -36,7 +36,8 @@ AC_DEFUN([gl_STDIO_H],
|
|||||||
dnl corresponding gnulib module is not in use, and which is not
|
dnl corresponding gnulib module is not in use, and which is not
|
||||||
dnl guaranteed by C89.
|
dnl guaranteed by C89.
|
||||||
gl_WARN_ON_USE_PREPARE([[#include <stdio.h>
|
gl_WARN_ON_USE_PREPARE([[#include <stdio.h>
|
||||||
]], [fseeko ftello])
|
]], [dprintf fpurge fseeko ftello getdelim getline popen renameat
|
||||||
|
snprintf vdprintf vsnprintf])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_STDIO_MODULE_INDICATOR],
|
AC_DEFUN([gl_STDIO_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# stdlib_h.m4 serial 21
|
# stdlib_h.m4 serial 22
|
||||||
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -22,6 +22,20 @@ AC_DEFUN([gl_STDLIB_H],
|
|||||||
# include <random.h>
|
# include <random.h>
|
||||||
#endif
|
#endif
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use, and which is not
|
||||||
|
dnl guaranteed by C89.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <stdlib.h>
|
||||||
|
#if HAVE_SYS_LOADAVG_H
|
||||||
|
# include <sys/loadavg.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_RANDOM_H
|
||||||
|
# include <random.h>
|
||||||
|
#endif
|
||||||
|
]], [atoll canonicalize_file_name getloadavg getsubopt mkdtemp
|
||||||
|
mkostemp mkostemps mkstemp mkstemps random_r initstat_r srandom_r
|
||||||
|
setstate_r realpath rpmatch setenv strtod strtoll strtoull unsetenv])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
|
AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 10
|
# serial 11
|
||||||
|
|
||||||
# Written by Paul Eggert.
|
# Written by Paul Eggert.
|
||||||
|
|
||||||
@@ -21,6 +21,13 @@ AC_DEFUN([gl_HEADER_STRING_H_BODY],
|
|||||||
AC_REQUIRE([AC_C_RESTRICT])
|
AC_REQUIRE([AC_C_RESTRICT])
|
||||||
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
|
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
|
||||||
gl_CHECK_NEXT_HEADERS([string.h])
|
gl_CHECK_NEXT_HEADERS([string.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use, and which is not
|
||||||
|
dnl guaranteed by C89.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <string.h>
|
||||||
|
]], [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup
|
||||||
|
strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_STRING_MODULE_INDICATOR],
|
AC_DEFUN([gl_STRING_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
# Configure a replacement for <string.h>.
|
# Configure a replacement for <string.h>.
|
||||||
|
# serial 2
|
||||||
|
|
||||||
# Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -16,6 +17,11 @@ AC_DEFUN([gl_HEADER_STRINGS_H_BODY],
|
|||||||
[
|
[
|
||||||
AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
|
AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
|
||||||
gl_CHECK_NEXT_HEADERS([strings.h])
|
gl_CHECK_NEXT_HEADERS([strings.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <strings.h>
|
||||||
|
]], [strcasecmp strncasecmp])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_STRINGS_MODULE_INDICATOR],
|
AC_DEFUN([gl_STRINGS_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
# Configure a replacement for <sys/file.h>.
|
# Configure a replacement for <sys/file.h>.
|
||||||
|
# serial 3
|
||||||
|
|
||||||
# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -7,8 +8,6 @@
|
|||||||
|
|
||||||
# Written by Richard W.M. Jones.
|
# Written by Richard W.M. Jones.
|
||||||
|
|
||||||
# serial 2
|
|
||||||
|
|
||||||
AC_DEFUN([gl_HEADER_SYS_FILE_H],
|
AC_DEFUN([gl_HEADER_SYS_FILE_H],
|
||||||
[
|
[
|
||||||
AC_REQUIRE([gl_HEADER_SYS_FILE_H_DEFAULTS])
|
AC_REQUIRE([gl_HEADER_SYS_FILE_H_DEFAULTS])
|
||||||
@@ -26,6 +25,11 @@ AC_DEFUN([gl_HEADER_SYS_FILE_H],
|
|||||||
HAVE_SYS_FILE_H=0
|
HAVE_SYS_FILE_H=0
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_SYS_FILE_H])
|
AC_SUBST([HAVE_SYS_FILE_H])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <sys/file.h>
|
||||||
|
]], [flock])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_HEADER_SYS_FILE_MODULE_INDICATOR],
|
AC_DEFUN([gl_HEADER_SYS_FILE_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# sys_ioctl_h.m4 serial 4
|
# sys_ioctl_h.m4 serial 5
|
||||||
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -33,6 +33,15 @@ AC_DEFUN([gl_SYS_IOCTL_H],
|
|||||||
AC_SUBST([HAVE_SYS_IOCTL_H])
|
AC_SUBST([HAVE_SYS_IOCTL_H])
|
||||||
dnl <sys/ioctl.h> is always overridden, because of GNULIB_POSIXCHECK.
|
dnl <sys/ioctl.h> is always overridden, because of GNULIB_POSIXCHECK.
|
||||||
gl_CHECK_NEXT_HEADERS([sys/ioctl.h])
|
gl_CHECK_NEXT_HEADERS([sys/ioctl.h])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <sys/ioctl.h>
|
||||||
|
/* Some platforms declare ioctl in the wrong header. */
|
||||||
|
#ifndef __GLIBC__
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
]], [ioctl])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Unconditionally enables the replacement of <sys/ioctl.h>.
|
dnl Unconditionally enables the replacement of <sys/ioctl.h>.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# sys_select_h.m4 serial 10
|
# sys_select_h.m4 serial 11
|
||||||
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -56,6 +56,17 @@ AC_DEFUN([gl_HEADER_SYS_SELECT],
|
|||||||
if test $gl_cv_header_sys_select_h_selfcontained != yes; then
|
if test $gl_cv_header_sys_select_h_selfcontained != yes; then
|
||||||
gl_PREREQ_SYS_H_WINSOCK2
|
gl_PREREQ_SYS_H_WINSOCK2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[
|
||||||
|
/* Some systems require prerequisite headers. */
|
||||||
|
#include <sys/types.h>
|
||||||
|
#if !defined __GLIBC__ && HAVE_SYS_TIME_H
|
||||||
|
# include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/select.h>
|
||||||
|
]], [select])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_SYS_SELECT_MODULE_INDICATOR],
|
AC_DEFUN([gl_SYS_SELECT_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# sys_socket_h.m4 serial 13
|
# sys_socket_h.m4 serial 14
|
||||||
dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -66,6 +66,18 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
|
|||||||
gl_PREREQ_SYS_H_WINSOCK2
|
gl_PREREQ_SYS_H_WINSOCK2
|
||||||
fi
|
fi
|
||||||
AC_SUBST([SYS_SOCKET_H])
|
AC_SUBST([SYS_SOCKET_H])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[
|
||||||
|
/* Some systems require prerequisite headers. */
|
||||||
|
#include <sys/types.h>
|
||||||
|
#if !defined __GLIBC__ && HAVE_SYS_TIME_H
|
||||||
|
# include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/select.h>
|
||||||
|
]], [socket connect accept bind getpeername getsockname getsockopt
|
||||||
|
listen recv send recvfrom sendto setsockopt shutdown accept4])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_PREREQ_SYS_H_SOCKET],
|
AC_DEFUN([gl_PREREQ_SYS_H_SOCKET],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# sys_stat_h.m4 serial 21 -*- Autoconf -*-
|
# sys_stat_h.m4 serial 22 -*- Autoconf -*-
|
||||||
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -27,6 +27,11 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H],
|
|||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#include <sys/stat.h>])
|
#include <sys/stat.h>])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h>
|
||||||
|
]], [fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat
|
||||||
|
mknod mknodat stat utimensat])
|
||||||
]) # gl_HEADER_SYS_STAT_H
|
]) # gl_HEADER_SYS_STAT_H
|
||||||
|
|
||||||
AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR],
|
AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR],
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
# Configure a replacement for <sys/times.h>.
|
# Configure a replacement for <sys/times.h>.
|
||||||
# serial 3
|
# serial 4
|
||||||
|
|
||||||
# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -24,6 +24,16 @@ AC_DEFUN([gl_SYS_TIMES_H],
|
|||||||
HAVE_STRUCT_TMS=0
|
HAVE_STRUCT_TMS=0
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_SYS_TIMES_H])
|
AC_SUBST([HAVE_SYS_TIMES_H])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[
|
||||||
|
/* Some systems have incomplete headers. */
|
||||||
|
#ifndef __GLIBC__
|
||||||
|
# include <time.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/times.h>
|
||||||
|
]], [times])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_SYS_TIMES_MODULE_INDICATOR],
|
AC_DEFUN([gl_SYS_TIMES_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# sys_utsname_h.m4 serial 3
|
# sys_utsname_h.m4 serial 4
|
||||||
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -24,6 +24,11 @@ AC_DEFUN([gl_SYS_UTSNAME_H],
|
|||||||
]])
|
]])
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_SYS_UTSNAME_H])
|
AC_SUBST([HAVE_SYS_UTSNAME_H])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[#include <sys/utsname.h>
|
||||||
|
]], [uname])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_SYS_UTSNAME_MODULE_INDICATOR],
|
AC_DEFUN([gl_SYS_UTSNAME_MODULE_INDICATOR],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# unistd_h.m4 serial 38
|
# unistd_h.m4 serial 39
|
||||||
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -26,11 +26,20 @@ AC_DEFUN([gl_UNISTD_H],
|
|||||||
dnl Check for declarations of anything we want to poison if the
|
dnl Check for declarations of anything we want to poison if the
|
||||||
dnl corresponding gnulib module is not in use.
|
dnl corresponding gnulib module is not in use.
|
||||||
gl_WARN_ON_USE_PREPARE([[#include <unistd.h>
|
gl_WARN_ON_USE_PREPARE([[#include <unistd.h>
|
||||||
/* Some systems declare environ in the wrong header. */
|
/* Some systems declare various items in the wrong headers. */
|
||||||
#ifndef __GLIBC__
|
#ifndef __GLIBC__
|
||||||
|
# include <fcntl.h>
|
||||||
|
# include <stdio.h>
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
|
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
|
||||||
|
# include <io.h>
|
||||||
# endif
|
# endif
|
||||||
]], [environ])
|
#endif
|
||||||
|
]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat
|
||||||
|
fsync ftruncate getcwd getdomainname getdtablesize getgroups
|
||||||
|
gethostname getlogin getlogin_r getpagesize getusershell setusershell
|
||||||
|
endusershell lchown link linkat lseek pipe2 pread readlink readlinkat
|
||||||
|
rmdir sleep symlink symlinkat unlink unlinkat usleep])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
||||||
|
15
m4/wchar.m4
15
m4/wchar.m4
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
|
|||||||
|
|
||||||
dnl Written by Eric Blake.
|
dnl Written by Eric Blake.
|
||||||
|
|
||||||
# wchar.m4 serial 30
|
# wchar.m4 serial 31
|
||||||
|
|
||||||
AC_DEFUN([gl_WCHAR_H],
|
AC_DEFUN([gl_WCHAR_H],
|
||||||
[
|
[
|
||||||
@@ -33,6 +33,19 @@ AC_DEFUN([gl_WCHAR_H],
|
|||||||
HAVE_WINT_T=0
|
HAVE_WINT_T=0
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_WINT_T])
|
AC_SUBST([HAVE_WINT_T])
|
||||||
|
|
||||||
|
dnl Check for declarations of anything we want to poison if the
|
||||||
|
dnl corresponding gnulib module is not in use.
|
||||||
|
gl_WARN_ON_USE_PREPARE([[
|
||||||
|
/* Some systems require additional headers. */
|
||||||
|
#ifndef __GLIBC__
|
||||||
|
# include <stddef.h>
|
||||||
|
# include <stdio.h>
|
||||||
|
# include <time.h>
|
||||||
|
#endif
|
||||||
|
#include <wchar.h>
|
||||||
|
]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
|
||||||
|
wcsrtombs wcsnrtombs wcwidth])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Check whether <wchar.h> is usable at all.
|
dnl Check whether <wchar.h> is usable at all.
|
||||||
|
@@ -6,10 +6,10 @@ lib/arpa_inet.in.h
|
|||||||
m4/arpa_inet_h.m4
|
m4/arpa_inet_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
sys_socket
|
sys_socket
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_ARPA_INET
|
gl_HEADER_ARPA_INET
|
||||||
@@ -20,7 +20,7 @@ BUILT_SOURCES += arpa/inet.h
|
|||||||
|
|
||||||
# We need the following in order to create <arpa/inet.h> when the system
|
# We need the following in order to create <arpa/inet.h> when the system
|
||||||
# doesn't have one.
|
# doesn't have one.
|
||||||
arpa/inet.h: arpa_inet.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
arpa/inet.h: arpa_inet.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_at)$(MKDIR_P) arpa
|
$(AM_V_at)$(MKDIR_P) arpa
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -32,8 +32,8 @@ arpa/inet.h: arpa_inet.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
|
-e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
|
||||||
-e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
|
-e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
|
||||||
-e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
|
-e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/arpa_inet.in.h; \
|
< $(srcdir)/arpa_inet.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,7 +7,7 @@ m4/ctype.m4
|
|||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_CTYPE_H
|
gl_CTYPE_H
|
||||||
@@ -17,7 +17,7 @@ BUILT_SOURCES += ctype.h
|
|||||||
|
|
||||||
# We need the following in order to create <ctype.h> when the system
|
# We need the following in order to create <ctype.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
ctype.h: ctype.in.h $(LINK_WARNING_H)
|
ctype.h: ctype.in.h $(WARN_ON_USE_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -25,7 +25,7 @@ ctype.h: ctype.in.h $(LINK_WARNING_H)
|
|||||||
-e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
|
-e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
|
||||||
-e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \
|
-e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \
|
||||||
-e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
|
-e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/ctype.in.h; \
|
< $(srcdir)/ctype.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,9 +7,9 @@ m4/dirent_h.m4
|
|||||||
m4/unistd_h.m4
|
m4/unistd_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_DIRENT_H
|
gl_DIRENT_H
|
||||||
@@ -19,7 +19,7 @@ BUILT_SOURCES += dirent.h
|
|||||||
|
|
||||||
# We need the following in order to create <dirent.h> when the system
|
# We need the following in order to create <dirent.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
dirent.h: dirent.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
dirent.h: dirent.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -36,8 +36,8 @@ dirent.h: dirent.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
|
-e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
|
||||||
-e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
|
-e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
|
||||||
-e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
|
-e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/dirent.in.h; \
|
< $(srcdir)/dirent.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,11 +7,11 @@ m4/fcntl_h.m4
|
|||||||
m4/fcntl-o.m4
|
m4/fcntl-o.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
unistd
|
|
||||||
extensions
|
extensions
|
||||||
|
include_next
|
||||||
|
unistd
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_FCNTL_H
|
gl_FCNTL_H
|
||||||
@@ -21,7 +21,7 @@ BUILT_SOURCES += fcntl.h
|
|||||||
|
|
||||||
# We need the following in order to create <fcntl.h> when the system
|
# We need the following in order to create <fcntl.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
fcntl.h: fcntl.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
fcntl.h: fcntl.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -35,8 +35,8 @@ fcntl.h: fcntl.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
|
-e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
|
||||||
-e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
|
-e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
|
||||||
-e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
|
-e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/fcntl.in.h; \
|
< $(srcdir)/fcntl.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,11 +7,11 @@ m4/inttypes-pri.m4
|
|||||||
m4/inttypes.m4
|
m4/inttypes.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
multiarch
|
multiarch
|
||||||
stdint
|
stdint
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_INTTYPES_H
|
gl_INTTYPES_H
|
||||||
@@ -21,7 +21,7 @@ BUILT_SOURCES += inttypes.h
|
|||||||
|
|
||||||
# We need the following in order to create <inttypes.h> when the system
|
# We need the following in order to create <inttypes.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
inttypes.h: inttypes.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
inttypes.h: inttypes.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
|
sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
|
||||||
@@ -45,8 +45,8 @@ inttypes.h: inttypes.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
|
-e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
|
||||||
-e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
|
-e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
|
||||||
-e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
|
-e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/inttypes.in.h; \
|
< $(srcdir)/inttypes.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -8,7 +8,7 @@ m4/langinfo_h.m4
|
|||||||
Depends-on:
|
Depends-on:
|
||||||
extensions
|
extensions
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_LANGINFO_H
|
gl_LANGINFO_H
|
||||||
@@ -18,7 +18,7 @@ BUILT_SOURCES += langinfo.h
|
|||||||
|
|
||||||
# We need the following in order to create an empty placeholder for
|
# We need the following in order to create an empty placeholder for
|
||||||
# <langinfo.h> when the system doesn't have one.
|
# <langinfo.h> when the system doesn't have one.
|
||||||
langinfo.h: langinfo.in.h $(LINK_WARNING_H)
|
langinfo.h: langinfo.in.h $(WARN_ON_USE_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
|
sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
|
||||||
@@ -30,7 +30,7 @@ langinfo.h: langinfo.in.h $(LINK_WARNING_H)
|
|||||||
-e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
|
-e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
|
||||||
-e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
|
-e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
|
||||||
-e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
|
-e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/langinfo.in.h; \
|
< $(srcdir)/langinfo.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -6,11 +6,11 @@ lib/locale.in.h
|
|||||||
m4/locale_h.m4
|
m4/locale_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
extensions
|
extensions
|
||||||
link-warning
|
include_next
|
||||||
stddef
|
stddef
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_LOCALE_H
|
gl_LOCALE_H
|
||||||
@@ -20,7 +20,7 @@ BUILT_SOURCES += locale.h
|
|||||||
|
|
||||||
# We need the following in order to create <locale.h> when the system
|
# We need the following in order to create <locale.h> when the system
|
||||||
# doesn't have one that provides all definitions.
|
# doesn't have one that provides all definitions.
|
||||||
locale.h: locale.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
locale.h: locale.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -29,8 +29,8 @@ locale.h: locale.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
|
-e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
|
||||||
-e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
|
-e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
|
||||||
-e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
|
-e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/locale.in.h; \
|
< $(srcdir)/locale.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -8,7 +8,6 @@ m4/math_h.m4
|
|||||||
Depends-on:
|
Depends-on:
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
|
||||||
warn-on-use
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
@@ -19,7 +18,7 @@ BUILT_SOURCES += math.h
|
|||||||
|
|
||||||
# We need the following in order to create <math.h> when the system
|
# We need the following in order to create <math.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
math.h: math.in.h $(LINK_WARNING_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
math.h: math.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
|
sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
|
||||||
@@ -97,7 +96,6 @@ math.h: math.in.h $(LINK_WARNING_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
|
-e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
|
||||||
-e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
|
-e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
|
||||||
-e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
|
-e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/math.in.h; \
|
< $(srcdir)/math.in.h; \
|
||||||
|
@@ -6,9 +6,9 @@ lib/search.in.h
|
|||||||
m4/search_h.m4
|
m4/search_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_SEARCH_H
|
gl_SEARCH_H
|
||||||
@@ -18,7 +18,7 @@ BUILT_SOURCES += search.h
|
|||||||
|
|
||||||
# We need the following in order to create <search.h> when the system
|
# We need the following in order to create <search.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
search.h: search.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
search.h: search.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''HAVE_SEARCH_H''@|$(HAVE_SEARCH_H)|g' \
|
sed -e 's|@''HAVE_SEARCH_H''@|$(HAVE_SEARCH_H)|g' \
|
||||||
@@ -28,8 +28,8 @@ search.h: search.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''GNULIB_TSEARCH''@|$(GNULIB_TSEARCH)|g' \
|
-e 's|@''GNULIB_TSEARCH''@|$(GNULIB_TSEARCH)|g' \
|
||||||
-e 's|@''HAVE_TSEARCH''@|$(HAVE_TSEARCH)|g' \
|
-e 's|@''HAVE_TSEARCH''@|$(HAVE_TSEARCH)|g' \
|
||||||
-e 's|@''REPLACE_TSEARCH''@|$(REPLACE_TSEARCH)|g' \
|
-e 's|@''REPLACE_TSEARCH''@|$(REPLACE_TSEARCH)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/search.in.h; \
|
< $(srcdir)/search.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -6,9 +6,9 @@ lib/signal.in.h
|
|||||||
m4/signal_h.m4
|
m4/signal_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_SIGNAL_H
|
gl_SIGNAL_H
|
||||||
@@ -18,7 +18,7 @@ BUILT_SOURCES += signal.h
|
|||||||
|
|
||||||
# We need the following in order to create <signal.h> when the system
|
# We need the following in order to create <signal.h> when the system
|
||||||
# doesn't have a complete one.
|
# doesn't have a complete one.
|
||||||
signal.h: signal.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
signal.h: signal.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -33,8 +33,8 @@ signal.h: signal.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
|
-e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
|
||||||
-e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
|
-e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
|
||||||
-e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
|
-e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/signal.in.h; \
|
< $(srcdir)/signal.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -6,10 +6,10 @@ lib/spawn.in.h
|
|||||||
m4/spawn_h.m4
|
m4/spawn_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
sched
|
sched
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_SPAWN_H
|
gl_SPAWN_H
|
||||||
@@ -19,7 +19,7 @@ BUILT_SOURCES += spawn.h
|
|||||||
|
|
||||||
# We need the following in order to create a replacement for <spawn.h> when
|
# We need the following in order to create a replacement for <spawn.h> when
|
||||||
# the system doesn't have one.
|
# the system doesn't have one.
|
||||||
spawn.h: spawn.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
spawn.h: spawn.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \
|
sed -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \
|
||||||
@@ -51,8 +51,8 @@ spawn.h: spawn.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''HAVE_POSIX_SPAWNATTR_T''@|$(HAVE_POSIX_SPAWNATTR_T)|g' \
|
-e 's|@''HAVE_POSIX_SPAWNATTR_T''@|$(HAVE_POSIX_SPAWNATTR_T)|g' \
|
||||||
-e 's|@''HAVE_POSIX_SPAWN_FILE_ACTIONS_T''@|$(HAVE_POSIX_SPAWN_FILE_ACTIONS_T)|g' \
|
-e 's|@''HAVE_POSIX_SPAWN_FILE_ACTIONS_T''@|$(HAVE_POSIX_SPAWN_FILE_ACTIONS_T)|g' \
|
||||||
-e 's|@''REPLACE_POSIX_SPAWN''@|$(REPLACE_POSIX_SPAWN)|g' \
|
-e 's|@''REPLACE_POSIX_SPAWN''@|$(REPLACE_POSIX_SPAWN)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/spawn.in.h; \
|
< $(srcdir)/spawn.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -8,7 +8,6 @@ m4/stdio_h.m4
|
|||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
raise
|
raise
|
||||||
stddef
|
stddef
|
||||||
@@ -22,7 +21,7 @@ BUILT_SOURCES += stdio.h
|
|||||||
|
|
||||||
# We need the following in order to create <stdio.h> when the system
|
# We need the following in order to create <stdio.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
stdio.h: stdio.in.h $(LINK_WARNING_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
stdio.h: stdio.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -107,7 +106,6 @@ stdio.h: stdio.in.h $(LINK_WARNING_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
|
-e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
|
||||||
-e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
|
-e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
|
||||||
-e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
|
-e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
|
@@ -6,12 +6,12 @@ lib/stdlib.in.h
|
|||||||
m4/stdlib_h.m4
|
m4/stdlib_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
unistd
|
include_next
|
||||||
stddef
|
stddef
|
||||||
stdint
|
stdint
|
||||||
|
unistd
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_STDLIB_H
|
gl_STDLIB_H
|
||||||
@@ -21,7 +21,7 @@ BUILT_SOURCES += stdlib.h
|
|||||||
|
|
||||||
# We need the following in order to create <stdlib.h> when the system
|
# We need the following in order to create <stdlib.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
stdlib.h: stdlib.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
stdlib.h: stdlib.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -77,8 +77,8 @@ stdlib.h: stdlib.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
|
-e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
|
||||||
-e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
|
-e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
|
||||||
-e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
|
-e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/stdlib.in.h; \
|
< $(srcdir)/stdlib.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -6,11 +6,11 @@ lib/string.in.h
|
|||||||
m4/string_h.m4
|
m4/string_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
|
arg-nonnull
|
||||||
extensions
|
extensions
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
|
||||||
stddef
|
stddef
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_STRING_H
|
gl_HEADER_STRING_H
|
||||||
@@ -20,7 +20,7 @@ BUILT_SOURCES += string.h
|
|||||||
|
|
||||||
# We need the following in order to create <string.h> when the system
|
# We need the following in order to create <string.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
string.h: string.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
string.h: string.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -88,8 +88,9 @@ string.h: string.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
|
-e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
|
||||||
-e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
|
-e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
|
||||||
-e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
|
-e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)'; \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
||||||
|
< $(srcdir)/string.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
MOSTLYCLEANFILES += string.h string.h-t
|
MOSTLYCLEANFILES += string.h string.h-t
|
||||||
|
@@ -6,9 +6,9 @@ lib/strings.in.h
|
|||||||
m4/strings_h.m4
|
m4/strings_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_STRINGS_H
|
gl_HEADER_STRINGS_H
|
||||||
@@ -18,7 +18,7 @@ BUILT_SOURCES += strings.h
|
|||||||
|
|
||||||
# We need the following in order to create <strings.h> when the system
|
# We need the following in order to create <strings.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
strings.h: strings.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -26,8 +26,8 @@ strings.h: strings.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
|
-e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
|
||||||
-e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
|
-e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
|
||||||
-e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
|
-e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/strings.in.h; \
|
< $(srcdir)/strings.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,7 +7,7 @@ m4/sys_file_h.m4
|
|||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_SYS_FILE_H
|
gl_HEADER_SYS_FILE_H
|
||||||
@@ -18,7 +18,7 @@ BUILT_SOURCES += sys/file.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/file.h> when the system
|
# We need the following in order to create <sys/file.h> when the system
|
||||||
# has one that is incomplete.
|
# has one that is incomplete.
|
||||||
sys/file.h: sys_file.in.h $(LINK_WARNING_H)
|
sys/file.h: sys_file.in.h $(WARN_ON_USE_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -28,7 +28,7 @@ sys/file.h: sys_file.in.h $(LINK_WARNING_H)
|
|||||||
-e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \
|
-e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \
|
||||||
-e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \
|
-e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \
|
||||||
-e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \
|
-e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_file.in.h; \
|
< $(srcdir)/sys_file.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,8 +7,8 @@ m4/sys_ioctl_h.m4
|
|||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
|
||||||
unistd
|
unistd
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_SYS_IOCTL_H
|
gl_SYS_IOCTL_H
|
||||||
@@ -19,7 +19,7 @@ BUILT_SOURCES += sys/ioctl.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/ioctl.h> when the system
|
# We need the following in order to create <sys/ioctl.h> when the system
|
||||||
# does not have a complete one.
|
# does not have a complete one.
|
||||||
sys/ioctl.h: sys_ioctl.in.h $(LINK_WARNING_H)
|
sys/ioctl.h: sys_ioctl.in.h $(WARN_ON_USE_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -30,7 +30,7 @@ sys/ioctl.h: sys_ioctl.in.h $(LINK_WARNING_H)
|
|||||||
-e 's|@''GNULIB_IOCTL''@|$(GNULIB_IOCTL)|g' \
|
-e 's|@''GNULIB_IOCTL''@|$(GNULIB_IOCTL)|g' \
|
||||||
-e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
|
-e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
|
||||||
-e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
|
-e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_ioctl.in.h; \
|
< $(srcdir)/sys_ioctl.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,9 +7,9 @@ m4/sys_select_h.m4
|
|||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
|
||||||
sys_socket
|
sys_socket
|
||||||
sys_time
|
sys_time
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_SYS_SELECT
|
gl_HEADER_SYS_SELECT
|
||||||
@@ -20,7 +20,7 @@ BUILT_SOURCES += sys/select.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/select.h> when the system
|
# We need the following in order to create <sys/select.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
sys/select.h: sys_select.in.h $(LINK_WARNING_H)
|
sys/select.h: sys_select.in.h $(WARN_ON_USE_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -31,7 +31,7 @@ sys/select.h: sys_select.in.h $(LINK_WARNING_H)
|
|||||||
-e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \
|
-e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \
|
||||||
-e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
|
-e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
|
||||||
-e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
|
-e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_select.in.h; \
|
< $(srcdir)/sys_select.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -7,11 +7,11 @@ m4/sys_socket_h.m4
|
|||||||
m4/sockpfaf.m4
|
m4/sockpfaf.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
alignof
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
errno
|
errno
|
||||||
alignof
|
include_next
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_SYS_SOCKET
|
gl_HEADER_SYS_SOCKET
|
||||||
@@ -22,7 +22,7 @@ BUILT_SOURCES += sys/socket.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/socket.h> when the system
|
# We need the following in order to create <sys/socket.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
sys/socket.h: sys_socket.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
sys/socket.h: sys_socket.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -51,8 +51,8 @@ sys/socket.h: sys_socket.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
|
-e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
|
||||||
-e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
|
-e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
|
||||||
-e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
|
-e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_socket.in.h; \
|
< $(srcdir)/sys_socket.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv -f $@-t $@
|
mv -f $@-t $@
|
||||||
|
@@ -7,10 +7,10 @@ m4/sys_stat_h.m4
|
|||||||
m4/unistd_h.m4
|
m4/unistd_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
time
|
time
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_HEADER_SYS_STAT_H
|
gl_HEADER_SYS_STAT_H
|
||||||
@@ -21,7 +21,7 @@ BUILT_SOURCES += sys/stat.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/stat.h> when the system
|
# We need the following in order to create <sys/stat.h> when the system
|
||||||
# has one that is incomplete.
|
# has one that is incomplete.
|
||||||
sys/stat.h: sys_stat.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
sys/stat.h: sys_stat.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -60,8 +60,8 @@ sys/stat.h: sys_stat.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
|
-e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
|
||||||
-e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
|
-e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
|
||||||
-e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
|
-e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_stat.in.h; \
|
< $(srcdir)/sys_stat.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -8,7 +8,7 @@ m4/sys_times_h.m4
|
|||||||
Depends-on:
|
Depends-on:
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_SYS_TIMES_H
|
gl_SYS_TIMES_H
|
||||||
@@ -19,7 +19,7 @@ BUILT_SOURCES += sys/times.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/times.h> when the system
|
# We need the following in order to create <sys/times.h> when the system
|
||||||
# doesn't have one that works with the given compiler.
|
# doesn't have one that works with the given compiler.
|
||||||
sys/times.h: sys_times.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
sys/times.h: sys_times.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -30,8 +30,8 @@ sys/times.h: sys_times.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''GNULIB_TIMES''@|$(GNULIB_TIMES)|g' \
|
-e 's|@''GNULIB_TIMES''@|$(GNULIB_TIMES)|g' \
|
||||||
-e 's|@''HAVE_STRUCT_TMS''@|$(HAVE_STRUCT_TMS)|g' \
|
-e 's|@''HAVE_STRUCT_TMS''@|$(HAVE_STRUCT_TMS)|g' \
|
||||||
-e 's|@''HAVE_TIMES''@|$(HAVE_TIMES)|g' \
|
-e 's|@''HAVE_TIMES''@|$(HAVE_TIMES)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_times.in.h; \
|
< $(srcdir)/sys_times.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -8,7 +8,7 @@ m4/sys_utsname_h.m4
|
|||||||
Depends-on:
|
Depends-on:
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_SYS_UTSNAME_H
|
gl_SYS_UTSNAME_H
|
||||||
@@ -19,7 +19,7 @@ BUILT_SOURCES += sys/utsname.h
|
|||||||
|
|
||||||
# We need the following in order to create <sys/utsname.h> when the system
|
# We need the following in order to create <sys/utsname.h> when the system
|
||||||
# does not have one.
|
# does not have one.
|
||||||
sys/utsname.h: sys_utsname.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
sys/utsname.h: sys_utsname.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_at)$(MKDIR_P) sys
|
$(AM_V_at)$(MKDIR_P) sys
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
@@ -30,8 +30,8 @@ sys/utsname.h: sys_utsname.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''GNULIB_UNAME''@|$(GNULIB_UNAME)|g' \
|
-e 's|@''GNULIB_UNAME''@|$(GNULIB_UNAME)|g' \
|
||||||
-e 's|@''HAVE_STRUCT_UTSNAME''@|$(HAVE_STRUCT_UTSNAME)|g' \
|
-e 's|@''HAVE_STRUCT_UTSNAME''@|$(HAVE_STRUCT_UTSNAME)|g' \
|
||||||
-e 's|@''HAVE_UNAME''@|$(HAVE_UNAME)|g' \
|
-e 's|@''HAVE_UNAME''@|$(HAVE_UNAME)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/sys_utsname.in.h; \
|
< $(srcdir)/sys_utsname.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
@@ -8,7 +8,6 @@ lib/unistd.in.h
|
|||||||
Depends-on:
|
Depends-on:
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
include_next
|
include_next
|
||||||
link-warning
|
|
||||||
stddef
|
stddef
|
||||||
warn-on-use
|
warn-on-use
|
||||||
|
|
||||||
@@ -20,7 +19,7 @@ BUILT_SOURCES += unistd.h
|
|||||||
|
|
||||||
# We need the following in order to create an empty placeholder for
|
# We need the following in order to create an empty placeholder for
|
||||||
# <unistd.h> when the system doesn't have one.
|
# <unistd.h> when the system doesn't have one.
|
||||||
unistd.h: unistd.in.h $(LINK_WARNING_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
unistd.h: unistd.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
|
sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
|
||||||
@@ -121,7 +120,6 @@ unistd.h: unistd.in.h $(LINK_WARNING_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
|
-e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
|
||||||
-e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
|
-e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
|
||||||
-e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
|
-e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
|
@@ -7,10 +7,10 @@ m4/wchar.m4
|
|||||||
m4/wint_t.m4
|
m4/wint_t.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
include_next
|
|
||||||
link-warning
|
|
||||||
arg-nonnull
|
arg-nonnull
|
||||||
|
include_next
|
||||||
stddef
|
stddef
|
||||||
|
warn-on-use
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_WCHAR_H
|
gl_WCHAR_H
|
||||||
@@ -20,7 +20,7 @@ BUILT_SOURCES += wchar.h
|
|||||||
|
|
||||||
# We need the following in order to create <wchar.h> when the system
|
# We need the following in order to create <wchar.h> when the system
|
||||||
# version does not work standalone.
|
# version does not work standalone.
|
||||||
wchar.h: wchar.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
wchar.h: wchar.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
|
||||||
$(AM_V_GEN)rm -f $@-t $@ && \
|
$(AM_V_GEN)rm -f $@-t $@ && \
|
||||||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
||||||
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
@@ -62,8 +62,8 @@ wchar.h: wchar.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
|
|||||||
-e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
|
-e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
|
||||||
-e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
|
-e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
|
||||||
-e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
|
-e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
|
||||||
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
||||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||||
|
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||||
< $(srcdir)/wchar.in.h; \
|
< $(srcdir)/wchar.in.h; \
|
||||||
} > $@-t && \
|
} > $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
Reference in New Issue
Block a user