]> sourceware.org Git - glibc.git/blame - io/open64.c
Skip logging for DNSSEC responses [BZ 14841]
[glibc.git] / io / open64.c
CommitLineData
b168057a 1/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
478b92f0 2 This file is part of the GNU C Library.
28f540f4 3
478b92f0 4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
28f540f4 8
478b92f0
UD
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
28f540f4 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
28f540f4 17
28f540f4 18#include <errno.h>
dfd2257a
UD
19#include <fcntl.h>
20#include <stdarg.h>
28f540f4 21#include <stddef.h>
ddfd0535 22#include <stdio.h>
28f540f4 23
dfd2257a
UD
24/* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
25 a third argument is the file protection. */
28f540f4 26int
778c59c8 27__libc_open64 (file, oflag)
dfd2257a
UD
28 const char *file;
29 int oflag;
28f540f4 30{
dfd2257a
UD
31 int mode;
32
33 if (file == NULL)
28f540f4 34 {
c4029823 35 __set_errno (EINVAL);
28f540f4
RM
36 return -1;
37 }
38
dfd2257a
UD
39 if (oflag & O_CREAT)
40 {
41 va_list arg;
42 va_start (arg, oflag);
43 mode = va_arg (arg, int);
44 va_end (arg);
45 }
46
c4029823 47 __set_errno (ENOSYS);
28f540f4
RM
48 return -1;
49}
778c59c8 50strong_alias (__libc_open64, __open64)
37ba7d66 51libc_hidden_def (__open64)
ddfd0535 52weak_alias (__libc_open64, open64)
28f540f4 53
dfd2257a 54stub_warning (open64)
ddfd0535 55
cc0e6ed8
RM
56/* __open64_2 is a generic wrapper that calls __open64.
57 So give a stub warning for that symbol too. */
ddfd0535 58stub_warning (__open64_2)
This page took 0.64295 seconds and 5 git commands to generate.