xref: /illumos-gate/usr/src/lib/libxcurses2/h/mks.h (revision b210e77709da8e42dfe621e10ccf4be504206058)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1996-1998 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 /*
28  * MKS header file.  Defines that make programming easier for us.
29  * Includes MKS-specific things and posix routines.
30  *
31  * Copyright 1985, 1993 by Mortice Kern Systems Inc.  All rights reserved.
32  *
33  * $Header: /rd/h/rcs/mks.h 1.233 1995/09/28 19:45:19 mark Exp $
34  */
35 
36 #ifndef	__M_MKS_H__
37 #define	__M_MKS_H__
38 
39 /*
40  * This should be a feature test macro defined in the Makefile or
41  * cc command line.
42  */
43 #ifndef	MKS
44 #define	MKS	1
45 #endif
46 
47 typedef	void	(*_sigfun_t)(int);
48 
49 #include <stdio.h>
50 #include <unistd.h>
51 #include <limits.h>
52 #include <stdlib.h>
53 #include <wchar.h>
54 
55 #define	M_TERMINFO_DIR		"/usr/share/lib/terminfo"
56 #define	M_CURSES_VERSION	"MKS I/XCU 4.3 Curses"
57 
58 /*
59  * MKS-specific library entry points.
60  */
61 #if defined(_LP64)
62 extern void	m_crcposix(unsigned int *, const unsigned char *, size_t);
63 #else
64 extern void	m_crcposix(unsigned long *, const unsigned char *, size_t);
65 #endif
66 
67 #endif	/* __M_MKS_H__ */
68