File: savecwd.h

package info (click to toggle)
cvs 1.9.26-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 9,936 kB
  • ctags: 5,963
  • sloc: ansic: 69,262; sh: 12,663; lisp: 2,772; makefile: 1,873; perl: 940; yacc: 826; csh: 181
file content (20 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (7)
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 */