summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/lib/save-cwd.h
blob: f9802f8ca2faf5b73fa7e8d7d8c0b1d07f60aea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */
OpenPOWER on IntegriCloud