1// +build ignore
2
3/*
4Input to cgo -godefs.
5*/
6
7package host
8
9/*
10#define KERNEL
11#include <sys/types.h>
12#include <sys/time.h>
13#include <utmp.h>
14
15enum {
16	sizeofPtr = sizeof(void*),
17};
18
19*/
20import "C"
21
22// Machine characteristics; for internal use.
23
24const (
25	sizeofPtr      = C.sizeofPtr
26	sizeofShort    = C.sizeof_short
27	sizeofInt      = C.sizeof_int
28	sizeofLong     = C.sizeof_long
29	sizeofLongLong = C.sizeof_longlong
30	sizeOfUtmp     = C.sizeof_struct_utmp
31)
32
33// Basic types
34
35type (
36	_C_short     C.short
37	_C_int       C.int
38	_C_long      C.long
39	_C_long_long C.longlong
40)
41
42type Utmp C.struct_utmp
43type Timeval C.struct_timeval
44