Add HAVE_GETENV, HAVE_SETENV, HAVE_UNSETENV, HAVE_PUTENV, HAVE_GETRLIMIT, HAVE_SETRLIMIT, HAVE_SETFD (GH PR #28)

This commit is contained in:
Fred Helmesjö 2022-09-01 09:40:24 +02:00 committed by Boris Kolpackov
parent 98ca18573e
commit dbeacaffd4
7 changed files with 127 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// HAVE_GETENV : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETENV
/* Since Version 7 AT&T UNIX, 4.3BSD-Tahoe (OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.09
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 09)
# define HAVE_GETENV 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_GETRLIMIT : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETRLIMIT
/* Since 4.2BSD (Linux, OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.90
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 90)
# define HAVE_GETRLIMIT 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_PUTENV : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_PUTENV
/* Since AT&T System V Release 2 UNIX, 4.3BSD-Reno (OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.09
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 09)
# define HAVE_PUTENV 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_SETENV : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_SETENV
/* Since Version 7 AT&T UNIX, 4.3BSD-Tahoe (OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.09
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 09)
# define HAVE_SETENV 1
#endif

View File

@ -0,0 +1,19 @@
// HAVE_SETFD : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_SETFD
/* Since SVr4, 4.3BSD, POSIX.1-2001 (only Linux mentioned but assume all
* because it's old & standardized),
* glibc 1.90
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 90)
# define HAVE_SETFD 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_SETRLIMIT : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_SETRLIMIT
/* Since 4.2BSD (Linux, OpenBSD, FreeBSD, NetBSD, Mac OS X)
* glibc 1.90
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 90)
# define HAVE_SETRLIMIT 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_UNSETENV : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_UNSETENV
/* Since Version 7 AT&T UNIX, 4.3BSD-Tahoe (OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.90
*/
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(1, 90)
# define HAVE_UNSETENV 1
#endif