25 # include <sys/cdefs.h> 37 # define __BEGIN_DECLS extern "C" { 38 # define __END_DECLS } 40 # define __BEGIN_DECLS 56 #if defined __cplusplus && defined GNULIB_NAMESPACE 57 # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { 58 # define _GL_END_NAMESPACE } 60 # define _GL_BEGIN_NAMESPACE 61 # define _GL_END_NAMESPACE 125 #if defined __cplusplus 126 # define _GL_EXTERN_C extern "C" 128 # define _GL_EXTERN_C extern 138 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ 139 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) 140 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ 141 _GL_EXTERN_C rettype rpl_func parameters_and_attributes 150 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ 151 _GL_EXTERN_C rettype func parameters_and_attributes 162 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ 163 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) 164 #if defined __cplusplus && defined GNULIB_NAMESPACE 165 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 166 namespace GNULIB_NAMESPACE \ 168 static const struct _gl_ ## func ## _wrapper \ 170 typedef rettype (*type) parameters; \ 171 inline type rpl () const { return ::rpl_func; } \ 172 inline operator type () const { return rpl (); } \ 175 _GL_EXTERN_C int _gl_cxxalias_dummy 177 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 178 _GL_EXTERN_C int _gl_cxxalias_dummy 186 #if defined __cplusplus && defined GNULIB_NAMESPACE 187 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 188 namespace GNULIB_NAMESPACE \ 190 static const struct _gl_ ## func ## _wrapper \ 192 typedef rettype (*type) parameters; \ 193 inline type rpl () const \ 194 { return reinterpret_cast<type>(::rpl_func); } \ 195 inline operator type () const { return rpl (); } \ 198 _GL_EXTERN_C int _gl_cxxalias_dummy 200 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 201 _GL_EXTERN_C int _gl_cxxalias_dummy 214 #if defined __cplusplus && defined GNULIB_NAMESPACE 215 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 216 namespace GNULIB_NAMESPACE \ 218 static const struct _gl_ ## func ## _wrapper \ 220 typedef rettype (*type) parameters; \ 221 inline type rpl () const { return ::func; } \ 222 inline operator type () const { return rpl (); } \ 225 _GL_EXTERN_C int _gl_cxxalias_dummy 227 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 228 _GL_EXTERN_C int _gl_cxxalias_dummy 236 #if defined __cplusplus && defined GNULIB_NAMESPACE 237 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 238 namespace GNULIB_NAMESPACE \ 240 static const struct _gl_ ## func ## _wrapper \ 242 typedef rettype (*type) parameters; \ 243 inline type rpl () const \ 244 { return reinterpret_cast<type>(::func); } \ 245 inline operator type () const { return rpl (); }\ 248 _GL_EXTERN_C int _gl_cxxalias_dummy 250 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 251 _GL_EXTERN_C int _gl_cxxalias_dummy 260 #if defined __cplusplus && defined GNULIB_NAMESPACE 266 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 267 namespace GNULIB_NAMESPACE \ 269 static const struct _gl_ ## func ## _wrapper \ 271 typedef rettype (*type) parameters; \ 273 inline type rpl () const \ 274 { return reinterpret_cast<type>((rettype2 (*) parameters2)(::func)); }\ 276 inline operator type () const { return rpl (); } \ 279 _GL_EXTERN_C int _gl_cxxalias_dummy 281 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 282 _GL_EXTERN_C int _gl_cxxalias_dummy 289 #if defined __cplusplus && defined GNULIB_NAMESPACE 290 # define _GL_CXXALIASWARN(func) \ 291 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) 292 # define _GL_CXXALIASWARN_1(func,namespace) \ 293 _GL_CXXALIASWARN_2 (func, namespace) 297 # define _GL_CXXALIASWARN_2(func,namespace) \ 298 _GL_WARN_ON_USE (func, \ 299 "The symbol ::" #func " refers to the system function. " \ 300 "Use " #namespace "::" #func " instead.") 301 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 302 # define _GL_CXXALIASWARN_2(func,namespace) \ 303 extern __typeof__ (func) func 305 # define _GL_CXXALIASWARN_2(func,namespace) \ 306 _GL_EXTERN_C int _gl_cxxalias_dummy 309 # define _GL_CXXALIASWARN(func) \ 310 _GL_EXTERN_C int _gl_cxxalias_dummy 316 #if defined __cplusplus && defined GNULIB_NAMESPACE 317 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 318 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ 320 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ 321 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) 325 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 326 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ 327 "The symbol ::" #func " refers to the system function. " \ 328 "Use " #namespace "::" #func " instead.") 329 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 330 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 331 extern __typeof__ (func) func 333 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 334 _GL_EXTERN_C int _gl_cxxalias_dummy 337 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 338 _GL_EXTERN_C int _gl_cxxalias_dummy 347 #ifndef _GL_ARG_NONNULL 348 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 349 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) 351 # define _GL_ARG_NONNULL(params) 356 #ifndef _GL_WARN_ON_USE 358 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 360 # define _GL_WARN_ON_USE(function, message) \ 361 extern __typeof__ (function) function __attribute__ ((__warning__ (message))) 362 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 364 # define _GL_WARN_ON_USE(function, message) \ 365 extern __typeof__ (function) function 367 # define _GL_WARN_ON_USE(function, message) \ 368 _GL_WARN_EXTERN_C int _gl_warn_on_use 378 #ifndef _GL_WARN_ON_USE_CXX 379 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 380 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 381 extern rettype function parameters_and_attributes \ 382 __attribute__ ((__warning__ (msg))) 383 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 385 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 386 extern rettype function parameters_and_attributes 388 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 389 _GL_WARN_EXTERN_C int _gl_warn_on_use 395 #ifndef _GL_WARN_EXTERN_C 396 # if defined __cplusplus 397 # define _GL_WARN_EXTERN_C extern "C" 399 # define _GL_WARN_EXTERN_C extern 404 # define __size_t size_t 411 #define glob rpl_glob 412 #define globfree rpl_globfree 413 #define glob_pattern_p rpl_glob_pattern_p 415 #define __GLOB_GNULIB 1 418 #include "glob-libc.h" 424 #if defined __cplusplus && defined GNULIB_NAMESPACE 427 # undef glob_pattern_p 430 glob_t *_Restrict_ __pglob));
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
#define _GL_CXXALIASWARN(func)
__BEGIN_DECLS typedef int(* _gl_glob_errfunc_fn)(const char *, int)