1 /**
2  * D header file for WASI.
3  *
4  * Copyright: Copyright Sean Kelly 2005 - 2009.
5  * License:   $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
6  * Authors:   Sean Kelly,
7               Alex Rønne Petersen
8  * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9  */
10 
11 /*          Copyright Sean Kelly 2005 - 2009.
12  * Distributed under the Boost Software License, Version 1.0.
13  *    (See accompanying file LICENSE or copy at
14  *          http://www.boost.org/LICENSE_1_0.txt)
15  */
16 module core.sys.wasi.types;
17 import core.sys.wasi.config;
18 import core.stdc.stdint;
19 public import core.stdc.stddef;
20 
21 version (OSX)
22     version = Darwin;
23 else version (iOS)
24     version = Darwin;
25 else version (TVOS)
26     version = Darwin;
27 else version (WatchOS)
28     version = Darwin;
29 
30 version (WASI):
31 extern (C):
32 
33 alias c_long slong_t;
34 alias c_ulong ulong_t;
35 
36 alias ulong     time_t;
37 alias int       clock_t;
38 alias short     error_t;
39 
40 // could be wrong:
41 alias slong_t   blkcnt_t;
42 alias ulong_t   ino_t;
43 alias slong_t   off_t;
44 alias slong_t   blksize_t;
45 alias ulong     dev_t;
46 alias uint      gid_t;
47 alias uint      mode_t;
48 alias ulong_t   nlink_t;
49 alias int       pid_t;
50 alias c_long    ssize_t;
51 alias uint      uid_t;
52 alias uint      id_t;
53 alias int       key_t;
54 alias slong_t   suseconds_t;
55 alias uint      useconds_t;