Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sys
File: cdefs.h
/* Copyright (C) 1992-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_CDEFS_H
[17] Fix | Delete
#define _SYS_CDEFS_H 1
[18] Fix | Delete
[19] Fix | Delete
/* We are almost always included from features.h. */
[20] Fix | Delete
#ifndef _FEATURES_H
[21] Fix | Delete
# include <features.h>
[22] Fix | Delete
#endif
[23] Fix | Delete
[24] Fix | Delete
/* The GNU libc does not support any K&R compilers or the traditional mode
[25] Fix | Delete
of ISO C compilers anymore. Check for some of the combinations not
[26] Fix | Delete
anymore supported. */
[27] Fix | Delete
#if defined __GNUC__ && !defined __STDC__
[28] Fix | Delete
# error "You need a ISO C conforming compiler to use the glibc headers"
[29] Fix | Delete
#endif
[30] Fix | Delete
[31] Fix | Delete
/* Some user header file might have defined this before. */
[32] Fix | Delete
#undef __P
[33] Fix | Delete
#undef __PMT
[34] Fix | Delete
[35] Fix | Delete
#ifdef __GNUC__
[36] Fix | Delete
[37] Fix | Delete
/* All functions, except those with callbacks or those that
[38] Fix | Delete
synchronize memory, are leaf functions. */
[39] Fix | Delete
# if __GNUC_PREREQ (4, 6) && !defined _LIBC
[40] Fix | Delete
# define __LEAF , __leaf__
[41] Fix | Delete
# define __LEAF_ATTR __attribute__ ((__leaf__))
[42] Fix | Delete
# else
[43] Fix | Delete
# define __LEAF
[44] Fix | Delete
# define __LEAF_ATTR
[45] Fix | Delete
# endif
[46] Fix | Delete
[47] Fix | Delete
/* GCC can always grok prototypes. For C++ programs we add throw()
[48] Fix | Delete
to help it optimize the function calls. But this works only with
[49] Fix | Delete
gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
[50] Fix | Delete
as non-throwing using a function attribute since programs can use
[51] Fix | Delete
the -fexceptions options for C code as well. */
[52] Fix | Delete
# if !defined __cplusplus && __GNUC_PREREQ (3, 3)
[53] Fix | Delete
# define __THROW __attribute__ ((__nothrow__ __LEAF))
[54] Fix | Delete
# define __THROWNL __attribute__ ((__nothrow__))
[55] Fix | Delete
# define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
[56] Fix | Delete
# define __NTHNL(fct) __attribute__ ((__nothrow__)) fct
[57] Fix | Delete
# else
[58] Fix | Delete
# if defined __cplusplus && __GNUC_PREREQ (2,8)
[59] Fix | Delete
# define __THROW throw ()
[60] Fix | Delete
# define __THROWNL throw ()
[61] Fix | Delete
# define __NTH(fct) __LEAF_ATTR fct throw ()
[62] Fix | Delete
# define __NTHNL(fct) fct throw ()
[63] Fix | Delete
# else
[64] Fix | Delete
# define __THROW
[65] Fix | Delete
# define __THROWNL
[66] Fix | Delete
# define __NTH(fct) fct
[67] Fix | Delete
# define __NTHNL(fct) fct
[68] Fix | Delete
# endif
[69] Fix | Delete
# endif
[70] Fix | Delete
[71] Fix | Delete
#else /* Not GCC. */
[72] Fix | Delete
[73] Fix | Delete
# if (defined __cplusplus \
[74] Fix | Delete
|| (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))
[75] Fix | Delete
# define __inline inline
[76] Fix | Delete
# else
[77] Fix | Delete
# define __inline /* No inline functions. */
[78] Fix | Delete
# endif
[79] Fix | Delete
[80] Fix | Delete
# define __THROW
[81] Fix | Delete
# define __THROWNL
[82] Fix | Delete
# define __NTH(fct) fct
[83] Fix | Delete
[84] Fix | Delete
#endif /* GCC. */
[85] Fix | Delete
[86] Fix | Delete
/* Compilers that are not clang may object to
[87] Fix | Delete
#if defined __clang__ && __has_extension(...)
[88] Fix | Delete
even though they do not need to evaluate the right-hand side of the &&. */
[89] Fix | Delete
#if defined __clang__ && defined __has_extension
[90] Fix | Delete
# define __glibc_clang_has_extension(ext) __has_extension (ext)
[91] Fix | Delete
#else
[92] Fix | Delete
# define __glibc_clang_has_extension(ext) 0
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
/* These two macros are not used in glibc anymore. They are kept here
[96] Fix | Delete
only because some other projects expect the macros to be defined. */
[97] Fix | Delete
#define __P(args) args
[98] Fix | Delete
#define __PMT(args) args
[99] Fix | Delete
[100] Fix | Delete
/* For these things, GCC behaves the ANSI way normally,
[101] Fix | Delete
and the non-ANSI way under -traditional. */
[102] Fix | Delete
[103] Fix | Delete
#define __CONCAT(x,y) x ## y
[104] Fix | Delete
#define __STRING(x) #x
[105] Fix | Delete
[106] Fix | Delete
/* This is not a typedef so `const __ptr_t' does the right thing. */
[107] Fix | Delete
#define __ptr_t void *
[108] Fix | Delete
[109] Fix | Delete
[110] Fix | Delete
/* C++ needs to know that types and declarations are C, not C++. */
[111] Fix | Delete
#ifdef __cplusplus
[112] Fix | Delete
# define __BEGIN_DECLS extern "C" {
[113] Fix | Delete
# define __END_DECLS }
[114] Fix | Delete
#else
[115] Fix | Delete
# define __BEGIN_DECLS
[116] Fix | Delete
# define __END_DECLS
[117] Fix | Delete
#endif
[118] Fix | Delete
[119] Fix | Delete
[120] Fix | Delete
/* Fortify support. */
[121] Fix | Delete
#define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
[122] Fix | Delete
#define __bos0(ptr) __builtin_object_size (ptr, 0)
[123] Fix | Delete
[124] Fix | Delete
/* Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. */
[125] Fix | Delete
#if __USE_FORTIFY_LEVEL == 3 && (__glibc_clang_prereq (9, 0) \
[126] Fix | Delete
|| __GNUC_PREREQ (12, 0))
[127] Fix | Delete
# define __glibc_objsize0(__o) __builtin_dynamic_object_size (__o, 0)
[128] Fix | Delete
# define __glibc_objsize(__o) __builtin_dynamic_object_size (__o, 1)
[129] Fix | Delete
#else
[130] Fix | Delete
# define __glibc_objsize0(__o) __bos0 (__o)
[131] Fix | Delete
# define __glibc_objsize(__o) __bos (__o)
[132] Fix | Delete
#endif
[133] Fix | Delete
[134] Fix | Delete
#if __USE_FORTIFY_LEVEL > 0
[135] Fix | Delete
/* Compile time conditions to choose between the regular, _chk and _chk_warn
[136] Fix | Delete
variants. These conditions should get evaluated to constant and optimized
[137] Fix | Delete
away. */
[138] Fix | Delete
[139] Fix | Delete
#define __glibc_safe_len_cond(__l, __s, __osz) ((__l) <= (__osz) / (__s))
[140] Fix | Delete
#define __glibc_unsigned_or_positive(__l) \
[141] Fix | Delete
((__typeof (__l)) 0 < (__typeof (__l)) -1 \
[142] Fix | Delete
|| (__builtin_constant_p (__l) && (__l) > 0))
[143] Fix | Delete
[144] Fix | Delete
/* Length is known to be safe at compile time if the __L * __S <= __OBJSZ
[145] Fix | Delete
condition can be folded to a constant and if it is true, or unknown (-1) */
[146] Fix | Delete
#define __glibc_safe_or_unknown_len(__l, __s, __osz) \
[147] Fix | Delete
((__builtin_constant_p (__osz) && (__osz) == (__SIZE_TYPE__) -1) \
[148] Fix | Delete
|| (__glibc_unsigned_or_positive (__l) \
[149] Fix | Delete
&& __builtin_constant_p (__glibc_safe_len_cond ((__SIZE_TYPE__) (__l), \
[150] Fix | Delete
(__s), (__osz))) \
[151] Fix | Delete
&& __glibc_safe_len_cond ((__SIZE_TYPE__) (__l), (__s), (__osz))))
[152] Fix | Delete
[153] Fix | Delete
/* Conversely, we know at compile time that the length is unsafe if the
[154] Fix | Delete
__L * __S <= __OBJSZ condition can be folded to a constant and if it is
[155] Fix | Delete
false. */
[156] Fix | Delete
#define __glibc_unsafe_len(__l, __s, __osz) \
[157] Fix | Delete
(__glibc_unsigned_or_positive (__l) \
[158] Fix | Delete
&& __builtin_constant_p (__glibc_safe_len_cond ((__SIZE_TYPE__) (__l), \
[159] Fix | Delete
__s, __osz)) \
[160] Fix | Delete
&& !__glibc_safe_len_cond ((__SIZE_TYPE__) (__l), __s, __osz))
[161] Fix | Delete
[162] Fix | Delete
/* Fortify function f. __f_alias, __f_chk and __f_chk_warn must be
[163] Fix | Delete
declared. */
[164] Fix | Delete
[165] Fix | Delete
#define __glibc_fortify(f, __l, __s, __osz, ...) \
[166] Fix | Delete
(__glibc_safe_or_unknown_len (__l, __s, __osz) \
[167] Fix | Delete
? __ ## f ## _alias (__VA_ARGS__) \
[168] Fix | Delete
: (__glibc_unsafe_len (__l, __s, __osz) \
[169] Fix | Delete
? __ ## f ## _chk_warn (__VA_ARGS__, __osz) \
[170] Fix | Delete
: __ ## f ## _chk (__VA_ARGS__, __osz)))
[171] Fix | Delete
[172] Fix | Delete
/* Fortify function f, where object size argument passed to f is the number of
[173] Fix | Delete
elements and not total size. */
[174] Fix | Delete
[175] Fix | Delete
#define __glibc_fortify_n(f, __l, __s, __osz, ...) \
[176] Fix | Delete
(__glibc_safe_or_unknown_len (__l, __s, __osz) \
[177] Fix | Delete
? __ ## f ## _alias (__VA_ARGS__) \
[178] Fix | Delete
: (__glibc_unsafe_len (__l, __s, __osz) \
[179] Fix | Delete
? __ ## f ## _chk_warn (__VA_ARGS__, (__osz) / (__s)) \
[180] Fix | Delete
: __ ## f ## _chk (__VA_ARGS__, (__osz) / (__s))))
[181] Fix | Delete
#endif
[182] Fix | Delete
[183] Fix | Delete
#if __GNUC_PREREQ (4,3)
[184] Fix | Delete
# define __warndecl(name, msg) \
[185] Fix | Delete
extern void name (void) __attribute__((__warning__ (msg)))
[186] Fix | Delete
# define __warnattr(msg) __attribute__((__warning__ (msg)))
[187] Fix | Delete
# define __errordecl(name, msg) \
[188] Fix | Delete
extern void name (void) __attribute__((__error__ (msg)))
[189] Fix | Delete
#else
[190] Fix | Delete
# define __warndecl(name, msg) extern void name (void)
[191] Fix | Delete
# define __warnattr(msg)
[192] Fix | Delete
# define __errordecl(name, msg) extern void name (void)
[193] Fix | Delete
#endif
[194] Fix | Delete
[195] Fix | Delete
/* Support for flexible arrays.
[196] Fix | Delete
Headers that should use flexible arrays only if they're "real"
[197] Fix | Delete
(e.g. only if they won't affect sizeof()) should test
[198] Fix | Delete
#if __glibc_c99_flexarr_available. */
[199] Fix | Delete
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
[200] Fix | Delete
# define __flexarr []
[201] Fix | Delete
# define __glibc_c99_flexarr_available 1
[202] Fix | Delete
#elif __GNUC_PREREQ (2,97)
[203] Fix | Delete
/* GCC 2.97 supports C99 flexible array members as an extension,
[204] Fix | Delete
even when in C89 mode or compiling C++ (any version). */
[205] Fix | Delete
# define __flexarr []
[206] Fix | Delete
# define __glibc_c99_flexarr_available 1
[207] Fix | Delete
#elif defined __GNUC__
[208] Fix | Delete
/* Pre-2.97 GCC did not support C99 flexible arrays but did have
[209] Fix | Delete
an equivalent extension with slightly different notation. */
[210] Fix | Delete
# define __flexarr [0]
[211] Fix | Delete
# define __glibc_c99_flexarr_available 1
[212] Fix | Delete
#else
[213] Fix | Delete
/* Some other non-C99 compiler. Approximate with [1]. */
[214] Fix | Delete
# define __flexarr [1]
[215] Fix | Delete
# define __glibc_c99_flexarr_available 0
[216] Fix | Delete
#endif
[217] Fix | Delete
[218] Fix | Delete
[219] Fix | Delete
/* __asm__ ("xyz") is used throughout the headers to rename functions
[220] Fix | Delete
at the assembly language level. This is wrapped by the __REDIRECT
[221] Fix | Delete
macro, in order to support compilers that can do this some other
[222] Fix | Delete
way. When compilers don't support asm-names at all, we have to do
[223] Fix | Delete
preprocessor tricks instead (which don't have exactly the right
[224] Fix | Delete
semantics, but it's the best we can do).
[225] Fix | Delete
[226] Fix | Delete
Example:
[227] Fix | Delete
int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); */
[228] Fix | Delete
[229] Fix | Delete
#if defined __GNUC__ && __GNUC__ >= 2
[230] Fix | Delete
[231] Fix | Delete
# define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))
[232] Fix | Delete
# ifdef __cplusplus
[233] Fix | Delete
# define __REDIRECT_NTH(name, proto, alias) \
[234] Fix | Delete
name proto __THROW __asm__ (__ASMNAME (#alias))
[235] Fix | Delete
# define __REDIRECT_NTHNL(name, proto, alias) \
[236] Fix | Delete
name proto __THROWNL __asm__ (__ASMNAME (#alias))
[237] Fix | Delete
# else
[238] Fix | Delete
# define __REDIRECT_NTH(name, proto, alias) \
[239] Fix | Delete
name proto __asm__ (__ASMNAME (#alias)) __THROW
[240] Fix | Delete
# define __REDIRECT_NTHNL(name, proto, alias) \
[241] Fix | Delete
name proto __asm__ (__ASMNAME (#alias)) __THROWNL
[242] Fix | Delete
# endif
[243] Fix | Delete
# define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
[244] Fix | Delete
# define __ASMNAME2(prefix, cname) __STRING (prefix) cname
[245] Fix | Delete
[246] Fix | Delete
/*
[247] Fix | Delete
#elif __SOME_OTHER_COMPILER__
[248] Fix | Delete
[249] Fix | Delete
# define __REDIRECT(name, proto, alias) name proto; \
[250] Fix | Delete
_Pragma("let " #name " = " #alias)
[251] Fix | Delete
*/
[252] Fix | Delete
#endif
[253] Fix | Delete
[254] Fix | Delete
/* GCC has various useful declarations that can be made with the
[255] Fix | Delete
`__attribute__' syntax. All of the ways we use this do fine if
[256] Fix | Delete
they are omitted for compilers that don't understand it. */
[257] Fix | Delete
#if !defined __GNUC__ || __GNUC__ < 2
[258] Fix | Delete
# define __attribute__(xyz) /* Ignore */
[259] Fix | Delete
#endif
[260] Fix | Delete
[261] Fix | Delete
/* At some point during the gcc 2.96 development the `malloc' attribute
[262] Fix | Delete
for functions was introduced. We don't want to use it unconditionally
[263] Fix | Delete
(although this would be possible) since it generates warnings. */
[264] Fix | Delete
#if __GNUC_PREREQ (2,96)
[265] Fix | Delete
# define __attribute_malloc__ __attribute__ ((__malloc__))
[266] Fix | Delete
#else
[267] Fix | Delete
# define __attribute_malloc__ /* Ignore */
[268] Fix | Delete
#endif
[269] Fix | Delete
[270] Fix | Delete
/* Tell the compiler which arguments to an allocation function
[271] Fix | Delete
indicate the size of the allocation. */
[272] Fix | Delete
#if __GNUC_PREREQ (4, 3)
[273] Fix | Delete
# define __attribute_alloc_size__(params) \
[274] Fix | Delete
__attribute__ ((__alloc_size__ params))
[275] Fix | Delete
#else
[276] Fix | Delete
# define __attribute_alloc_size__(params) /* Ignore. */
[277] Fix | Delete
#endif
[278] Fix | Delete
[279] Fix | Delete
/* At some point during the gcc 2.96 development the `pure' attribute
[280] Fix | Delete
for functions was introduced. We don't want to use it unconditionally
[281] Fix | Delete
(although this would be possible) since it generates warnings. */
[282] Fix | Delete
#if __GNUC_PREREQ (2,96)
[283] Fix | Delete
# define __attribute_pure__ __attribute__ ((__pure__))
[284] Fix | Delete
#else
[285] Fix | Delete
# define __attribute_pure__ /* Ignore */
[286] Fix | Delete
#endif
[287] Fix | Delete
[288] Fix | Delete
/* This declaration tells the compiler that the value is constant. */
[289] Fix | Delete
#if __GNUC_PREREQ (2,5)
[290] Fix | Delete
# define __attribute_const__ __attribute__ ((__const__))
[291] Fix | Delete
#else
[292] Fix | Delete
# define __attribute_const__ /* Ignore */
[293] Fix | Delete
#endif
[294] Fix | Delete
[295] Fix | Delete
/* At some point during the gcc 3.1 development the `used' attribute
[296] Fix | Delete
for functions was introduced. We don't want to use it unconditionally
[297] Fix | Delete
(although this would be possible) since it generates warnings. */
[298] Fix | Delete
#if __GNUC_PREREQ (3,1)
[299] Fix | Delete
# define __attribute_used__ __attribute__ ((__used__))
[300] Fix | Delete
# define __attribute_noinline__ __attribute__ ((__noinline__))
[301] Fix | Delete
#else
[302] Fix | Delete
# define __attribute_used__ __attribute__ ((__unused__))
[303] Fix | Delete
# define __attribute_noinline__ /* Ignore */
[304] Fix | Delete
#endif
[305] Fix | Delete
[306] Fix | Delete
/* Since version 3.2, gcc allows marking deprecated functions. */
[307] Fix | Delete
#if __GNUC_PREREQ (3,2)
[308] Fix | Delete
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
[309] Fix | Delete
#else
[310] Fix | Delete
# define __attribute_deprecated__ /* Ignore */
[311] Fix | Delete
#endif
[312] Fix | Delete
[313] Fix | Delete
/* Since version 4.5, gcc also allows one to specify the message printed
[314] Fix | Delete
when a deprecated function is used. clang claims to be gcc 4.2, but
[315] Fix | Delete
may also support this feature. */
[316] Fix | Delete
#if __GNUC_PREREQ (4,5) || \
[317] Fix | Delete
__glibc_clang_has_extension (__attribute_deprecated_with_message__)
[318] Fix | Delete
# define __attribute_deprecated_msg__(msg) \
[319] Fix | Delete
__attribute__ ((__deprecated__ (msg)))
[320] Fix | Delete
#else
[321] Fix | Delete
# define __attribute_deprecated_msg__(msg) __attribute_deprecated__
[322] Fix | Delete
#endif
[323] Fix | Delete
[324] Fix | Delete
/* At some point during the gcc 2.8 development the `format_arg' attribute
[325] Fix | Delete
for functions was introduced. We don't want to use it unconditionally
[326] Fix | Delete
(although this would be possible) since it generates warnings.
[327] Fix | Delete
If several `format_arg' attributes are given for the same function, in
[328] Fix | Delete
gcc-3.0 and older, all but the last one are ignored. In newer gccs,
[329] Fix | Delete
all designated arguments are considered. */
[330] Fix | Delete
#if __GNUC_PREREQ (2,8)
[331] Fix | Delete
# define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
[332] Fix | Delete
#else
[333] Fix | Delete
# define __attribute_format_arg__(x) /* Ignore */
[334] Fix | Delete
#endif
[335] Fix | Delete
[336] Fix | Delete
/* At some point during the gcc 2.97 development the `strfmon' format
[337] Fix | Delete
attribute for functions was introduced. We don't want to use it
[338] Fix | Delete
unconditionally (although this would be possible) since it
[339] Fix | Delete
generates warnings. */
[340] Fix | Delete
#if __GNUC_PREREQ (2,97)
[341] Fix | Delete
# define __attribute_format_strfmon__(a,b) \
[342] Fix | Delete
__attribute__ ((__format__ (__strfmon__, a, b)))
[343] Fix | Delete
#else
[344] Fix | Delete
# define __attribute_format_strfmon__(a,b) /* Ignore */
[345] Fix | Delete
#endif
[346] Fix | Delete
[347] Fix | Delete
/* The nonull function attribute allows to mark pointer parameters which
[348] Fix | Delete
must not be NULL. */
[349] Fix | Delete
#if __GNUC_PREREQ (3,3)
[350] Fix | Delete
# define __nonnull(params) __attribute__ ((__nonnull__ params))
[351] Fix | Delete
#else
[352] Fix | Delete
# define __nonnull(params)
[353] Fix | Delete
#endif
[354] Fix | Delete
[355] Fix | Delete
/* If fortification mode, we warn about unused results of certain
[356] Fix | Delete
function calls which can lead to problems. */
[357] Fix | Delete
#if __GNUC_PREREQ (3,4)
[358] Fix | Delete
# define __attribute_warn_unused_result__ \
[359] Fix | Delete
__attribute__ ((__warn_unused_result__))
[360] Fix | Delete
# if __USE_FORTIFY_LEVEL > 0
[361] Fix | Delete
# define __wur __attribute_warn_unused_result__
[362] Fix | Delete
# endif
[363] Fix | Delete
#else
[364] Fix | Delete
# define __attribute_warn_unused_result__ /* empty */
[365] Fix | Delete
#endif
[366] Fix | Delete
#ifndef __wur
[367] Fix | Delete
# define __wur /* Ignore */
[368] Fix | Delete
#endif
[369] Fix | Delete
[370] Fix | Delete
/* Forces a function to be always inlined. */
[371] Fix | Delete
#if __GNUC_PREREQ (3,2)
[372] Fix | Delete
/* The Linux kernel defines __always_inline in stddef.h (283d7573), and
[373] Fix | Delete
it conflicts with this definition. Therefore undefine it first to
[374] Fix | Delete
allow either header to be included first. */
[375] Fix | Delete
# undef __always_inline
[376] Fix | Delete
# define __always_inline __inline __attribute__ ((__always_inline__))
[377] Fix | Delete
#else
[378] Fix | Delete
# undef __always_inline
[379] Fix | Delete
# define __always_inline __inline
[380] Fix | Delete
#endif
[381] Fix | Delete
[382] Fix | Delete
/* Associate error messages with the source location of the call site rather
[383] Fix | Delete
than with the source location inside the function. */
[384] Fix | Delete
#if __GNUC_PREREQ (4,3)
[385] Fix | Delete
# define __attribute_artificial__ __attribute__ ((__artificial__))
[386] Fix | Delete
#else
[387] Fix | Delete
# define __attribute_artificial__ /* Ignore */
[388] Fix | Delete
#endif
[389] Fix | Delete
[390] Fix | Delete
/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
[391] Fix | Delete
inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
[392] Fix | Delete
or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
[393] Fix | Delete
older than 4.3 may define these macros and still not guarantee GNU inlining
[394] Fix | Delete
semantics.
[395] Fix | Delete
[396] Fix | Delete
clang++ identifies itself as gcc-4.2, but has support for GNU inlining
[397] Fix | Delete
semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
[398] Fix | Delete
__GNUC_GNU_INLINE__ macro definitions. */
[399] Fix | Delete
#if (!defined __cplusplus || __GNUC_PREREQ (4,3) \
[400] Fix | Delete
|| (defined __clang__ && (defined __GNUC_STDC_INLINE__ \
[401] Fix | Delete
|| defined __GNUC_GNU_INLINE__)))
[402] Fix | Delete
# if defined __GNUC_STDC_INLINE__ || defined __cplusplus
[403] Fix | Delete
# define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
[404] Fix | Delete
# define __extern_always_inline \
[405] Fix | Delete
extern __always_inline __attribute__ ((__gnu_inline__))
[406] Fix | Delete
# else
[407] Fix | Delete
# define __extern_inline extern __inline
[408] Fix | Delete
# define __extern_always_inline extern __always_inline
[409] Fix | Delete
# endif
[410] Fix | Delete
#endif
[411] Fix | Delete
[412] Fix | Delete
#ifdef __extern_always_inline
[413] Fix | Delete
# define __fortify_function __extern_always_inline __attribute_artificial__
[414] Fix | Delete
#endif
[415] Fix | Delete
[416] Fix | Delete
/* GCC 4.3 and above allow passing all anonymous arguments of an
[417] Fix | Delete
__extern_always_inline function to some other vararg function. */
[418] Fix | Delete
#if __GNUC_PREREQ (4,3)
[419] Fix | Delete
# define __va_arg_pack() __builtin_va_arg_pack ()
[420] Fix | Delete
# define __va_arg_pack_len() __builtin_va_arg_pack_len ()
[421] Fix | Delete
#endif
[422] Fix | Delete
[423] Fix | Delete
/* It is possible to compile containing GCC extensions even if GCC is
[424] Fix | Delete
run in pedantic mode if the uses are carefully marked using the
[425] Fix | Delete
`__extension__' keyword. But this is not generally available before
[426] Fix | Delete
version 2.8. */
[427] Fix | Delete
#if !__GNUC_PREREQ (2,8)
[428] Fix | Delete
# define __extension__ /* Ignore */
[429] Fix | Delete
#endif
[430] Fix | Delete
[431] Fix | Delete
/* __restrict is known in EGCS 1.2 and above. */
[432] Fix | Delete
#if !__GNUC_PREREQ (2,92)
[433] Fix | Delete
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
[434] Fix | Delete
# define __restrict restrict
[435] Fix | Delete
# else
[436] Fix | Delete
# define __restrict /* Ignore */
[437] Fix | Delete
# endif
[438] Fix | Delete
#endif
[439] Fix | Delete
[440] Fix | Delete
/* ISO C99 also allows to declare arrays as non-overlapping. The syntax is
[441] Fix | Delete
array_name[restrict]
[442] Fix | Delete
GCC 3.1 supports this. */
[443] Fix | Delete
#if __GNUC_PREREQ (3,1) && !defined __GNUG__
[444] Fix | Delete
# define __restrict_arr __restrict
[445] Fix | Delete
#else
[446] Fix | Delete
# ifdef __GNUC__
[447] Fix | Delete
# define __restrict_arr /* Not supported in old GCC. */
[448] Fix | Delete
# else
[449] Fix | Delete
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
[450] Fix | Delete
# define __restrict_arr restrict
[451] Fix | Delete
# else
[452] Fix | Delete
/* Some other non-C99 compiler. */
[453] Fix | Delete
# define __restrict_arr /* Not supported. */
[454] Fix | Delete
# endif
[455] Fix | Delete
# endif
[456] Fix | Delete
#endif
[457] Fix | Delete
[458] Fix | Delete
#if __GNUC__ >= 3
[459] Fix | Delete
# define __glibc_unlikely(cond) __builtin_expect ((cond), 0)
[460] Fix | Delete
# define __glibc_likely(cond) __builtin_expect ((cond), 1)
[461] Fix | Delete
#else
[462] Fix | Delete
# define __glibc_unlikely(cond) (cond)
[463] Fix | Delete
# define __glibc_likely(cond) (cond)
[464] Fix | Delete
#endif
[465] Fix | Delete
[466] Fix | Delete
#ifdef __has_attribute
[467] Fix | Delete
# define __glibc_has_attribute(attr) __has_attribute (attr)
[468] Fix | Delete
#else
[469] Fix | Delete
# define __glibc_has_attribute(attr) 0
[470] Fix | Delete
#endif
[471] Fix | Delete
[472] Fix | Delete
#if (!defined _Noreturn \
[473] Fix | Delete
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
[474] Fix | Delete
&& !__GNUC_PREREQ (4,7))
[475] Fix | Delete
# if __GNUC_PREREQ (2,8)
[476] Fix | Delete
# define _Noreturn __attribute__ ((__noreturn__))
[477] Fix | Delete
# else
[478] Fix | Delete
# define _Noreturn
[479] Fix | Delete
# endif
[480] Fix | Delete
#endif
[481] Fix | Delete
[482] Fix | Delete
#if __GNUC_PREREQ (8, 0)
[483] Fix | Delete
/* Describes a char array whose address can safely be passed as the first
[484] Fix | Delete
argument to strncpy and strncat, as the char array is not necessarily
[485] Fix | Delete
a NUL-terminated string. */
[486] Fix | Delete
# define __attribute_nonstring__ __attribute__ ((__nonstring__))
[487] Fix | Delete
#else
[488] Fix | Delete
# define __attribute_nonstring__
[489] Fix | Delete
#endif
[490] Fix | Delete
[491] Fix | Delete
#if (!defined _Static_assert && !defined __cplusplus \
[492] Fix | Delete
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
[493] Fix | Delete
&& (!__GNUC_PREREQ (4, 6) || defined __STRICT_ANSI__))
[494] Fix | Delete
# define _Static_assert(expr, diagnostic) \
[495] Fix | Delete
extern int (*__Static_assert_function (void)) \
[496] Fix | Delete
[!!sizeof (struct { int __error_if_negative: (expr) ? 2 : -1; })]
[497] Fix | Delete
#endif
[498] Fix | Delete
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function