X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmakepath.h;h=f5ece90cc236ad319e65ccbdba5fa6dafebc6e1b;hb=4b4109233097408185555b472eb302c8d3da33b9;hp=2756446c8437f5842070557f55c6546fe67091ab;hpb=4dbac07636dedff35f574a28c9dbcfe16b1cb0d3;p=gnulib.git diff --git a/lib/makepath.h b/lib/makepath.h index 2756446c8..f5ece90cc 100644 --- a/lib/makepath.h +++ b/lib/makepath.h @@ -1,15 +1,22 @@ -#if __STDC__ -#undef __P -#define __P(args) args -#else -#define __P(args) () +#ifndef PARAMS +# if defined PROTOTYPES || (defined __STDC__ && __STDC__) +# define PARAMS(Args) Args +# else +# define PARAMS(Args) () +# endif #endif int - make_path __P ((const char *_argpath, - int _mode, - int _parent_mode, - uid_t _owner, - gid_t _group, - int _preserve_existing, - const char *_verbose_fmt_string)); +make_path PARAMS ((const char *_argpath, + int _mode, + int _parent_mode, + uid_t _owner, + gid_t _group, + int _preserve_existing, + const char *_verbose_fmt_string)); + +int +make_dir PARAMS ((const char *dir, + const char *dirpath, + mode_t mode, + int *created_dir_p));