diff options
Diffstat (limited to 'gnu/usr.bin/cvs/lib/save-cwd.h')
-rw-r--r-- | gnu/usr.bin/cvs/lib/save-cwd.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/lib/save-cwd.h b/gnu/usr.bin/cvs/lib/save-cwd.h new file mode 100644 index 00000000000..4b31071c452 --- /dev/null +++ b/gnu/usr.bin/cvs/lib/save-cwd.h @@ -0,0 +1,22 @@ +#ifndef SAVE_CWD_H +#define SAVE_CWD_H 1 + +struct saved_cwd + { + int desc; + char *name; + }; + +#ifndef __P +#if defined (__GNUC__) || (defined (__STDC__) && __STDC__) +#define __P(args) args +#else +#define __P(args) () +#endif /* GCC. */ +#endif /* Not __P. */ + +int save_cwd __P((struct saved_cwd *cwd)); +int restore_cwd __P((const struct saved_cwd *cwd, const char *dest)); +void free_cwd __P((struct saved_cwd *cwd)); + +#endif /* SAVE_CWD_H */ |