diff options
Diffstat (limited to 'contrib/cvs/lib/savecwd.h')
-rw-r--r-- | contrib/cvs/lib/savecwd.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/cvs/lib/savecwd.h b/contrib/cvs/lib/savecwd.h new file mode 100644 index 0000000..f9802f8 --- /dev/null +++ b/contrib/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 */ |