xref: /illumos-gate/usr/src/cmd/man/man.h (revision 260e9a87)
195c635efSGarrett D'Amore /*
295c635efSGarrett D'Amore  * This file and its contents are supplied under the terms of the
395c635efSGarrett D'Amore  * Common Development and Distribution License ("CDDL"), version 1.0.
495c635efSGarrett D'Amore  * You may only use this file in accordance with the terms of version
595c635efSGarrett D'Amore  * 1.0 of the CDDL.
695c635efSGarrett D'Amore  *
795c635efSGarrett D'Amore  * A full copy of the text of the CDDL should have accompanied this
895c635efSGarrett D'Amore  * source.  A copy of the CDDL is also available via the Internet at
995c635efSGarrett D'Amore  * http://www.illumos.org/license/CDDL.
1095c635efSGarrett D'Amore  */
1195c635efSGarrett D'Amore 
1295c635efSGarrett D'Amore /*
1395c635efSGarrett D'Amore  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
14*260e9a87SYuri Pankov  * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
1595c635efSGarrett D'Amore  */
1695c635efSGarrett D'Amore 
1795c635efSGarrett D'Amore /*
1895c635efSGarrett D'Amore  * Common definitions
1995c635efSGarrett D'Amore  */
2095c635efSGarrett D'Amore 
2195c635efSGarrett D'Amore #ifndef _MAN_H_
2295c635efSGarrett D'Amore #define	_MAN_H_
2395c635efSGarrett D'Amore 
2495c635efSGarrett D'Amore #define	CONFIG		"man.cf"
2595c635efSGarrett D'Amore #define	DEFMANDIR	"/usr/share/man"
2695c635efSGarrett D'Amore #define	INDENT		24
2795c635efSGarrett D'Amore #define	PAGER		"less -ins"
2895c635efSGarrett D'Amore #define	WHATIS		"whatis"
2995c635efSGarrett D'Amore 
3095c635efSGarrett D'Amore #define	LINE_ALLOC	4096
3195c635efSGarrett D'Amore #define	MAXDIRS		128
3295c635efSGarrett D'Amore #define	MAXTOKENS	64
3395c635efSGarrett D'Amore 
3495c635efSGarrett D'Amore #define	DPRINTF		if (debug) \
3595c635efSGarrett D'Amore 				(void) printf
3695c635efSGarrett D'Amore 
3795c635efSGarrett D'Amore void	mwpath(char *path);
3895c635efSGarrett D'Amore 
3995c635efSGarrett D'Amore #endif	/* _MAN_H_ */
40