Debian Codegraph @

lib/ac/unistd.h

raw symbols SCIP
1 /*
2 * fstrcmp - fuzzy string compare library
3 * Copyright (C) 2009 Peter Miller
4 * Written by Peter Miller <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or (at
9 * your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef LIB_AC_UNISTD_H
21 #define LIB_AC_UNISTD_H
22
23 #include <lib/config.h>
24
25 /*
26 * Need to define _BSD_SOURCE on Linux to get prototypes for the symlink
27 * and readlink functions.
28 */
29 #ifdef __linux__
30 #ifndef _BSD_SOURCE
31 #define _BSD_SOURCE 1
32 #endif
33 #ifndef __USE_BSD
34 #define __USE_BSD 1
35 #endif
36 #endif
37
38 #ifdef HAVE_UNISTD_H
39 #include <lib/ac/sys/types.h>
40 #include <unistd.h>
41 #endif
42
43 #ifndef SEEK_SET
44 #define SEEK_SET 0
45 #endif
46 #ifndef F_OK
47 #define F_OK 0
48 #endif
49
50 /*
51 * This is supposed to be declared in <unistd.h> by modern POSIX
52 * impelementations. Sadly, some systems in common use get this wrong.
53 */
54 extern char **environ;
55
56 #endif /* LIB_AC_UNISTD_H */