about summary refs log tree commit diff
path: root/gi/libc/types.ha
blob: 94959b774566b2c6528cd6c1c735476c555daef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use types::c;

export type time_t = i64;

export type utimbuf = struct {
	actime: time_t,
	modtime: time_t,
};

export type tm = struct {
	tm_sec: int,
	tm_min: int,
	tm_hour: int,
	tm_mday: int,
	tm_mon: int,
	tm_year: int,
	tm_wday: int,
	tm_yday: int,
	tm_isdst: int,
};

export type FILE = opaque;

export type passwd = struct {
	pw_name: *c::char,
	pw_passwd: *c::char,
	pw_uid: uint,
	pw_gid: uint,
	pw_gecos: *c::char,
	pw_dir: *c::char,
	pw_shell: *c::char,
};