186d7f5d3SJohn Marino /* Save and restore current working directory. 286d7f5d3SJohn Marino 386d7f5d3SJohn Marino Copyright (C) 1995, 1997, 1998, 2003 Free Software Foundation, Inc. 486d7f5d3SJohn Marino 586d7f5d3SJohn Marino This program is free software; you can redistribute it and/or modify 686d7f5d3SJohn Marino it under the terms of the GNU General Public License as published by 786d7f5d3SJohn Marino the Free Software Foundation; either version 2, or (at your option) 886d7f5d3SJohn Marino any later version. 986d7f5d3SJohn Marino 1086d7f5d3SJohn Marino This program is distributed in the hope that it will be useful, 1186d7f5d3SJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of 1286d7f5d3SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1386d7f5d3SJohn Marino GNU General Public License for more details. 1486d7f5d3SJohn Marino 1586d7f5d3SJohn Marino You should have received a copy of the GNU General Public License 1686d7f5d3SJohn Marino along with this program; if not, write to the Free Software Foundation, 1786d7f5d3SJohn Marino Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 1886d7f5d3SJohn Marino 1986d7f5d3SJohn Marino /* Written by Jim Meyering. */ 2086d7f5d3SJohn Marino 2186d7f5d3SJohn Marino #ifndef SAVE_CWD_H 2286d7f5d3SJohn Marino # define SAVE_CWD_H 1 2386d7f5d3SJohn Marino 2486d7f5d3SJohn Marino struct saved_cwd 2586d7f5d3SJohn Marino { 2686d7f5d3SJohn Marino int desc; 2786d7f5d3SJohn Marino char *name; 2886d7f5d3SJohn Marino }; 2986d7f5d3SJohn Marino 3086d7f5d3SJohn Marino int save_cwd (struct saved_cwd *cwd); 3186d7f5d3SJohn Marino int restore_cwd (const struct saved_cwd *cwd); 3286d7f5d3SJohn Marino void free_cwd (struct saved_cwd *cwd); 3386d7f5d3SJohn Marino 3486d7f5d3SJohn Marino #endif /* SAVE_CWD_H */ 35