option.c: fixed warnings
[k8jam.git] / src / filesys.h
blob2692252015faa345180ab5d6901b197e157a8fe6
1 /*
2 * Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
3 * This file is part of Jam - see jam.c for Copyright information.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 * filesys.h - OS specific file routines
20 #ifndef JAMH_FILESYS_H
21 #define JAMH_FILESYS_H
23 #define ARMAG "!<arch>\n"
24 #define SARMAG 8
25 #define ARFMAG "`\n"
27 #if defined(__ppc__) || defined (__ppc64__)
28 #include <ar.h>
29 #endif
31 typedef void (*scanback) (void *closure, const char *file, int found, time_t t);
33 extern void file_dirscan (const char *dir, scanback func, void *closure);
34 extern void file_archscan (const char *arch, scanback func, void *closure);
36 extern int file_time (const char *filename, time_t *time);
38 // <0: error; 0: regular; 1: directory
39 extern int file_type (const char *diskname);
42 #endif