X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsys_resource.in.h;h=f97805d21e102d670414f204432b19d2875345e3;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=59bfc6f80c86c0fea85b70de9290ef3e9ac77428;hpb=ab2b3f6d0f52f0509361cbe7e5d61565cac00508;p=gnulib.git diff --git a/lib/sys_resource.in.h b/lib/sys_resource.in.h index 59bfc6f80..f97805d21 100644 --- a/lib/sys_resource.in.h +++ b/lib/sys_resource.in.h @@ -1,5 +1,5 @@ /* Substitute for . - Copyright (C) 2012 Free Software Foundation, Inc. + Copyright (C) 2012-2014 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -81,5 +81,31 @@ struct rusage #endif +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Declare overridden functions. */ + + +#if @GNULIB_GETRUSAGE@ +# if !@HAVE_GETRUSAGE@ +_GL_FUNCDECL_SYS (getrusage, int, (int who, struct rusage *usage_p) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (getrusage, int, (int who, struct rusage *usage_p)); +_GL_CXXALIASWARN (getrusage); +#elif defined GNULIB_POSIXCHECK +# undef getrusage +# if HAVE_RAW_DECL_GETRUSAGE +_GL_WARN_ON_USE (getrusage, "getrusage is unportable - " + "use gnulib module getrusage for portability"); +# endif +#endif + + #endif /* _@GUARD_PREFIX@_SYS_RESOURCE_H */ #endif /* _@GUARD_PREFIX@_SYS_RESOURCE_H */