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