diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:21 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:21 +0900 |
commit | efcfd8bb8b594f96b92c8535629fcc82316d1764 (patch) | |
tree | f9367dce846e6e5fe80ced73c26b9c94e28be071 /lib/save-cwd.h | |
download | tar-submit/tizen_2.3/20140531.112556.tar.gz tar-submit/tizen_2.3/20140531.112556.tar.bz2 tar-submit/tizen_2.3/20140531.112556.zip |
Initialize Tizen 2.3submit/tizen_2.3/20140531.1125562.3a_release
Diffstat (limited to 'lib/save-cwd.h')
-rw-r--r-- | lib/save-cwd.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/save-cwd.h b/lib/save-cwd.h new file mode 100644 index 0000000..d646b55 --- /dev/null +++ b/lib/save-cwd.h @@ -0,0 +1,34 @@ +/* Save and restore current working directory. + + Copyright (C) 1995, 1997, 1998, 2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Jim Meyering. */ + +#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); +void free_cwd (struct saved_cwd *cwd); + +#endif /* SAVE_CWD_H */ |