summaryrefslogtreecommitdiff
path: root/lib/sys/sys+openbsd-x64.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-04-29 17:02:13 +1200
committerOri Bernstein <ori@eigenstate.org>2016-05-08 17:20:44 +1200
commit4868e3b769c7b0d4c77c715df641219010be835b (patch)
treebe02b5a33be35484cbe222e2ae2afea8a96b5502 /lib/sys/sys+openbsd-x64.myr
parent15127e35827c55fcb3310e8b71351bd4420b2b0d (diff)
downloadmc-4868e3b769c7b0d4c77c715df641219010be835b.tar.gz
mbld sort of works.
Diffstat (limited to 'lib/sys/sys+openbsd-x64.myr')
-rw-r--r--lib/sys/sys+openbsd-x64.myr9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/sys/sys+openbsd-x64.myr b/lib/sys/sys+openbsd-x64.myr
index 72269bc..018c1d5 100644
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -1,7 +1,7 @@
use "systypes.use"
pkg sys =
- type pid = int /* process id */
+ type pid = int32 /* process id */
type scno = int64 /*syscall*/
type fdopt = int64 /* fd options */
type fd = int32 /* fd */
@@ -11,7 +11,7 @@ pkg sys =
type socktype = int64 /* socket type */
type sockproto = int64 /* socket protocol */
type sockfam = uint8 /* socket family */
- type filemode = uint16
+ type filemode = uint32
type filetype = uint8
type fcntlcmd = int64
type umtxop = int32
@@ -68,9 +68,9 @@ pkg sys =
;;
type statbuf = struct
+ mode : filemode
dev : uint32
ino : uint64
- mode : filemode
nlink : uint32
uid : uint32
gid : uint32
@@ -78,12 +78,11 @@ pkg sys =
atime : timespec
mtime : timespec
ctime : timespec
- size : int64
+ size : off
blocks : int64
blksize : uint32
flags : uint32
gen : uint32
- lspare : int32
birthtim : timespec
;;