diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-08-03 04:09:03 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-08-03 04:09:03 +0000 |
commit | cbf0489bcf3eebeeba595a514461057a4e2f1e8b (patch) | |
tree | 5494b98023b95a29643094578424382515a41724 /io/Makefile | |
parent | fa39685d5c7df2502213418bead44e9543a9b9ec (diff) | |
download | glibc-cbf0489bcf3eebeeba595a514461057a4e2f1e8b.tar.gz glibc-cbf0489bcf3eebeeba595a514461057a4e2f1e8b.tar.xz glibc-cbf0489bcf3eebeeba595a514461057a4e2f1e8b.zip |
* io/Makefile (aux): Add have_o_cloexec.
* include/fcntl.h: Declare __have_o_cloexec. * io/have_o_cloexec.c: New file. * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available. (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the fcntl call if not necessary. * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead of local variable.
Diffstat (limited to 'io/Makefile')
-rw-r--r-- | io/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io/Makefile b/io/Makefile index da589b118a..1acda4c8b6 100644 --- a/io/Makefile +++ b/io/Makefile @@ -54,6 +54,8 @@ routines := \ sendfile sendfile64 \ utimensat futimens +aux := have_o_cloexec + # These routines will be omitted from the libc shared object. # Instead the static object files will be included in a special archive # linked against when the shared library will be used. |