X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmakepath.h;h=f5ece90cc236ad319e65ccbdba5fa6dafebc6e1b;hb=b3024d9c5ab39fcce8d7aa8069c4d5bcd139a70b;hp=f555d7b4b69137f5bb1eaee5c92de408a35462e8;hpb=66da1bf2662f2fbb6c0725a92f7115255317908a;p=gnulib.git diff --git a/lib/makepath.h b/lib/makepath.h index f555d7b4b..f5ece90cc 100644 --- a/lib/makepath.h +++ b/lib/makepath.h @@ -1,16 +1,22 @@ -#ifndef __P -#if defined (__GNUC__) || (defined (__STDC__) && __STDC__) -#define __P(args) args -#else -#define __P(args) () -#endif /* GCC. */ -#endif /* Not __P. */ +#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));