The OpenD Programming Language

1 //Written in the D programming language
2 
3 /++
4     D header file for FreeBSD's extensions to POSIX's sys/types.h.
5 
6     Copyright: Copyright 2023
7     License:   $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
8     Authors:   $(HTTP jmdavisprog.com, Jonathan M Davis)
9  +/
10 module core.sys.freebsd.sys.types;
11 
12 public import core.sys.posix.sys.types;
13 
14 version (FreeBSD):
15 extern(C):
16 @nogc:
17 nothrow:
18 
19 import core.stdc.config;
20 
21 alias caddr_t = ubyte*;
22 alias c_caddr_t = const(ubyte)*;
23 
24 alias cpuwhich_t = int;
25 alias cpulevel_t = int;
26 alias cpusetid_t = int;
27 
28 alias critical_t = size_t;
29 alias daddr_t = long;
30 
31 alias fixpt_t = uint;
32 
33 alias accmode_t = int;
34 
35 alias register_t = size_t;
36 
37 alias sbintime_t = long;
38 
39 alias segsz_t = size_t;
40 
41 alias u_register_t = size_t;
42 
43 alias cap_ioctl_t = size_t;
44 
45 alias kpaddr_t = ulong;
46 alias kvaddr_t = ulong;
47 alias ksize_t = ulong;
48 alias kssize_t = long;
49 
50 alias vm_offset_t = size_t;
51 alias vm_ooffset_t = ulong;
52 alias vm_paddr_t = ulong;
53 alias vm_pindex_t = ulong;
54 alias vm_size_t = size_t;
55 
56 alias rman_res_t = ulong;
57 
58 alias syscallarg_t = register_t;