summaryrefslogtreecommitdiff
path: root/lib/save-cwd.h
blob: 01525301f57975647d3c2d443946b20ef7369af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef SAVE_CWD_H
# define SAVE_CWD_H 1

struct saved_cwd
  {
    int desc;
    char *name;
  };

int save_cwd (struct saved_cwd *cwd);
int restore_cwd (const struct saved_cwd *cwd, const char *dest,
		 const char *from);
void free_cwd (struct saved_cwd *cwd);

#endif /* SAVE_CWD_H */