]> git.cworth.org Git - tar/blob - gnu/save-cwd.h
upstream: Fix extraction of device nodes.
[tar] / gnu / save-cwd.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Save and restore current working directory.
4
5    Copyright (C) 1995, 1997-1998, 2003, 2009-2010 Free Software Foundation,
6    Inc.
7
8    This program is free software: you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
21 /* Written by Jim Meyering.  */
22
23 #ifndef SAVE_CWD_H
24 # define SAVE_CWD_H 1
25
26 struct saved_cwd
27   {
28     int desc;
29     char *name;
30   };
31
32 int save_cwd (struct saved_cwd *cwd);
33 int restore_cwd (const struct saved_cwd *cwd);
34 void free_cwd (struct saved_cwd *cwd);
35
36 #endif /* SAVE_CWD_H */