95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore/*
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * This file and its contents are supplied under the terms of the
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * Common Development and Distribution License ("CDDL"), version 1.0.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * You may only use this file in accordance with the terms of version
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * 1.0 of the CDDL.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore *
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * A full copy of the text of the CDDL should have accompanied this
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * source. A copy of the CDDL is also available via the Internet at
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * http://www.illumos.org/license/CDDL.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore */
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore/*
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * Copyright 2014 Garrett D'Amore <garrett@damore.org>
260e9a87725c090ba5835b1f9f0b62fa2f96036fYuri Pankov * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore */
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore/*
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore * Common definitions
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore */
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#ifndef _MAN_H_
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define _MAN_H_
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define CONFIG "man.cf"
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define DEFMANDIR "/usr/share/man"
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define INDENT 24
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define PAGER "less -ins"
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define WHATIS "whatis"
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define LINE_ALLOC 4096
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define MAXDIRS 128
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define MAXTOKENS 64
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#define DPRINTF if (debug) \
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore (void) printf
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amorevoid mwpath(char *path);
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#endif /* _MAN_H_ */