1 /* $MirOS: src/gnu/usr.bin/texinfo/system.h,v 1.1.7.1 2005/03/06 16:58:49 tg Exp $ */
2 
3 #ifndef	_SYSTEM_H
4 #define	_SYSTEM_H
5 
6 #define	_GNU_SOURCE
7 #include <sys/param.h>
8 #include <sys/stat.h>
9 #include <sys/file.h>
10 #include <config.h>
11 #include <stdio.h>
12 #include <ctype.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <unistd.h>
16 #include <errno.h>
17 #include <limits.h>
18 #include <fcntl.h>
19 #include <stdarg.h>
20 #include <pwd.h>
21 #include "libiberty.h"
22 
23 #define SET_BINARY(f)	(void)0
24 #define FOPEN_RBIN	"r"
25 #define FOPEN_WBIN	"w"
26 #define IS_SLASH(c)	((c) == '/')
27 #define HAVE_DRIVE(n)	(0)
28 #define IS_ABSOLUTE(n)	((n)[0] == '/')
29 #define FILENAME_CMP	strcmp
30 #define FILENAME_CMPN	strncmp
31 #define HAVE_LONG_FILENAMES(dir)   (1)
32 #define PATH_SEP	":"
33 #define STRIP_DOT_EXE	0
34 #define DEFAULT_TMPDIR "/tmp/"
35 #define NULL_DEVICE	"/dev/null"
36 #define PIPE_USE_FORK	1
37 #define	_(x)		(x)
38 #define	N_(x)		(x)
39 #define	O_BINARY	0
40 #define	STREQ(a,b)	(!strcmp((a),(b)))
41 #undef	VA_START
42 #define	VA_START	va_start
43 #define	VA_FPRINTF	vfprintf
44 #define	VA_SPRINTF	vsprintf
45 #undef	HAVE_SETLOCALE
46 
47 char *substring(const char *, const char *);
48 
49 #endif
50