DEADSOFTWARE

subsystem C99 renamed to PosixC
[cpc.git] / src / cpfront / linux / 486 / Posix / Mod / Csignal.cp
similarity index 60%
rename from src/cpfront/linux/486/C99/Mod/signal.cp
rename to src/cpfront/linux/486/Posix/Mod/Csignal.cp
index 7a161b583607385ca6849db2d7b0137d6d98ba35..43100cad52bed7649e09e711a7a2e829decbed41 100644 (file)
@@ -1,39 +1,39 @@
-MODULE C99signal ['signal.h'];
+MODULE PosixCsignal ['signal.h'];
 
   (* generated by genposix.sh, do not modify *)
 
-  IMPORT SYSTEM, C99types, C99sys_types, C99time;
+  IMPORT SYSTEM, PosixCtypes, PosixCsys_types, PosixCtime;
 
   TYPE
-    char* = C99types.char;
-    signed_char* = C99types.signed_char;
-    unsigned_char* = C99types.unsigned_char;
-    short* = C99types.short;
-    short_int* = C99types.short_int;
-    signed_short* = C99types.signed_short;
-    signed_short_int* = C99types.signed_short_int;
-    unsigned_short* = C99types.unsigned_short;
-    unsigned_short_int* = C99types.unsigned_short_int;
-    int* = C99types.int;
-    signed* = C99types.signed;
-    signed_int* = C99types.signed_int;
-    unsigned* = C99types.unsigned;
-    unsigned_int* = C99types.unsigned_int;
-    long* = C99types.long;
-    long_int* = C99types.long_int;
-    signed_long* = C99types.signed_long;
-    signed_long_int* = C99types.signed_long_int;
-    unsigned_long* = C99types.unsigned_long;
-    unsigned_long_int* = C99types.unsigned_long_int;
-    long_long* = C99types.long_long;
-    long_long_int* = C99types.long_long_int;
-    signed_long_long* = C99types.signed_long_long;
-    signed_long_long_int* = C99types.signed_long_long_int;
-    unsigned_long_long* = C99types.unsigned_long_long;
-    unsigned_long_long_int* = C99types.unsigned_long_long_int;
-    float* = C99types.float;
-    double* = C99types.double;
-    long_double* = C99types.long_double;
+    char* = PosixCtypes.char;
+    signed_char* = PosixCtypes.signed_char;
+    unsigned_char* = PosixCtypes.unsigned_char;
+    short* = PosixCtypes.short;
+    short_int* = PosixCtypes.short_int;
+    signed_short* = PosixCtypes.signed_short;
+    signed_short_int* = PosixCtypes.signed_short_int;
+    unsigned_short* = PosixCtypes.unsigned_short;
+    unsigned_short_int* = PosixCtypes.unsigned_short_int;
+    int* = PosixCtypes.int;
+    signed* = PosixCtypes.signed;
+    signed_int* = PosixCtypes.signed_int;
+    unsigned* = PosixCtypes.unsigned;
+    unsigned_int* = PosixCtypes.unsigned_int;
+    long* = PosixCtypes.long;
+    long_int* = PosixCtypes.long_int;
+    signed_long* = PosixCtypes.signed_long;
+    signed_long_int* = PosixCtypes.signed_long_int;
+    unsigned_long* = PosixCtypes.unsigned_long;
+    unsigned_long_int* = PosixCtypes.unsigned_long_int;
+    long_long* = PosixCtypes.long_long;
+    long_long_int* = PosixCtypes.long_long_int;
+    signed_long_long* = PosixCtypes.signed_long_long;
+    signed_long_long_int* = PosixCtypes.signed_long_long_int;
+    unsigned_long_long* = PosixCtypes.unsigned_long_long;
+    unsigned_long_long_int* = PosixCtypes.unsigned_long_long_int;
+    float* = PosixCtypes.float;
+    double* = PosixCtypes.double;
+    long_double* = PosixCtypes.long_double;
 
   CONST
     SIG_DFL* = 0;
@@ -41,14 +41,14 @@ MODULE C99signal ['signal.h'];
     SIG_IGN* = 1;
 
   TYPE
-    pthread_t* = C99sys_types.pthread_t;
-    pthread_attr_t* = C99sys_types.pthread_attr_t;
-    size_t* = C99sys_types.size_t;
-    uid_t* = C99sys_types.uid_t;
-    pid_t* = C99sys_types.pid_t;
+    pthread_t* = PosixCsys_types.pthread_t;
+    pthread_attr_t* = PosixCsys_types.pthread_attr_t;
+    size_t* = PosixCsys_types.size_t;
+    uid_t* = PosixCsys_types.uid_t;
+    pid_t* = PosixCsys_types.pid_t;
 
   TYPE
-    struct_timespec* = C99time.struct_timespec;
+    struct_timespec* = PosixCtime.struct_timespec;
 
   TYPE
     sig_atomic_t* = INTEGER;
@@ -72,7 +72,7 @@ MODULE C99signal ['signal.h'];
     Punion_sigval* = POINTER TO union_sigval;
     union_sigval* ['union sigval'] = RECORD [union] (* 4 *)
       sival_int*: int; (* 0+4 *)
-      sival_ptr*: C99types.Pvoid; (* 0+4 *)
+      sival_ptr*: PosixCtypes.Pvoid; (* 0+4 *)
     END;
 
   CONST
@@ -114,7 +114,7 @@ MODULE C99signal ['signal.h'];
     P_struct_sigaction* = POINTER TO _struct_sigaction;
     _struct_sigaction* ['struct sigaction'] = RECORD [noalign] (* 140 *)
       sa_handler*: PROCEDURE [ccall] (sig: int); (* 0+4 *)
-      sa_sigaction*: PROCEDURE [ccall] (sig: int; IN siginfo: siginfo_t; context: C99types.Pvoid); (* 0+4 *)
+      sa_sigaction*: PROCEDURE [ccall] (sig: int; IN siginfo: siginfo_t; context: PosixCtypes.Pvoid); (* 0+4 *)
       sa_mask*: sigset_t; (* 4+128 *)
       sa_flags*: int; (* 132+4 *)
     END;
@@ -124,7 +124,7 @@ MODULE C99signal ['signal.h'];
     struct_sigaction* ['struct sigaction'] = RECORD [noalign] (* 140 *)
       handler*: RECORD [union] (* 4 *)
         sa_handler*: PROCEDURE [ccall] (sig: int); (* 0+4 *)
-        sa_sigaction*: PROCEDURE [ccall] (sig: int; IN siginfo: siginfo_t; context: C99types.Pvoid); (* 0+4 *)
+        sa_sigaction*: PROCEDURE [ccall] (sig: int; IN siginfo: siginfo_t; context: PosixCtypes.Pvoid); (* 0+4 *)
       END; (* 0+4 *)
       sa_mask*: sigset_t; (* 4+128 *)
       sa_flags*: int; (* 132+4 *)
@@ -148,22 +148,61 @@ MODULE C99signal ['signal.h'];
     MINSIGSTKSZ* = 2048;
     SIGSTKSZ* = 8192;
 
+  CONST
+    __NGREG* = 19;
+
   TYPE
-    mcontext_t* = RECORD [noalign] _: ARRAY [untagged] 88 OF BYTE END;
+    greg_t* = INTEGER;
+
+  TYPE gregset_t* = ARRAY [untagged] __NGREG OF greg_t;
+
+  TYPE
+    Pstruct__libc_fpreg* = POINTER TO struct__libc_fpreg;
+    struct__libc_fpreg* ['struct _libc_fpreg'] = RECORD [noalign] (* 10 *)
+      significand*: INTEGER; (* 0+8 *)
+      exponent*: unsigned_short_int; (* 8+2 *)
+    END;
+
+  TYPE
+    Pstruct__libc_fpstate* = POINTER TO struct__libc_fpstate;
+    struct__libc_fpstate* ['struct _libc_fpstate'] = RECORD [noalign] (* 112 *)
+      cw*: unsigned_long_int; (* 0+4 *)
+      sw*: unsigned_long_int; (* 4+4 *)
+      tag*: unsigned_long_int; (* 8+4 *)
+      ipoff*: unsigned_long_int; (* 12+4 *)
+      cssel*: unsigned_long_int; (* 16+4 *)
+      dataoff*: unsigned_long_int; (* 20+4 *)
+      datasel*: unsigned_long_int; (* 24+4 *)
+      _st*: ARRAY [untagged] 8 OF struct__libc_fpreg; (* 28+80 *)
+      status*: unsigned_long_int; (* 108+4 *)
+    END;
+
+  TYPE fpregset_t* = Pstruct__libc_fpstate;
+
+  TYPE
+    Pmcontext_t* = POINTER TO mcontext_t;
+    mcontext_t* ['mcontext_t'] = RECORD [noalign] (* 88 *)
+      gregs*: gregset_t; (* 0+76 *)
+      fpregs*: fpregset_t; (* 76+4 *)
+      oldmask*: unsigned_long_int; (* 80+4 *)
+      cr2*: unsigned_long_int; (* 84+4 *)
+    END;
 
   TYPE
     Pucontext_t* = POINTER TO ucontext_t;
     ucontext_t* ['ucontext_t'] = RECORD [noalign] (* 348 *)
+      uc_flags*: unsigned_long_int; (* 0+4 *)
       uc_link*: Pucontext_t; (* 4+4 *)
       uc_stack*: stack_t; (* 8+12 *)
       uc_mcontext*: mcontext_t; (* 20+88 *)
       uc_sigmask*: sigset_t; (* 108+128 *)
+      __fpregs_mem*: struct__libc_fpstate; (* 236+112 *)
     END;
 
   TYPE
     Pstack_t* = POINTER TO stack_t;
     stack_t* ['stack_t'] = RECORD [noalign] (* 12 *)
-      ss_sp*: C99types.Pvoid; (* 0+4 *)
+      ss_sp*: PosixCtypes.Pvoid; (* 0+4 *)
       ss_flags*: int; (* 4+4 *)
       ss_size*: size_t; (* 8+4 *)
     END;
@@ -175,7 +214,7 @@ MODULE C99signal ['signal.h'];
       si_errno*: int; (* 4+4 *)
       si_code*: int; (* 8+4 *)
       si_pid*: pid_t; (* 12+4 *)
-      si_addr*: C99types.Pvoid; (* 12+4 *)
+      si_addr*: PosixCtypes.Pvoid; (* 12+4 *)
       si_band*: long; (* 12+4 *)
       si_uid*: uid_t; (* 16+4 *)
       si_status*: int; (* 20+4 *)
@@ -188,31 +227,31 @@ MODULE C99signal ['signal.h'];
       si_signo*: int; (* 0+4 *)
       si_errno*: int; (* 4+4 *)
       si_code*: int; (* 8+4 *)
-      info*: RECORD [union] (* 24 *)
-        sigill*: RECORD [noalign] (* 16 *)
-          si_addr*: C99types.Pvoid; (* 12+4 *)
-        END; (* 0+16 *)
-        sigfpe*: RECORD [noalign] (* 16 *)
-          si_addr*: C99types.Pvoid; (* 12+4 *)
-        END; (* 0+16 *)
-        sigsegv*: RECORD [noalign] (* 16 *)
-          si_addr*: C99types.Pvoid; (* 12+4 *)
-        END; (* 0+16 *)
-        sigbus*: RECORD [noalign] (* 16 *)
-          si_addr*: C99types.Pvoid; (* 12+4 *)
-        END; (* 0+16 *)
-        sigchld*: RECORD [noalign] (* 24 *)
-          si_pid*: pid_t; (* 12+4 *)
-          si_uid*: uid_t; (* 16+4 *)
-          si_status*: int; (* 20+4 *)
-        END; (* 0+24 *)
-        sigpoll*: RECORD [noalign] (* 16 *)
-          si_band*: long; (* 12+4 *)
-        END; (* 0+16 *)
-        other*: RECORD [noalign] (* 24 *)
-          si_value*: union_sigval; (* 20+4 *)
-        END; (* 0+24 *)
-      END; (* 12+24 *)
+      info*: RECORD [union] (* 12 *)
+        sigill*: RECORD [noalign] (* 4 *)
+          si_addr*: PosixCtypes.Pvoid; (* 0+4 *)
+        END; (* 0+4 *)
+        sigfpe*: RECORD [noalign] (* 4 *)
+          si_addr*: PosixCtypes.Pvoid; (* 0+4 *)
+        END; (* 0+4 *)
+        sigsegv*: RECORD [noalign] (* 4 *)
+          si_addr*: PosixCtypes.Pvoid; (* 0+4 *)
+        END; (* 0+4 *)
+        sigbus*: RECORD [noalign] (* 4 *)
+          si_addr*: PosixCtypes.Pvoid; (* 0+4 *)
+        END; (* 0+4 *)
+        sigchld*: RECORD [noalign] (* 12 *)
+          si_pid*: pid_t; (* 0+4 *)
+          si_uid*: uid_t; (* 4+4 *)
+          si_status*: int; (* 8+4 *)
+        END; (* 0+12 *)
+        sigpoll*: RECORD [noalign] (* 4 *)
+          si_band*: long; (* 0+4 *)
+        END; (* 0+4 *)
+        other*: RECORD [noalign] (* 4 *)
+          si_value*: union_sigval; (* 0+4 *)
+        END; (* 8+4 *)
+      END; (* 12+12 *)
     END;
 
   CONST
@@ -294,4 +333,4 @@ MODULE C99signal ['signal.h'];
   PROCEDURE [ccall] sigwait* (IN set: sigset_t; VAR sig: int): int;
   PROCEDURE [ccall] sigwaitinfo* (IN set: sigset_t; VAR [nil] info: siginfo_t): int;
 
-END C99signal.
+END PosixCsignal.