|
@@ -1,7 +1,7 @@
|
|
|
-MODULE LinLibc ["libc.so.78.0"];
|
|
|
+MODULE LinLibc ["libc.so.81.0"];
|
|
|
|
|
|
(*
|
|
|
- OpenBSD 5.6
|
|
|
+ OpenBSD 5.8
|
|
|
i386
|
|
|
*)
|
|
|
|
|
@@ -389,6 +389,8 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
dev_t* = INTEGER;
|
|
|
ino_t* = LONGINT;
|
|
|
nlink_t* = INTEGER;
|
|
|
+ blkcnt_t = LONGINT;
|
|
|
+ blksize_t = INTEGER;
|
|
|
int8_t* = SHORTCHAR;
|
|
|
u_int8_t* = SHORTCHAR;
|
|
|
int16_t* = SHORTINT;
|
|
@@ -408,7 +410,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
tmDesc* = RECORD [untagged]
|
|
|
(* NOTE: check record size *)
|
|
|
(* tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec, tm_wday [ , tm_gmtoff ] *)
|
|
|
- (* OpenBSD 5.4 /usr/include/time.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/time.h *)
|
|
|
tm_sec*: int; (* seconds after the minute [0-60] *)
|
|
|
tm_min*: int; (* minutes after the hour [0-59] *)
|
|
|
tm_hour*: int; (* hours since midnight [0-23] *)
|
|
@@ -425,7 +427,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
Ptrsiginfo_t* = POINTER TO siginfo_t;
|
|
|
siginfo_t = RECORD [untagged]
|
|
|
(* si_code, fault address *)
|
|
|
- (* OpenBSD 5.4 /usr/include/sys/siginfo.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/sys/siginfo.h *)
|
|
|
si_signo*: int; (* signal from signal.h *)
|
|
|
si_code*: int; (* code from above *)
|
|
|
si_errno*: int; (* error from errno.h *)
|
|
@@ -458,7 +460,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
Ptrucontext_t* = POINTER TO ucontext_t;
|
|
|
ucontext_t = RECORD [untagged]
|
|
|
(* IP, SP, FP *)
|
|
|
- (* OpenBSD 5.4 /usr/include/i386/signal.h struct sigcontext *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/i386/signal.h struct sigcontext *)
|
|
|
sc_gs*: int;
|
|
|
sc_fs*: int;
|
|
|
sc_es*: int;
|
|
@@ -501,7 +503,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
sa_sigaction*: PROCEDURE [ccall] (sig: INTEGER; siginfo: Ptrsiginfo_t; context: Ptrucontext_t),
|
|
|
sa_flags*: intFlags, sa_mask*: sigset_t
|
|
|
*)
|
|
|
- (* OpenBSD 5.4 /usr/include/sys/signal.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/sys/signal.h *)
|
|
|
sa_sigaction*: PROCEDURE [ccall] (sig: int; siginfo: Ptrsiginfo_t; ctx: Ptrucontext_t);
|
|
|
sa_mask*: sigset_t;
|
|
|
sa_flags*: intFlags;
|
|
@@ -511,7 +513,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
(*
|
|
|
ss_sp*: PtrVoid, ss_size*: size_t, ss_flags*: intFlags
|
|
|
*)
|
|
|
- (* OpenBSD 5.4 /usr/include/sys/signal.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/sys/signal.h *)
|
|
|
ss_sp*: PtrVoid; (* signal stack base *)
|
|
|
ss_size*: size_t; (* signal stack length *)
|
|
|
ss_flags*: intFlags; (* SS_DISABLE and/or SS_ONSTACK *)
|
|
@@ -522,7 +524,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
NOTE: check record size
|
|
|
st_mode*: mode_t, st_size*: off_t, st_mtime*: time_t
|
|
|
*)
|
|
|
- (* OpenBSD 5.4 /usr/include/sys/stat.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/sys/stat.h *)
|
|
|
st_mode*: mode_t;
|
|
|
st_dev*: dev_t;
|
|
|
st_ino*: ino_t;
|
|
@@ -539,8 +541,8 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
st_ctimensec*: long;
|
|
|
|
|
|
st_size*: off_t;
|
|
|
- st_blocks*: int64_t;
|
|
|
- st_blksize*: u_int32_t;
|
|
|
+ st_blocks*: blkcnt_t;
|
|
|
+ st_blksize*: blksize_t;
|
|
|
st_flags*: u_int32_t;
|
|
|
st_gen*: u_int32_t;
|
|
|
|
|
@@ -556,7 +558,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
(*
|
|
|
d_name*: ARRAY [untagged] NAME_MAX + 1 OF SHORTCHAR
|
|
|
*)
|
|
|
- (* OpenBSD 5.4 /usr/include/sys/dirent.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/sys/dirent.h *)
|
|
|
d_fileno*: ino_t; (* file number of entry *)
|
|
|
d_off*: off_t; (* offset after this entry *)
|
|
|
d_reclen*: u_int16_t; (* length of this record *)
|
|
@@ -567,7 +569,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
END;
|
|
|
|
|
|
timespec_t* = RECORD [untagged]
|
|
|
- (* OpenBSD 5.4 /usr/include/time.h *)
|
|
|
+ (* OpenBSD 5.8 /usr/include/time.h *)
|
|
|
tv_sec*: time_t; (* seconds *)
|
|
|
tv_nsec*: long; (* and nanoseconds *)
|
|
|
END;
|
|
@@ -586,7 +588,7 @@ MODULE LinLibc ["libc.so.78.0"];
|
|
|
*)
|
|
|
VAR
|
|
|
(* OpenBSD: stdin, stdout, stderr *)
|
|
|
- __sF*: ARRAY [untagged] 3 OF FILE; (* OpenBSD 5.2 /usr/include/stdio.h *)
|
|
|
+ __sF*: ARRAY [untagged] 3 OF FILE; (* OpenBSD 5.8 /usr/include/stdio.h *)
|
|
|
(*
|
|
|
stdin = SYSTEM.ADR(__sF[0])
|
|
|
stdout = SYSTEM.ADR(__sF[1])
|