diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/fcntl-safer.m4 | 12 | ||||
-rw-r--r-- | m4/np_coreutils.m4 | 2 | ||||
-rw-r--r-- | m4/unistd-safer.m4 | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/m4/fcntl-safer.m4 b/m4/fcntl-safer.m4 new file mode 100644 index 00000000..be210f9a --- /dev/null +++ b/m4/fcntl-safer.m4 @@ -0,0 +1,12 @@ +#serial 2 +dnl Copyright (C) 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FCNTL_SAFER], +[ + AC_LIBSOURCES([creat-safer.c, fcntl-safer.h, open-safer.c, fcntl--.h]) + AC_LIBOBJ([open-safer]) + AC_LIBOBJ([creat-safer]) +]) diff --git a/m4/np_coreutils.m4 b/m4/np_coreutils.m4 index 23d55e44..5360bbd0 100644 --- a/m4/np_coreutils.m4 +++ b/m4/np_coreutils.m4 @@ -13,11 +13,13 @@ AC_DEFUN([np_COREUTILS], AC_REQUIRE([AM_STDBOOL_H]) AC_REQUIRE([gl_C_STRTOLD]) AC_REQUIRE([gl_EXITFAIL]) + AC_REQUIRE([gl_FCNTL_SAFER]) AC_REQUIRE([gl_FSUSAGE]) AC_REQUIRE([gl_FUNC_ALLOCA]) AC_REQUIRE([gl_GETOPT]) AC_REQUIRE([gl_MOUNTLIST]) AC_REQUIRE([gl_REGEX]) + AC_REQUIRE([gl_UNISTD_SAFER]) AC_REQUIRE([gl_XALLOC]) AC_REQUIRE([gl_FUNC_GLIBC_UNLOCKED_IO]) diff --git a/m4/unistd-safer.m4 b/m4/unistd-safer.m4 new file mode 100644 index 00000000..6fbe4c6f --- /dev/null +++ b/m4/unistd-safer.m4 @@ -0,0 +1,13 @@ +#serial 7 +dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_UNISTD_SAFER], +[ + AC_LIBSOURCES([dup-safer.c, fd-safer.c, pipe-safer.c, unistd-safer.h, unistd--.h]) + AC_LIBOBJ([dup-safer]) + AC_LIBOBJ([fd-safer]) + AC_LIBOBJ([pipe-safer]) +]) |