Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: stdio.h
/* Optimizing macros and inline functions for stdio functions.
[0] Fix | Delete
Copyright (C) 1998-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 _BITS_STDIO_H
[18] Fix | Delete
#define _BITS_STDIO_H 1
[19] Fix | Delete
[20] Fix | Delete
#ifndef _STDIO_H
[21] Fix | Delete
# error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
[22] Fix | Delete
#endif
[23] Fix | Delete
[24] Fix | Delete
#ifndef __extern_inline
[25] Fix | Delete
# define __STDIO_INLINE inline
[26] Fix | Delete
#else
[27] Fix | Delete
# define __STDIO_INLINE __extern_inline
[28] Fix | Delete
#endif
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
#ifdef __USE_EXTERN_INLINES
[32] Fix | Delete
/* For -D_FORTIFY_SOURCE{,=2,=3} bits/stdio2.h will define a different
[33] Fix | Delete
inline. */
[34] Fix | Delete
# if !(__USE_FORTIFY_LEVEL > 0 && defined __fortify_function)
[35] Fix | Delete
/* Write formatted output to stdout from argument list ARG. */
[36] Fix | Delete
__STDIO_INLINE int
[37] Fix | Delete
vprintf (const char *__restrict __fmt, __gnuc_va_list __arg)
[38] Fix | Delete
{
[39] Fix | Delete
return vfprintf (stdout, __fmt, __arg);
[40] Fix | Delete
}
[41] Fix | Delete
# endif
[42] Fix | Delete
[43] Fix | Delete
/* Read a character from stdin. */
[44] Fix | Delete
__STDIO_INLINE int
[45] Fix | Delete
getchar (void)
[46] Fix | Delete
{
[47] Fix | Delete
return getc (stdin);
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
[51] Fix | Delete
# ifdef __USE_MISC
[52] Fix | Delete
/* Faster version when locking is not necessary. */
[53] Fix | Delete
__STDIO_INLINE int
[54] Fix | Delete
fgetc_unlocked (FILE *__fp)
[55] Fix | Delete
{
[56] Fix | Delete
return __getc_unlocked_body (__fp);
[57] Fix | Delete
}
[58] Fix | Delete
# endif /* misc */
[59] Fix | Delete
[60] Fix | Delete
[61] Fix | Delete
# ifdef __USE_POSIX
[62] Fix | Delete
/* This is defined in POSIX.1:1996. */
[63] Fix | Delete
__STDIO_INLINE int
[64] Fix | Delete
getc_unlocked (FILE *__fp)
[65] Fix | Delete
{
[66] Fix | Delete
return __getc_unlocked_body (__fp);
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/* This is defined in POSIX.1:1996. */
[70] Fix | Delete
__STDIO_INLINE int
[71] Fix | Delete
getchar_unlocked (void)
[72] Fix | Delete
{
[73] Fix | Delete
return __getc_unlocked_body (stdin);
[74] Fix | Delete
}
[75] Fix | Delete
# endif /* POSIX */
[76] Fix | Delete
[77] Fix | Delete
[78] Fix | Delete
/* Write a character to stdout. */
[79] Fix | Delete
__STDIO_INLINE int
[80] Fix | Delete
putchar (int __c)
[81] Fix | Delete
{
[82] Fix | Delete
return putc (__c, stdout);
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
[86] Fix | Delete
# ifdef __USE_MISC
[87] Fix | Delete
/* Faster version when locking is not necessary. */
[88] Fix | Delete
__STDIO_INLINE int
[89] Fix | Delete
fputc_unlocked (int __c, FILE *__stream)
[90] Fix | Delete
{
[91] Fix | Delete
return __putc_unlocked_body (__c, __stream);
[92] Fix | Delete
}
[93] Fix | Delete
# endif /* misc */
[94] Fix | Delete
[95] Fix | Delete
[96] Fix | Delete
# ifdef __USE_POSIX
[97] Fix | Delete
/* This is defined in POSIX.1:1996. */
[98] Fix | Delete
__STDIO_INLINE int
[99] Fix | Delete
putc_unlocked (int __c, FILE *__stream)
[100] Fix | Delete
{
[101] Fix | Delete
return __putc_unlocked_body (__c, __stream);
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
/* This is defined in POSIX.1:1996. */
[105] Fix | Delete
__STDIO_INLINE int
[106] Fix | Delete
putchar_unlocked (int __c)
[107] Fix | Delete
{
[108] Fix | Delete
return __putc_unlocked_body (__c, stdout);
[109] Fix | Delete
}
[110] Fix | Delete
# endif /* POSIX */
[111] Fix | Delete
[112] Fix | Delete
[113] Fix | Delete
# ifdef __USE_GNU
[114] Fix | Delete
/* Like `getdelim', but reads up to a newline. */
[115] Fix | Delete
__STDIO_INLINE __ssize_t
[116] Fix | Delete
getline (char **__lineptr, size_t *__n, FILE *__stream)
[117] Fix | Delete
{
[118] Fix | Delete
return __getdelim (__lineptr, __n, '\n', __stream);
[119] Fix | Delete
}
[120] Fix | Delete
# endif /* GNU */
[121] Fix | Delete
[122] Fix | Delete
[123] Fix | Delete
# ifdef __USE_MISC
[124] Fix | Delete
/* Faster versions when locking is not required. */
[125] Fix | Delete
__STDIO_INLINE int
[126] Fix | Delete
__NTH (feof_unlocked (FILE *__stream))
[127] Fix | Delete
{
[128] Fix | Delete
return __feof_unlocked_body (__stream);
[129] Fix | Delete
}
[130] Fix | Delete
[131] Fix | Delete
/* Faster versions when locking is not required. */
[132] Fix | Delete
__STDIO_INLINE int
[133] Fix | Delete
__NTH (ferror_unlocked (FILE *__stream))
[134] Fix | Delete
{
[135] Fix | Delete
return __ferror_unlocked_body (__stream);
[136] Fix | Delete
}
[137] Fix | Delete
# endif /* misc */
[138] Fix | Delete
[139] Fix | Delete
#endif /* Use extern inlines. */
[140] Fix | Delete
[141] Fix | Delete
[142] Fix | Delete
#if defined __USE_MISC && defined __GNUC__ && defined __OPTIMIZE__ \
[143] Fix | Delete
&& !defined __cplusplus
[144] Fix | Delete
/* Perform some simple optimizations. */
[145] Fix | Delete
# define fread_unlocked(ptr, size, n, stream) \
[146] Fix | Delete
(__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \
[147] Fix | Delete
&& (size_t) (size) * (size_t) (n) <= 8 \
[148] Fix | Delete
&& (size_t) (size) != 0) \
[149] Fix | Delete
? ({ char *__ptr = (char *) (ptr); \
[150] Fix | Delete
FILE *__stream = (stream); \
[151] Fix | Delete
size_t __cnt; \
[152] Fix | Delete
for (__cnt = (size_t) (size) * (size_t) (n); \
[153] Fix | Delete
__cnt > 0; --__cnt) \
[154] Fix | Delete
{ \
[155] Fix | Delete
int __c = getc_unlocked (__stream); \
[156] Fix | Delete
if (__c == EOF) \
[157] Fix | Delete
break; \
[158] Fix | Delete
*__ptr++ = __c; \
[159] Fix | Delete
} \
[160] Fix | Delete
((size_t) (size) * (size_t) (n) - __cnt) \
[161] Fix | Delete
/ (size_t) (size); }) \
[162] Fix | Delete
: (((__builtin_constant_p (size) && (size_t) (size) == 0) \
[163] Fix | Delete
|| (__builtin_constant_p (n) && (size_t) (n) == 0)) \
[164] Fix | Delete
/* Evaluate all parameters once. */ \
[165] Fix | Delete
? ((void) (ptr), (void) (stream), (void) (size), \
[166] Fix | Delete
(void) (n), (size_t) 0) \
[167] Fix | Delete
: fread_unlocked (ptr, size, n, stream))))
[168] Fix | Delete
[169] Fix | Delete
# define fwrite_unlocked(ptr, size, n, stream) \
[170] Fix | Delete
(__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \
[171] Fix | Delete
&& (size_t) (size) * (size_t) (n) <= 8 \
[172] Fix | Delete
&& (size_t) (size) != 0) \
[173] Fix | Delete
? ({ const char *__ptr = (const char *) (ptr); \
[174] Fix | Delete
FILE *__stream = (stream); \
[175] Fix | Delete
size_t __cnt; \
[176] Fix | Delete
for (__cnt = (size_t) (size) * (size_t) (n); \
[177] Fix | Delete
__cnt > 0; --__cnt) \
[178] Fix | Delete
if (putc_unlocked (*__ptr++, __stream) == EOF) \
[179] Fix | Delete
break; \
[180] Fix | Delete
((size_t) (size) * (size_t) (n) - __cnt) \
[181] Fix | Delete
/ (size_t) (size); }) \
[182] Fix | Delete
: (((__builtin_constant_p (size) && (size_t) (size) == 0) \
[183] Fix | Delete
|| (__builtin_constant_p (n) && (size_t) (n) == 0)) \
[184] Fix | Delete
/* Evaluate all parameters once. */ \
[185] Fix | Delete
? ((void) (ptr), (void) (stream), (void) (size), \
[186] Fix | Delete
(void) (n), (size_t) 0) \
[187] Fix | Delete
: fwrite_unlocked (ptr, size, n, stream))))
[188] Fix | Delete
#endif
[189] Fix | Delete
[190] Fix | Delete
/* Define helper macro. */
[191] Fix | Delete
#undef __STDIO_INLINE
[192] Fix | Delete
[193] Fix | Delete
#endif /* bits/stdio.h. */
[194] Fix | Delete
[195] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function