/* * Copyright (C) 2005 The 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. */ #ifndef FILESUBR_H #define FILESUBR_H #include bool isdir (const char *file); bool isfile (const char *file); ssize_t islink (const char *file); bool isdevice (const char *file); bool isreadable (const char *file); bool iswritable (const char *file); bool isaccessible (const char *file, const int mode); const char *last_component (const char *path); char *get_homedir (void); char *strcat_filename_onto_homedir (const char *, const char *); char *cvs_temp_name (void); FILE *cvs_temp_file (char **filename); int unlink_file (const char *f); int unlink_file_dir (const char *f); #endif /* FILESUBR_H */