Sfoglia il codice sorgente

OpenBSD 5.2 -> 5.4 (mostly clock_t 32 -> 64 bit related)

Alexander Shiryaev 11 anni fa
parent
commit
36bc6a45cb

BIN
new/_OpenBSD_/Host/Mod/Files.odc


+ 2 - 2
new/_OpenBSD_/Lin/Mod/Dl.txt

@@ -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
 	*)
 

+ 3 - 3
new/_OpenBSD_/Lin/Mod/Ioctl.txt

@@ -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
 	*)
 

+ 19 - 20
new/_OpenBSD_/Lin/Mod/Libc.txt

@@ -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;
 

+ 5 - 3
new/_OpenBSD_/Lin/Mod/Net.txt

@@ -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 *)

+ 3 - 3
new/_OpenBSD_/Lin/Mod/Termios.txt

@@ -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
 	*)
 

+ 3 - 3
new/_OpenBSD_/Lin/Mod/gen-Ioctl/Ioctl.txt.templ

@@ -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
 	*)
 

+ 4 - 2
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-dirent

@@ -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;

+ 1 - 1
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-sigaction

@@ -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;

+ 2 - 2
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-siginfo

@@ -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;

+ 1 - 1
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-stack

@@ -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 *)

+ 3 - 6
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-stat

@@ -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;
+				__st_birthtimensec*: long;

+ 1 - 1
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-tm

@@ -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] *)

+ 3 - 3
new/_OpenBSD_/Lin/Mod/gen-Libc/fields-ucontext

@@ -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;
@@ -17,14 +17,14 @@
 				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]
 							...

+ 1 - 1
new/_OpenBSD_/Lin/Mod/gen-Libc/libver

@@ -1 +1 @@
-.66.0
+.70.0

+ 1 - 1
new/_OpenBSD_/Lin/Mod/gen-Libc/osname

@@ -1 +1 @@
-OpenBSD 5.2
+OpenBSD 5.4

+ 3 - 3
new/_OpenBSD_/Lin/Mod/gen-Net/Net.txt.templ

@@ -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
 	*)
 

+ 3 - 3
new/_OpenBSD_/Lin/Mod/gen-Termios/Termios.txt.templ

@@ -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
 	*)
 

BIN
new/_OpenBSD_/Lin/Rsrc/loader/loader


BIN
new/_OpenBSD_/System/Mod/Kernel.odc


BIN
new/_OpenBSD_/libBB.so


BIN
new/_OpenBSD_/libBB0.so