xref: /titanic_50/usr/src/cmd/mandoc/config.h (revision 260e9a87725c090ba5835b1f9f0b62fa2f96036f)
1 #ifndef MANDOC_CONFIG_H
2 #define MANDOC_CONFIG_H
3 
4 #if defined(__linux__) || defined(__MINT__)
5 #define _GNU_SOURCE	/* See test-*.c what needs this. */
6 #endif
7 
8 #include <sys/types.h>
9 #include <stdio.h>
10 
11 #define HAVE_DIRENT_NAMLEN 0
12 #define HAVE_FGETLN 0
13 #define HAVE_FTS 0
14 #define HAVE_GETSUBOPT 1
15 #define HAVE_MMAP 1
16 #define HAVE_REALLOCARRAY 0
17 #define HAVE_STRCASESTR 1
18 #define HAVE_STRLCAT 1
19 #define HAVE_STRLCPY 1
20 #define HAVE_STRPTIME 1
21 #define HAVE_STRSEP 1
22 #define HAVE_STRTONUM 0
23 #define HAVE_WCHAR 1
24 #define HAVE_SQLITE3 0
25 #define HAVE_SQLITE3_ERRSTR 1
26 #define HAVE_OHASH 1
27 #define HAVE_MANPATH 0
28 
29 #define BINM_APROPOS "apropos"
30 #define BINM_MAN "man"
31 #define BINM_WHATIS "whatis"
32 #define BINM_MAKEWHATIS "makewhatis"
33 
34 #if !defined(__BEGIN_DECLS)
35 #  ifdef __cplusplus
36 #  define	__BEGIN_DECLS		extern "C" {
37 #  else
38 #  define	__BEGIN_DECLS
39 #  endif
40 #endif
41 #if !defined(__END_DECLS)
42 #  ifdef __cplusplus
43 #  define	__END_DECLS		}
44 #  else
45 #  define	__END_DECLS
46 #  endif
47 #endif
48 
49 extern	char	 *fgetln(FILE *, size_t *);
50 extern	int	  getsubopt(char **, char * const *, char **);
51 extern	void	 *reallocarray(void *, size_t, size_t);
52 extern	char	 *strcasestr(const char *, const char *);
53 extern	size_t	  strlcat(char *, const char *, size_t);
54 extern	size_t	  strlcpy(char *, const char *, size_t);
55 extern	char	 *strsep(char **, const char *);
56 extern	long long strtonum(const char *, long long, long long, const char **);
57 
58 #endif /* MANDOC_CONFIG_H */
59