DEADSOFTWARE

OpenBSD 5.2 -> 5.4 (mostly clock_t 32 -> 64 bit related)
authorAlexander Shiryaev <aixp@mail.ru>
Wed, 21 Aug 2013 12:45:17 +0000 (16:45 +0400)
committerAlexander Shiryaev <aixp@mail.ru>
Wed, 21 Aug 2013 12:45:17 +0000 (16:45 +0400)
22 files changed:
new/_OpenBSD_/Host/Mod/Files.odc
new/_OpenBSD_/Lin/Mod/Dl.txt
new/_OpenBSD_/Lin/Mod/Ioctl.txt
new/_OpenBSD_/Lin/Mod/Libc.txt
new/_OpenBSD_/Lin/Mod/Net.txt
new/_OpenBSD_/Lin/Mod/Termios.txt
new/_OpenBSD_/Lin/Mod/gen-Ioctl/Ioctl.txt.templ
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-dirent
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-sigaction
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-siginfo
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-stack
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-stat
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-tm
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-ucontext
new/_OpenBSD_/Lin/Mod/gen-Libc/libver
new/_OpenBSD_/Lin/Mod/gen-Libc/osname
new/_OpenBSD_/Lin/Mod/gen-Net/Net.txt.templ
new/_OpenBSD_/Lin/Mod/gen-Termios/Termios.txt.templ
new/_OpenBSD_/Lin/Rsrc/loader/loader
new/_OpenBSD_/System/Mod/Kernel.odc
new/_OpenBSD_/libBB.so
new/_OpenBSD_/libBB0.so

index d0b550782d9fb11391e2bba59b5df0e563096bc1..2faa926fa5c57a8dce41b3c70bbf20e763613a11 100644 (file)
Binary files a/new/_OpenBSD_/Host/Mod/Files.odc and b/new/_OpenBSD_/Host/Mod/Files.odc differ
index 4df672dd96a1350eb30a11fba4be69abd2dff776..ed81f4de386acf67614f3a80a32133d34e3ae6df 100644 (file)
@@ -1,9 +1,9 @@
 MODULE LinDl ["ld.so"];
 
        (*
-               A. V. Shiryaev, 2012.09
+               A. V. Shiryaev, 2012.09, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
index b3f0f061956f985a2fb34636d5c4aecb4091213e..51947f484745d4393a3da968088cc7ba2a8901fd 100644 (file)
@@ -1,9 +1,9 @@
-MODULE LinIoctl ["libc.so.66.0"];
+MODULE LinIoctl ["libc.so.70.0"];
 
        (*
-               A. V. Shiryaev, 2012.11
+               A. V. Shiryaev, 2012.11, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
index a447b2725a41bc309f05be7aec3fbb4bebdd3d4d..26bf4ac831e7a7a5d4230d127dd7a89459fc73f1 100644 (file)
@@ -1,7 +1,7 @@
-MODULE LinLibc ["libc.so.66.0"];
+MODULE LinLibc ["libc.so.70.0"];
 
        (*
-               OpenBSD 5.2
+               OpenBSD 5.4
                i386
        *)
 
@@ -378,14 +378,14 @@ MODULE LinLibc ["libc.so.66.0"];
                size_t* = INTEGER;
                ssize_t* = INTEGER;
                off_t* = LONGINT;
-               clock_t* = INTEGER;
-               time_t* = INTEGER;
+               clock_t* = LONGINT;
+               time_t* = LONGINT;
                mode_t* = SET;
                pid_t* = INTEGER;
                uid_t* = INTEGER;
                gid_t* = INTEGER;
                dev_t* = INTEGER;
-               ino_t* = INTEGER;
+               ino_t* = LONGINT;
                nlink_t* = INTEGER;
                int8_t* = SHORTCHAR;
                u_int8_t* = SHORTCHAR;
@@ -406,7 +406,7 @@ MODULE LinLibc ["libc.so.66.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.2 /usr/include/time.h *)
+                       (* OpenBSD 5.4 /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] *)
@@ -423,7 +423,7 @@ MODULE LinLibc ["libc.so.66.0"];
                Ptrsiginfo_t* = POINTER TO siginfo_t;
                siginfo_t = RECORD [untagged]
                        (* si_code, fault address *)
-                       (* OpenBSD 5.2 /usr/include/sys/siginfo.h *)
+                       (* OpenBSD 5.4 /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 *)
@@ -441,8 +441,8 @@ MODULE LinLibc ["libc.so.66.0"];
                                                        END;
                                                        _cld*: RECORD [untagged]
                                                                _utime*: clock_t;
-                                                               _status*: int;
                                                                _stime*: clock_t;
+                                                               _status*: int;
                                                        END;
                                                END;
                                        END;
@@ -456,7 +456,7 @@ MODULE LinLibc ["libc.so.66.0"];
                Ptrucontext_t* = POINTER TO ucontext_t;
                ucontext_t = RECORD [untagged]
                        (* IP, SP, FP *)
-                       (* OpenBSD 5.2 /usr/include/i386/signal.h struct sigcontext *)
+                       (* OpenBSD 5.4 /usr/include/i386/signal.h struct sigcontext *)
                                sc_gs*: int;
                                sc_fs*: int;
                                sc_es*: int;
@@ -475,14 +475,14 @@ MODULE LinLibc ["libc.so.66.0"];
                                sc_esp*: int;
                                sc_ss*: int;
 
-                               sc_onstack*: int; (* sigstack state to restore *)
+                               __sc_unused: int;
                                sc_mask*: int; (* signal mask to restore *)
 
                                sc_trapno*: int; (* XXX should be above *)
                                sc_err*: int;
 
                                sc_fpstate*: RECORD [union]
-                                       (* OpenBSD 5.2 /usr/include/i386/npx.h union savefpu *)
+                                       (* OpenBSD 5.4 /usr/include/i386/npx.h union savefpu *)
 (*
                                                sv_87*: RECORD [untagged]
                                                        ...
@@ -499,7 +499,7 @@ MODULE LinLibc ["libc.so.66.0"];
                        sa_sigaction*: PROCEDURE [ccall] (sig: INTEGER; siginfo: Ptrsiginfo_t; context: Ptrucontext_t),
                        sa_flags*: intFlags, sa_mask*: sigset_t
 *)
-                       (* OpenBSD 5.2 /usr/include/sys/signal.h *)
+                       (* OpenBSD 5.4 /usr/include/sys/signal.h *)
                                sa_sigaction*: PROCEDURE [ccall] (sig: int; siginfo: Ptrsiginfo_t; ctx: Ptrucontext_t);
                                sa_mask*: sigset_t;
                                sa_flags*: intFlags;
@@ -509,7 +509,7 @@ MODULE LinLibc ["libc.so.66.0"];
 (*
                        ss_sp*: PtrVoid, ss_size*: size_t, ss_flags*: intFlags
 *)
-                       (* OpenBSD 5.2 /usr/include/sys/signal.h *)
+                       (* OpenBSD 5.4 /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 *)
@@ -520,15 +520,14 @@ MODULE LinLibc ["libc.so.66.0"];
                        NOTE: check record size
                        st_mode*: mode_t, st_size*: off_t, st_mtime*: time_t
 *)
-                       (* OpenBSD 5.2 /usr/include/sys/stat.h *)
+                       (* OpenBSD 5.4 /usr/include/sys/stat.h *)
+                               st_mode*: mode_t;
                                st_dev*: dev_t;
                                st_ino*: ino_t;
-                               st_mode*: mode_t;
                                st_nlink*: nlink_t;
                                st_uid*: uid_t;
                                st_gid*: gid_t;
                                st_rdev*: dev_t;
-                               st_lspare0*: int32_t;
 
                                st_atime*: time_t;
                                st_atimensec*: long;
@@ -542,11 +541,9 @@ MODULE LinLibc ["libc.so.66.0"];
                                st_blksize*: u_int32_t;
                                st_flags*: u_int32_t;
                                st_gen*: u_int32_t;
-                               st_lspare1*: int32_t;
 
                                __st_birthtime*: time_t;
                                __st_birthtimensec*: long;
-                               st_qspare*: ARRAY [untagged] 2 OF int64_t;
                END;
 
                PtrFILE* = PtrVoid;
@@ -557,11 +554,13 @@ MODULE LinLibc ["libc.so.66.0"];
 (*
                        d_name*: ARRAY [untagged] NAME_MAX + 1 OF SHORTCHAR
 *)
-                       (* OpenBSD 5.2 /usr/include/sys/dirent.h *)
-                               d_fileno*: u_int32_t; (* file number of entry *)
+                       (* OpenBSD 5.4 /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 *)
                                d_type*: u_int8_t; (* file type, see below *)
                                d_namlen*: u_int8_t; (* length of string in d_name *)
+                               __d_padding: ARRAY [untagged] 4 OF u_int8_t; (* suppress padding after d_name *)
                                d_name*: ARRAY [untagged] 255 + 1 OF SHORTCHAR;
                END;
 
index 95c7e4c4f7726adcdab5c1708e39e7d6cf99a0f3..4b744621e77a19ef4e34cf3184f01b87b317b790 100644 (file)
@@ -1,9 +1,9 @@
-MODULE LinNet ["libc.so.66.0"];
+MODULE LinNet ["libc.so.70.0"];
 
        (*
-               A. V. Shiryaev, 2012.11
+               A. V. Shiryaev, 2012.11, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
@@ -131,6 +131,8 @@ MODULE LinNet ["libc.so.66.0"];
                        IPPROTO_MAX* = 256;
                        IPPROTO_DIVERT* = 258; (* Divert sockets *)
                        IPPROTO_DONE* = 257;
+                       IPPROTO_DIVERT_RESP* = 01H; (* {0} *) (* divert response packets *)
+                       IPPROTO_DIVERT_INIT* = 02H; (* {1} *) (* divert packets initial direction *)
 
                (* /usr/include/sys/param.h *)
                        MAXHOSTNAMELEN* = 256; (* max hostname size *)
index 159fe770a9d7184bfdb7e313b7d6e7808947ee6f..a3162c758a6955097fad8787da983c97903357de 100644 (file)
@@ -1,9 +1,9 @@
-MODULE LinTermios ["libc.so.66.0"];
+MODULE LinTermios ["libc.so.70.0"];
 
        (*
-               A. V. Shiryaev, 2012.11
+               A. V. Shiryaev, 2012.11, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
index ba229f5400dc8029f9eabbf3120e59a5c79f3285..23a920289a3e73b964c56fbc582ddf4a398385c3 100644 (file)
@@ -1,9 +1,9 @@
-MODULE LinIoctl ["libc.so.66.0"];
+MODULE LinIoctl ["libc.so.70.0"];
 
        (*
-               A. V. Shiryaev, 2012.11
+               A. V. Shiryaev, 2012.11, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
index db2c131705aedbfac89959b9a6c75d428f3d44ea..1fdc13478d0c55974e26b5c3d0da24ec152e826d 100644 (file)
@@ -1,6 +1,8 @@
-                       (* OpenBSD 5.2 /usr/include/sys/dirent.h *)
-                               d_fileno*: u_int32_t; (* file number of entry *)
+                       (* OpenBSD 5.4 /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 *)
                                d_type*: u_int8_t; (* file type, see below *)
                                d_namlen*: u_int8_t; (* length of string in d_name *)
+                               __d_padding: ARRAY [untagged] 4 OF u_int8_t; (* suppress padding after d_name *)
                                d_name*: ARRAY [untagged] 255 + 1 OF SHORTCHAR;
\ No newline at end of file
index c5fbd9cecd2c79b933abf779461aa1682ae5374f..e28a208d2a34f35a3f75164009fa67cd435210d2 100644 (file)
@@ -1,4 +1,4 @@
-                       (* OpenBSD 5.2 /usr/include/sys/signal.h *)
+                       (* OpenBSD 5.4 /usr/include/sys/signal.h *)
                                sa_sigaction*: PROCEDURE [ccall] (sig: int; siginfo: Ptrsiginfo_t; ctx: Ptrucontext_t);
                                sa_mask*: sigset_t;
                                sa_flags*: intFlags;
\ No newline at end of file
index 0fc315cd1cabf12c2197ddfb755a56e869494a07..18b189945392fba416a2fbe386ab71b690e0cf4e 100644 (file)
@@ -1,4 +1,4 @@
-                       (* OpenBSD 5.2 /usr/include/sys/siginfo.h *)
+                       (* OpenBSD 5.4 /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 *)
@@ -16,8 +16,8 @@
                                                        END;
                                                        _cld*: RECORD [untagged]
                                                                _utime*: clock_t;
-                                                               _status*: int;
                                                                _stime*: clock_t;
+                                                               _status*: int;
                                                        END;
                                                END;
                                        END;
index 5439be7ad840bbf1a644b92e5a109ab6e4723134..3136138ed1ef60269619ba6ed2d51ced1e9d3b2b 100644 (file)
@@ -1,4 +1,4 @@
-                       (* OpenBSD 5.2 /usr/include/sys/signal.h *)
+                       (* OpenBSD 5.4 /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 *)
\ No newline at end of file
index bcea6bc8680437fc6c20d2aea978d9d64a6b2d7b..20f9c0a83c704a5b53d994ceca5149a9ddaed3d1 100644 (file)
@@ -1,12 +1,11 @@
-                       (* OpenBSD 5.2 /usr/include/sys/stat.h *)
+                       (* OpenBSD 5.4 /usr/include/sys/stat.h *)
+                               st_mode*: mode_t;
                                st_dev*: dev_t;
                                st_ino*: ino_t;
-                               st_mode*: mode_t;
                                st_nlink*: nlink_t;
                                st_uid*: uid_t;
                                st_gid*: gid_t;
                                st_rdev*: dev_t;
-                               st_lspare0*: int32_t;
 
                                st_atime*: time_t;
                                st_atimensec*: long;
@@ -20,8 +19,6 @@
                                st_blksize*: u_int32_t;
                                st_flags*: u_int32_t;
                                st_gen*: u_int32_t;
-                               st_lspare1*: int32_t;
 
                                __st_birthtime*: time_t;
-                               __st_birthtimensec*: long;
-                               st_qspare*: ARRAY [untagged] 2 OF int64_t;
\ No newline at end of file
+                               __st_birthtimensec*: long;
\ No newline at end of file
index 5722e49b46b034f2b0bae48f393b098ea09706fa..4c70ef656f159232297944c78c4b1b6bae04e4ca 100644 (file)
@@ -1,4 +1,4 @@
-                       (* OpenBSD 5.2 /usr/include/time.h *)
+                       (* OpenBSD 5.4 /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] *)
index 754fed2fe75cd21f9310b3a4e081a89bd0556ccc..43b443df19805a31fc635b658a093a5a52f94359 100644 (file)
@@ -1,4 +1,4 @@
-                       (* OpenBSD 5.2 /usr/include/i386/signal.h struct sigcontext *)
+                       (* OpenBSD 5.4 /usr/include/i386/signal.h struct sigcontext *)
                                sc_gs*: int;
                                sc_fs*: int;
                                sc_es*: int;
                                sc_esp*: int;
                                sc_ss*: int;
 
-                               sc_onstack*: int; (* sigstack state to restore *)
+                               __sc_unused: int;
                                sc_mask*: int; (* signal mask to restore *)
 
                                sc_trapno*: int; (* XXX should be above *)
                                sc_err*: int;
 
                                sc_fpstate*: RECORD [union]
-                                       (* OpenBSD 5.2 /usr/include/i386/npx.h union savefpu *)
+                                       (* OpenBSD 5.4 /usr/include/i386/npx.h union savefpu *)
 (*
                                                sv_87*: RECORD [untagged]
                                                        ...
index fd509f3fb7e97e3f8ef17ca329f65d6990878ab8..3d9c28b559f592914469fcd19a982d64c990d8b4 100644 (file)
@@ -1 +1 @@
-.66.0
\ No newline at end of file
+.70.0
\ No newline at end of file
index 98eb3c98040368685934537b9d88cccac01208e2..68114049c479046434fb656510c1f5258c401a70 100644 (file)
@@ -1 +1 @@
-OpenBSD 5.2
\ No newline at end of file
+OpenBSD 5.4
\ No newline at end of file
index 0be10b654d043b7fe4bf326300505959a164d1bc..29b90117d47acabd159e58a772730ed320545c42 100644 (file)
@@ -1,9 +1,9 @@
-MODULE LinNet ["libc.so.66.0"];
+MODULE LinNet ["libc.so.70.0"];
 
        (*
-               A. V. Shiryaev, 2012.11
+               A. V. Shiryaev, 2012.11, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
index 81760c58193ee870eda19376190bf3cd491e7cce..055af2807d6f2401f7a6f57c2cabde500fc41a76 100644 (file)
@@ -1,9 +1,9 @@
-MODULE LinTermios ["libc.so.66.0"];
+MODULE LinTermios ["libc.so.70.0"];
 
        (*
-               A. V. Shiryaev, 2012.11
+               A. V. Shiryaev, 2012.11, 2013.08
 
-               OpenBSD 5.2
+               OpenBSD 5.4
                32-bit
        *)
 
index 745fb0898600a5dcbc9fb5cf8e11b1cfd3a294ad..bea6f87850f4f51f6508d878c08e93426b66624e 100755 (executable)
Binary files a/new/_OpenBSD_/Lin/Rsrc/loader/loader and b/new/_OpenBSD_/Lin/Rsrc/loader/loader differ
index 88493538f73be7812aea21f967ff6ccffb1b21f8..9d12190551c4771cc9625b948204128e60322466 100644 (file)
Binary files a/new/_OpenBSD_/System/Mod/Kernel.odc and b/new/_OpenBSD_/System/Mod/Kernel.odc differ
index 33298ef9edca9e90773fd1ebc9804d6bac3cd5b2..b74b1f14ca9d6ece8770d9e0dcc2b16513886294 100644 (file)
Binary files a/new/_OpenBSD_/libBB.so and b/new/_OpenBSD_/libBB.so differ
index 777e969734a9a161aba067f76df8bf221be609c1..7455bd4a564fde25d1b51110cf4e118336dd28cb 100644 (file)
Binary files a/new/_OpenBSD_/libBB0.so and b/new/_OpenBSD_/libBB0.so differ