(getuidbyname): Declare parameter to be const.
[coreutils.git] / lib / save-cwd.h
blob8f9d07def3faf4616949b51c271c83472763d2ee
1 #ifndef SAVE_CWD_H
2 #define SAVE_CWD_H 1
4 struct saved_cwd
6 int desc;
7 char *name;
8 };
10 #ifndef __P
11 #if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
12 #define __P(args) args
13 #else
14 #define __P(args) ()
15 #endif /* GCC. */
16 #endif /* Not __P. */
18 int save_cwd __P((struct saved_cwd *cwd));
19 int restore_cwd __P((const struct saved_cwd *cwd, const char *dest,
20 const char *from));
21 void free_cwd __P((struct saved_cwd *cwd));
23 #endif /* SAVE_CWD_H */