From 77d0069e522400b63c2182fcc5f852718e4e6f2c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 14:11:32 -0400 Subject: rename files that should never be compiled on their own to .h --- src/signal/SIGABRT.c | 14 -------------- src/signal/SIGABRT.h | 14 ++++++++++++++ src/signal/SIGFPE.c | 12 ------------ src/signal/SIGFPE.h | 12 ++++++++++++ src/signal/SIGILL.c | 12 ------------ src/signal/SIGINT.h | 12 ++++++++++++ src/signal/SIGSEGV.c | 12 ------------ src/signal/SIGSEGV.h | 12 ++++++++++++ src/signal/SIGTERM.c | 13 ------------- src/signal/SIGTERM.h | 13 +++++++++++++ src/signal/SIG_DFL.c | 12 ------------ src/signal/SIG_DFL.h | 12 ++++++++++++ src/signal/SIG_ERR.c | 12 ------------ src/signal/SIG_ERR.h | 12 ++++++++++++ src/signal/SIG_IGN.c | 12 ------------ src/signal/SIG_IGN.h | 12 ++++++++++++ src/signal/sig_atomic_t.c | 12 ------------ src/signal/sig_atomic_t.h | 12 ++++++++++++ 18 files changed, 111 insertions(+), 111 deletions(-) delete mode 100644 src/signal/SIGABRT.c create mode 100644 src/signal/SIGABRT.h delete mode 100644 src/signal/SIGFPE.c create mode 100644 src/signal/SIGFPE.h delete mode 100644 src/signal/SIGILL.c create mode 100644 src/signal/SIGINT.h delete mode 100644 src/signal/SIGSEGV.c create mode 100644 src/signal/SIGSEGV.h delete mode 100644 src/signal/SIGTERM.c create mode 100644 src/signal/SIGTERM.h delete mode 100644 src/signal/SIG_DFL.c create mode 100644 src/signal/SIG_DFL.h delete mode 100644 src/signal/SIG_ERR.c create mode 100644 src/signal/SIG_ERR.h delete mode 100644 src/signal/SIG_IGN.c create mode 100644 src/signal/SIG_IGN.h delete mode 100644 src/signal/sig_atomic_t.c create mode 100644 src/signal/sig_atomic_t.h (limited to 'src/signal') diff --git a/src/signal/SIGABRT.c b/src/signal/SIGABRT.c deleted file mode 100644 index 918a1f5d..00000000 --- a/src/signal/SIGABRT.c +++ /dev/null @@ -1,14 +0,0 @@ -#define SIGABRT (6) - -/** abnormal termination **/ - -/*** -is a signal indicating that the program is being terminated abnormally, -such as when FUNCTION(abort) is called. -***/ - -/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */ - -/* -STDC(1) -*/ diff --git a/src/signal/SIGABRT.h b/src/signal/SIGABRT.h new file mode 100644 index 00000000..918a1f5d --- /dev/null +++ b/src/signal/SIGABRT.h @@ -0,0 +1,14 @@ +#define SIGABRT (6) + +/** abnormal termination **/ + +/*** +is a signal indicating that the program is being terminated abnormally, +such as when FUNCTION(abort) is called. +***/ + +/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */ + +/* +STDC(1) +*/ diff --git a/src/signal/SIGFPE.c b/src/signal/SIGFPE.c deleted file mode 100644 index b4d56e09..00000000 --- a/src/signal/SIGFPE.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SIGFPE (4) - -/** floating point exception **/ - -/*** -is a signal that indicates an error resulting from invalid arithmetic -operations, such as division by zero or overflows. -***/ - -/* -STDC(1) -*/ diff --git a/src/signal/SIGFPE.h b/src/signal/SIGFPE.h new file mode 100644 index 00000000..b4d56e09 --- /dev/null +++ b/src/signal/SIGFPE.h @@ -0,0 +1,12 @@ +#define SIGFPE (4) + +/** floating point exception **/ + +/*** +is a signal that indicates an error resulting from invalid arithmetic +operations, such as division by zero or overflows. +***/ + +/* +STDC(1) +*/ diff --git a/src/signal/SIGILL.c b/src/signal/SIGILL.c deleted file mode 100644 index b1ae8219..00000000 --- a/src/signal/SIGILL.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SIGILL (5) - -/** illegal instruction **/ - -/*** -is a signal indicating that the program has attempted to execute an illegal -or improperly formed instruction. -***/ - -/* -STDC(1) -*/ diff --git a/src/signal/SIGINT.h b/src/signal/SIGINT.h new file mode 100644 index 00000000..b1ae8219 --- /dev/null +++ b/src/signal/SIGINT.h @@ -0,0 +1,12 @@ +#define SIGILL (5) + +/** illegal instruction **/ + +/*** +is a signal indicating that the program has attempted to execute an illegal +or improperly formed instruction. +***/ + +/* +STDC(1) +*/ diff --git a/src/signal/SIGSEGV.c b/src/signal/SIGSEGV.c deleted file mode 100644 index dfb5adf1..00000000 --- a/src/signal/SIGSEGV.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SIGSEGV (7) - -/** segmentation fault **/ - -/*** -is a signal that indicates the program is attempting to access an invalid -memory address. -***/ - -/* -STDC(1) -*/ diff --git a/src/signal/SIGSEGV.h b/src/signal/SIGSEGV.h new file mode 100644 index 00000000..dfb5adf1 --- /dev/null +++ b/src/signal/SIGSEGV.h @@ -0,0 +1,12 @@ +#define SIGSEGV (7) + +/** segmentation fault **/ + +/*** +is a signal that indicates the program is attempting to access an invalid +memory address. +***/ + +/* +STDC(1) +*/ diff --git a/src/signal/SIGTERM.c b/src/signal/SIGTERM.c deleted file mode 100644 index 4e475279..00000000 --- a/src/signal/SIGTERM.c +++ /dev/null @@ -1,13 +0,0 @@ -#define SIGTERM (15) - -/** terminate **/ - -/*** -is a signal indicating that the system is requesting the program to terminate. -***/ - -/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */ - -/* -STDC(1) -*/ diff --git a/src/signal/SIGTERM.h b/src/signal/SIGTERM.h new file mode 100644 index 00000000..4e475279 --- /dev/null +++ b/src/signal/SIGTERM.h @@ -0,0 +1,13 @@ +#define SIGTERM (15) + +/** terminate **/ + +/*** +is a signal indicating that the system is requesting the program to terminate. +***/ + +/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */ + +/* +STDC(1) +*/ diff --git a/src/signal/SIG_DFL.c b/src/signal/SIG_DFL.c deleted file mode 100644 index e067921a..00000000 --- a/src/signal/SIG_DFL.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SIG_DFL ((void(*)(int))-1) - -/** default signal action **/ - -/*** -is used as the ARGUMENT(func) argument to FUNCTION(signal) to indicate that -the default signal action should occur. -***/ - -/* -STDC(1) -*/ diff --git a/src/signal/SIG_DFL.h b/src/signal/SIG_DFL.h new file mode 100644 index 00000000..e067921a --- /dev/null +++ b/src/signal/SIG_DFL.h @@ -0,0 +1,12 @@ +#define SIG_DFL ((void(*)(int))-1) + +/** default signal action **/ + +/*** +is used as the ARGUMENT(func) argument to FUNCTION(signal) to indicate that +the default signal action should occur. +***/ + +/* +STDC(1) +*/ diff --git a/src/signal/SIG_ERR.c b/src/signal/SIG_ERR.c deleted file mode 100644 index 62690293..00000000 --- a/src/signal/SIG_ERR.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SIG_ERR ((void(*)(int))-2) - -/** error setting signal handler **/ - -/*** -is a sentinal value returned by FUNCTION(signal) to indicate that an error -occurred. -***/ - -/* -STDC(1) -*/ diff --git a/src/signal/SIG_ERR.h b/src/signal/SIG_ERR.h new file mode 100644 index 00000000..62690293 --- /dev/null +++ b/src/signal/SIG_ERR.h @@ -0,0 +1,12 @@ +#define SIG_ERR ((void(*)(int))-2) + +/** error setting signal handler **/ + +/*** +is a sentinal value returned by FUNCTION(signal) to indicate that an error +occurred. +***/ + +/* +STDC(1) +*/ diff --git a/src/signal/SIG_IGN.c b/src/signal/SIG_IGN.c deleted file mode 100644 index ad229f0d..00000000 --- a/src/signal/SIG_IGN.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SIG_IGN ((void(*)(int))-3) - -/** ignore signal **/ - -/*** -can be used as the ARGUMENT(func) argument in a call to FUNCTION(signal) to -ignore the specified signal. -***/ - -/* -STDC(1) -*/ diff --git a/src/signal/SIG_IGN.h b/src/signal/SIG_IGN.h new file mode 100644 index 00000000..ad229f0d --- /dev/null +++ b/src/signal/SIG_IGN.h @@ -0,0 +1,12 @@ +#define SIG_IGN ((void(*)(int))-3) + +/** ignore signal **/ + +/*** +can be used as the ARGUMENT(func) argument in a call to FUNCTION(signal) to +ignore the specified signal. +***/ + +/* +STDC(1) +*/ diff --git a/src/signal/sig_atomic_t.c b/src/signal/sig_atomic_t.c deleted file mode 100644 index c881018c..00000000 --- a/src/signal/sig_atomic_t.c +++ /dev/null @@ -1,12 +0,0 @@ -typedef volatile int sig_atomic_t; - -/** non-interruptible type **/ - -/*** -is a type of object that can be used atomically even in the presence of interrupts. -***/ - -/* -TYPEDEF(integer) -STDC(1) -*/ diff --git a/src/signal/sig_atomic_t.h b/src/signal/sig_atomic_t.h new file mode 100644 index 00000000..c881018c --- /dev/null +++ b/src/signal/sig_atomic_t.h @@ -0,0 +1,12 @@ +typedef volatile int sig_atomic_t; + +/** non-interruptible type **/ + +/*** +is a type of object that can be used atomically even in the presence of interrupts. +***/ + +/* +TYPEDEF(integer) +STDC(1) +*/ -- cgit v1.2.1