X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmakepath.h;h=f5ece90cc236ad319e65ccbdba5fa6dafebc6e1b;hb=118c7c3af6b537e01580f3ddd29262cdc7ee17b9;hp=e62f54433aa6ce7c4937e68196b66ec98531eef2;hpb=974c1be5ddd0807bca0dcfd4bdf023213d99a2ba;p=gnulib.git diff --git a/lib/makepath.h b/lib/makepath.h index e62f54433..f5ece90cc 100644 --- a/lib/makepath.h +++ b/lib/makepath.h @@ -1,15 +1,22 @@ -# undef __P -#if __STDC__ -# 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));