From cc0e6ed81fa3ab0eeecfc576098b4522f0323c4b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 3 May 2013 16:33:26 -0700 Subject: Consolidate definitions of _FORTIFY_SOURCE wrappers for open{,64}{,at}. --- io/openat64.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'io/openat64.c') diff --git a/io/openat64.c b/io/openat64.c index fabfa5d380..506da3cf07 100644 --- a/io/openat64.c +++ b/io/openat64.c @@ -68,16 +68,6 @@ libc_hidden_def (__openat64) weak_alias (__openat64, openat64) stub_warning (openat64) - -int -__openat64_2 (fd, file, oflag) - int fd; - const char *file; - int oflag; -{ - if (oflag & O_CREAT) - __fortify_fail ("invalid openat64 call: O_CREAT without mode"); - - return __openat64 (fd, file, oflag); -} +/* __openat64_2 is a generic wrapper that calls __openat64. + So give a stub warning for that symbol too. */ stub_warning (__openat_2) -- cgit 1.4.1