avoid deferencing null pointers -- breaks on Solaris (printf is dumb)
[unix-history] / usr / src / sys / vax / include / types.h
CommitLineData
f0122e7f
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
e23d0dc1 7 * @(#)types.h 7.9 (Berkeley) %G%
f0122e7f
KB
8 */
9
f43b7ac0
KB
10#ifndef _MACHTYPES_H_
11#define _MACHTYPES_H_
f0122e7f 12
e23d0dc1 13#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
cddaf703
KB
14typedef struct _physadr {
15 int r[1];
16} *physadr;
09c9730d 17
cddaf703
KB
18typedef struct label_t {
19 int val[14];
f43b7ac0 20} label_t;
e23d0dc1 21#endif
09c9730d 22
39eef863
KB
23/*
24 * Basic integral types. Omit the typedef if
25 * not possible for a machine/compiler combination.
26 */
e23d0dc1
KB
27typedef signed char int8_t;
28typedef unsigned char u_int8_t;
29typedef short int16_t;
30typedef unsigned short u_int16_t;
31typedef int int32_t;
32typedef unsigned int u_int32_t;
33typedef long long int64_t;
34typedef unsigned long long u_int64_t;
28bde4f9 35
f43b7ac0 36#endif /* _MACHTYPES_H_ */