Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: fcntl2.h
/* Checking macros for fcntl functions.
[0] Fix | Delete
Copyright (C) 2007-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _FCNTL_H
[18] Fix | Delete
# error "Never include <bits/fcntl2.h> directly; use <fcntl.h> instead."
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
/* Check that calls to open and openat with O_CREAT or O_TMPFILE set have an
[22] Fix | Delete
appropriate third/fourth parameter. */
[23] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[24] Fix | Delete
extern int __open_2 (const char *__path, int __oflag) __nonnull ((1));
[25] Fix | Delete
extern int __REDIRECT (__open_alias, (const char *__path, int __oflag, ...),
[26] Fix | Delete
open) __nonnull ((1));
[27] Fix | Delete
#else
[28] Fix | Delete
extern int __REDIRECT (__open_2, (const char *__path, int __oflag),
[29] Fix | Delete
__open64_2) __nonnull ((1));
[30] Fix | Delete
extern int __REDIRECT (__open_alias, (const char *__path, int __oflag, ...),
[31] Fix | Delete
open64) __nonnull ((1));
[32] Fix | Delete
#endif
[33] Fix | Delete
__errordecl (__open_too_many_args,
[34] Fix | Delete
"open can be called either with 2 or 3 arguments, not more");
[35] Fix | Delete
__errordecl (__open_missing_mode,
[36] Fix | Delete
"open with O_CREAT or O_TMPFILE in second argument needs 3 arguments");
[37] Fix | Delete
[38] Fix | Delete
__fortify_function int
[39] Fix | Delete
open (const char *__path, int __oflag, ...)
[40] Fix | Delete
{
[41] Fix | Delete
if (__va_arg_pack_len () > 1)
[42] Fix | Delete
__open_too_many_args ();
[43] Fix | Delete
[44] Fix | Delete
if (__builtin_constant_p (__oflag))
[45] Fix | Delete
{
[46] Fix | Delete
if (__OPEN_NEEDS_MODE (__oflag) && __va_arg_pack_len () < 1)
[47] Fix | Delete
{
[48] Fix | Delete
__open_missing_mode ();
[49] Fix | Delete
return __open_2 (__path, __oflag);
[50] Fix | Delete
}
[51] Fix | Delete
return __open_alias (__path, __oflag, __va_arg_pack ());
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
if (__va_arg_pack_len () < 1)
[55] Fix | Delete
return __open_2 (__path, __oflag);
[56] Fix | Delete
[57] Fix | Delete
return __open_alias (__path, __oflag, __va_arg_pack ());
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
[61] Fix | Delete
#ifdef __USE_LARGEFILE64
[62] Fix | Delete
extern int __open64_2 (const char *__path, int __oflag) __nonnull ((1));
[63] Fix | Delete
extern int __REDIRECT (__open64_alias, (const char *__path, int __oflag,
[64] Fix | Delete
...), open64) __nonnull ((1));
[65] Fix | Delete
__errordecl (__open64_too_many_args,
[66] Fix | Delete
"open64 can be called either with 2 or 3 arguments, not more");
[67] Fix | Delete
__errordecl (__open64_missing_mode,
[68] Fix | Delete
"open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments");
[69] Fix | Delete
[70] Fix | Delete
__fortify_function int
[71] Fix | Delete
open64 (const char *__path, int __oflag, ...)
[72] Fix | Delete
{
[73] Fix | Delete
if (__va_arg_pack_len () > 1)
[74] Fix | Delete
__open64_too_many_args ();
[75] Fix | Delete
[76] Fix | Delete
if (__builtin_constant_p (__oflag))
[77] Fix | Delete
{
[78] Fix | Delete
if (__OPEN_NEEDS_MODE (__oflag) && __va_arg_pack_len () < 1)
[79] Fix | Delete
{
[80] Fix | Delete
__open64_missing_mode ();
[81] Fix | Delete
return __open64_2 (__path, __oflag);
[82] Fix | Delete
}
[83] Fix | Delete
return __open64_alias (__path, __oflag, __va_arg_pack ());
[84] Fix | Delete
}
[85] Fix | Delete
[86] Fix | Delete
if (__va_arg_pack_len () < 1)
[87] Fix | Delete
return __open64_2 (__path, __oflag);
[88] Fix | Delete
[89] Fix | Delete
return __open64_alias (__path, __oflag, __va_arg_pack ());
[90] Fix | Delete
}
[91] Fix | Delete
#endif
[92] Fix | Delete
[93] Fix | Delete
[94] Fix | Delete
#ifdef __USE_ATFILE
[95] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[96] Fix | Delete
extern int __openat_2 (int __fd, const char *__path, int __oflag)
[97] Fix | Delete
__nonnull ((2));
[98] Fix | Delete
extern int __REDIRECT (__openat_alias, (int __fd, const char *__path,
[99] Fix | Delete
int __oflag, ...), openat)
[100] Fix | Delete
__nonnull ((2));
[101] Fix | Delete
# else
[102] Fix | Delete
extern int __REDIRECT (__openat_2, (int __fd, const char *__path,
[103] Fix | Delete
int __oflag), __openat64_2)
[104] Fix | Delete
__nonnull ((2));
[105] Fix | Delete
extern int __REDIRECT (__openat_alias, (int __fd, const char *__path,
[106] Fix | Delete
int __oflag, ...), openat64)
[107] Fix | Delete
__nonnull ((2));
[108] Fix | Delete
# endif
[109] Fix | Delete
__errordecl (__openat_too_many_args,
[110] Fix | Delete
"openat can be called either with 3 or 4 arguments, not more");
[111] Fix | Delete
__errordecl (__openat_missing_mode,
[112] Fix | Delete
"openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments");
[113] Fix | Delete
[114] Fix | Delete
__fortify_function int
[115] Fix | Delete
openat (int __fd, const char *__path, int __oflag, ...)
[116] Fix | Delete
{
[117] Fix | Delete
if (__va_arg_pack_len () > 1)
[118] Fix | Delete
__openat_too_many_args ();
[119] Fix | Delete
[120] Fix | Delete
if (__builtin_constant_p (__oflag))
[121] Fix | Delete
{
[122] Fix | Delete
if (__OPEN_NEEDS_MODE (__oflag) && __va_arg_pack_len () < 1)
[123] Fix | Delete
{
[124] Fix | Delete
__openat_missing_mode ();
[125] Fix | Delete
return __openat_2 (__fd, __path, __oflag);
[126] Fix | Delete
}
[127] Fix | Delete
return __openat_alias (__fd, __path, __oflag, __va_arg_pack ());
[128] Fix | Delete
}
[129] Fix | Delete
[130] Fix | Delete
if (__va_arg_pack_len () < 1)
[131] Fix | Delete
return __openat_2 (__fd, __path, __oflag);
[132] Fix | Delete
[133] Fix | Delete
return __openat_alias (__fd, __path, __oflag, __va_arg_pack ());
[134] Fix | Delete
}
[135] Fix | Delete
[136] Fix | Delete
[137] Fix | Delete
# ifdef __USE_LARGEFILE64
[138] Fix | Delete
extern int __openat64_2 (int __fd, const char *__path, int __oflag)
[139] Fix | Delete
__nonnull ((2));
[140] Fix | Delete
extern int __REDIRECT (__openat64_alias, (int __fd, const char *__path,
[141] Fix | Delete
int __oflag, ...), openat64)
[142] Fix | Delete
__nonnull ((2));
[143] Fix | Delete
__errordecl (__openat64_too_many_args,
[144] Fix | Delete
"openat64 can be called either with 3 or 4 arguments, not more");
[145] Fix | Delete
__errordecl (__openat64_missing_mode,
[146] Fix | Delete
"openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments");
[147] Fix | Delete
[148] Fix | Delete
__fortify_function int
[149] Fix | Delete
openat64 (int __fd, const char *__path, int __oflag, ...)
[150] Fix | Delete
{
[151] Fix | Delete
if (__va_arg_pack_len () > 1)
[152] Fix | Delete
__openat64_too_many_args ();
[153] Fix | Delete
[154] Fix | Delete
if (__builtin_constant_p (__oflag))
[155] Fix | Delete
{
[156] Fix | Delete
if (__OPEN_NEEDS_MODE (__oflag) && __va_arg_pack_len () < 1)
[157] Fix | Delete
{
[158] Fix | Delete
__openat64_missing_mode ();
[159] Fix | Delete
return __openat64_2 (__fd, __path, __oflag);
[160] Fix | Delete
}
[161] Fix | Delete
return __openat64_alias (__fd, __path, __oflag, __va_arg_pack ());
[162] Fix | Delete
}
[163] Fix | Delete
[164] Fix | Delete
if (__va_arg_pack_len () < 1)
[165] Fix | Delete
return __openat64_2 (__fd, __path, __oflag);
[166] Fix | Delete
[167] Fix | Delete
return __openat64_alias (__fd, __path, __oflag, __va_arg_pack ());
[168] Fix | Delete
}
[169] Fix | Delete
# endif
[170] Fix | Delete
#endif
[171] Fix | Delete
[172] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function