00001 #ifndef SAVE_CWD_H 00002 # define SAVE_CWD_H 1 00003 00004 struct saved_cwd 00005 { 00006 int desc; 00007 char *name; 00008 }; 00009 00010 # ifndef PARAMS 00011 # if defined PROTOTYPES || (defined __STDC__ && __STDC__) 00012 # define PARAMS(Args) Args 00013 # else 00014 # define PARAMS(Args) () 00015 # endif 00016 # endif 00017 00018 int save_cwd PARAMS ((struct saved_cwd *cwd)); 00019 int restore_cwd PARAMS ((const struct saved_cwd *cwd, const char *dest, 00020 const char *from)); 00021 void free_cwd PARAMS ((struct saved_cwd *cwd)); 00022 00023 #endif /* SAVE_CWD_H */