mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 02:20:51 +01:00
18576028af
and non-unix code has been left out.
21 lines
430 B
C
21 lines
430 B
C
#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 */
|