xref: /titanic_51/usr/src/lib/libbc/inc/include/sys/stdtypes.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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) 1997-1998 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 /*
28  * Suppose you have an ANSI C or POSIX thingy that needs a typedef
29  * for thingy_t.  Put it here and include this file wherever you
30  * define the thingy.  This is used so that we don't have size_t in
31  * N (N > 1) different places and so that we don't have to have
32  * types.h included all the time and so that we can include this in
33  * the lint libs instead of termios.h which conflicts with ioctl.h.
34  */
35 
36 #ifndef	__SYS_STDTYPES_H
37 #define	__SYS_STDTYPES_H
38 
39 #pragma ident	"%Z%%M%	%I%	%E% SMI"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 typedef	int		sigset_t;	/* signal mask - may change */
46 
47 typedef	unsigned int	speed_t;	/* tty speeds */
48 typedef	unsigned long	tcflag_t;	/* tty line disc modes */
49 typedef	unsigned char	cc_t;		/* tty control char */
50 typedef	int		pid_t;		/* process id */
51 
52 typedef	unsigned short	mode_t;		/* file mode bits */
53 typedef	short		nlink_t;	/* links to a file */
54 
55 typedef	long		clock_t;	/* units=ticks (typically 60/sec) */
56 typedef	long		time_t;		/* value = secs since epoch */
57 
58 typedef	int		size_t;		/* ??? */
59 typedef int		ptrdiff_t;	/* result of subtracting two pointers */
60 
61 typedef	unsigned short	wchar_t;	/* big enough for biggest char set */
62 
63 /*
64  * POSIX Extensions
65  */
66 typedef	unsigned char	uchar_t;
67 typedef	unsigned short	ushort_t;
68 typedef	unsigned int	uint_t;
69 typedef	unsigned long	ulong_t;
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif	/* __SYS_STDTYPES_H */
76