diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-10-29 19:08:13 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-10-29 19:08:13 -0700 |
commit | 269e4f69372bc1250dcb70a9dfde30486809f1b0 (patch) | |
tree | eb86ec1c691bf8f479be36ede67e029f55f3c09c /support/syscall-gen/gentypes+openbsd:6.2-x64.frag | |
parent | 4eea6de57c9fce0a69f85270303baae069c3e237 (diff) | |
parent | d359a98ab9cfc42de66ad35333bd6d6c0571b7ca (diff) | |
download | mc-qbe.tar.gz |
Merge branch 'master' into qbeqbe
Diffstat (limited to 'support/syscall-gen/gentypes+openbsd:6.2-x64.frag')
-rw-r--r-- | support/syscall-gen/gentypes+openbsd:6.2-x64.frag | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/support/syscall-gen/gentypes+openbsd:6.2-x64.frag b/support/syscall-gen/gentypes+openbsd:6.2-x64.frag new file mode 100644 index 0000000..b8a4866 --- /dev/null +++ b/support/syscall-gen/gentypes+openbsd:6.2-x64.frag @@ -0,0 +1,120 @@ +type dev = int32 +type uid = uint32 +type gid = uint32 +type fd_mask = uint32 +type uintptr = uint64 +type clockid = int32 +type id = uint32 +type key = int64 +type shmatt = int16 + +type tfork = struct + tcb : void# + tid : pid# + stack : void# + +;; + +type msghdr = struct + name : void# + namelen : int32 + iov : iovec# + iovlen : uint + control : void# + controllen : int32 + flags : int + +;; + +type fsid = struct + val : int32[2] + +;; + +type fid = struct + len : uint16 + reserved : uint16 + data : byte[16] + +;; + +type fhandle = struct + fsid : fsid + fid : fid + +;; + +type fdset = struct + bits : fd_mask[32] + +;; + +type kevent = struct + ident : uintptr + filter : int16 + flags : uint16 + fflags : uint + data : int64 + udata : void# + +;; + +type kbind = struct + addr : void# + size : size + +;; + +type sembuf = struct + num : uint16 + op : int16 + flg : int16 + +;; + +type ipc_perm = struct + cuid : uid + cgid : gid + uid : uid + gid : gid + mode : filemode + seq : uint16 + key : key + +;; + +type shmid_ds = struct + perm : ipc_perm + segsz : int + lpid : pid + cpid : pid + nattch : shmatt + atime : time + atimensec : int64 + dtime : time + dtimensec : int64 + ctime : time + ctimensec : int64 + internal : void# + +;; + +type msqid_ds = struct + perm : ipc_perm + first : msg# + last : msg# + cbytes : uint64 + qnum : uint64 + qbytes : uint64 + lspid : pid + lrpid : pid + stime : time + pad1 : int64 + rtime : time + pad2 : int64 + ctime : time + pad3 : int64 + pad4 : int64[4] + +;; + |