xref: /titanic_51/usr/src/cmd/mandoc/config.h (revision 260e9a87725c090ba5835b1f9f0b62fa2f96036f)
195c635efSGarrett D'Amore #ifndef MANDOC_CONFIG_H
295c635efSGarrett D'Amore #define MANDOC_CONFIG_H
395c635efSGarrett D'Amore 
495c635efSGarrett D'Amore #if defined(__linux__) || defined(__MINT__)
5*260e9a87SYuri Pankov #define _GNU_SOURCE	/* See test-*.c what needs this. */
695c635efSGarrett D'Amore #endif
795c635efSGarrett D'Amore 
8*260e9a87SYuri Pankov #include <sys/types.h>
995c635efSGarrett D'Amore #include <stdio.h>
1095c635efSGarrett D'Amore 
11*260e9a87SYuri Pankov #define HAVE_DIRENT_NAMLEN 0
12*260e9a87SYuri Pankov #define HAVE_FGETLN 0
13*260e9a87SYuri Pankov #define HAVE_FTS 0
14*260e9a87SYuri Pankov #define HAVE_GETSUBOPT 1
15*260e9a87SYuri Pankov #define HAVE_MMAP 1
16*260e9a87SYuri Pankov #define HAVE_REALLOCARRAY 0
17*260e9a87SYuri Pankov #define HAVE_STRCASESTR 1
18*260e9a87SYuri Pankov #define HAVE_STRLCAT 1
19*260e9a87SYuri Pankov #define HAVE_STRLCPY 1
20*260e9a87SYuri Pankov #define HAVE_STRPTIME 1
21*260e9a87SYuri Pankov #define HAVE_STRSEP 1
22*260e9a87SYuri Pankov #define HAVE_STRTONUM 0
23*260e9a87SYuri Pankov #define HAVE_WCHAR 1
24*260e9a87SYuri Pankov #define HAVE_SQLITE3 0
25*260e9a87SYuri Pankov #define HAVE_SQLITE3_ERRSTR 1
26*260e9a87SYuri Pankov #define HAVE_OHASH 1
27*260e9a87SYuri Pankov #define HAVE_MANPATH 0
2895c635efSGarrett D'Amore 
29*260e9a87SYuri Pankov #define BINM_APROPOS "apropos"
30*260e9a87SYuri Pankov #define BINM_MAN "man"
31*260e9a87SYuri Pankov #define BINM_WHATIS "whatis"
32*260e9a87SYuri Pankov #define BINM_MAKEWHATIS "makewhatis"
3395c635efSGarrett D'Amore 
3495c635efSGarrett D'Amore #if !defined(__BEGIN_DECLS)
3595c635efSGarrett D'Amore #  ifdef __cplusplus
3695c635efSGarrett D'Amore #  define	__BEGIN_DECLS		extern "C" {
3795c635efSGarrett D'Amore #  else
3895c635efSGarrett D'Amore #  define	__BEGIN_DECLS
3995c635efSGarrett D'Amore #  endif
4095c635efSGarrett D'Amore #endif
4195c635efSGarrett D'Amore #if !defined(__END_DECLS)
4295c635efSGarrett D'Amore #  ifdef __cplusplus
4395c635efSGarrett D'Amore #  define	__END_DECLS		}
4495c635efSGarrett D'Amore #  else
4595c635efSGarrett D'Amore #  define	__END_DECLS
4695c635efSGarrett D'Amore #  endif
4795c635efSGarrett D'Amore #endif
4895c635efSGarrett D'Amore 
4995c635efSGarrett D'Amore extern	char	 *fgetln(FILE *, size_t *);
50*260e9a87SYuri Pankov extern	int	  getsubopt(char **, char * const *, char **);
51*260e9a87SYuri Pankov extern	void	 *reallocarray(void *, size_t, size_t);
52*260e9a87SYuri Pankov extern	char	 *strcasestr(const char *, const char *);
53*260e9a87SYuri Pankov extern	size_t	  strlcat(char *, const char *, size_t);
54*260e9a87SYuri Pankov extern	size_t	  strlcpy(char *, const char *, size_t);
55*260e9a87SYuri Pankov extern	char	 *strsep(char **, const char *);
56*260e9a87SYuri Pankov extern	long long strtonum(const char *, long long, long long, const char **);
5795c635efSGarrett D'Amore 
5895c635efSGarrett D'Amore #endif /* MANDOC_CONFIG_H */
59