aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-05-03 16:33:26 -0700
committerRoland McGrath <roland@hack.frob.com>2013-05-03 16:33:26 -0700
commitcc0e6ed81fa3ab0eeecfc576098b4522f0323c4b (patch)
treeef84d38f2a5bba357c20eb8c3a6135c2bb6746b8 /sysdeps/mach
parent60bfd54cbb0c51ab95c52a7438509373b848c957 (diff)
downloadglibc-cc0e6ed81fa3ab0eeecfc576098b4522f0323c4b.tar
glibc-cc0e6ed81fa3ab0eeecfc576098b4522f0323c4b.tar.gz
glibc-cc0e6ed81fa3ab0eeecfc576098b4522f0323c4b.tar.bz2
glibc-cc0e6ed81fa3ab0eeecfc576098b4522f0323c4b.zip
Consolidate definitions of _FORTIFY_SOURCE wrappers for open{,64}{,at}.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/open.c11
-rw-r--r--sysdeps/mach/hurd/openat.c13
2 files changed, 0 insertions, 24 deletions
diff --git a/sysdeps/mach/hurd/open.c b/sysdeps/mach/hurd/open.c
index 2ba2b5d6e9..49dd287c00 100644
--- a/sysdeps/mach/hurd/open.c
+++ b/sysdeps/mach/hurd/open.c
@@ -52,20 +52,9 @@ weak_alias (__libc_open, __open)
libc_hidden_weak (__open)
weak_alias (__libc_open, open)
-int
-__open_2 (file, oflag)
- const char *file;
- int oflag;
-{
- if (oflag & O_CREAT)
- __fortify_fail ("invalid open call: O_CREAT without mode");
-
- return __open (file, oflag);
-}
/* open64 is just the same as open for us. */
weak_alias (__libc_open, __libc_open64)
weak_alias (__libc_open, __open64)
libc_hidden_weak (_open64)
weak_alias (__libc_open, open64)
-strong_alias (__open_2, __open64_2)
diff --git a/sysdeps/mach/hurd/openat.c b/sysdeps/mach/hurd/openat.c
index 9eb163f84a..e568acc875 100644
--- a/sysdeps/mach/hurd/openat.c
+++ b/sysdeps/mach/hurd/openat.c
@@ -56,20 +56,7 @@ __openat (fd, file, oflag)
libc_hidden_def (__openat)
weak_alias (__openat, openat)
-int
-__openat_2 (fd, file, oflag)
- int fd;
- const char *file;
- int oflag;
-{
- if (oflag & O_CREAT)
- __fortify_fail ("invalid openat call: O_CREAT without mode");
-
- return __openat (fd, file, oflag);
-}
-
/* openat64 is just the same as openat for us. */
weak_alias (__openat, __openat64)
libc_hidden_weak (__openat64)
weak_alias (__openat, openat64)
-strong_alias (__openat_2, __openat64_2)