aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 05:08:04 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 05:08:04 +0200
commit0a51f9cf8e8c65ff84b1cc8c24bf53e8af46612a (patch)
treecb47f568bce796da0769d5c01f34a8a805fc8fbb /include/sys
parentfix more errors (diff)
downloadslibc-0a51f9cf8e8c65ff84b1cc8c24bf53e8af46612a.tar.gz
slibc-0a51f9cf8e8c65ff84b1cc8c24bf53e8af46612a.tar.bz2
slibc-0a51f9cf8e8c65ff84b1cc8c24bf53e8af46612a.tar.xz
add incorrection headers that redirect with a warning
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/errno.h20
-rw-r--r--include/sys/fcntl.h20
-rw-r--r--include/sys/poll.h20
-rw-r--r--include/sys/signal.h20
-rw-r--r--include/sys/termios.h20
5 files changed, 100 insertions, 0 deletions
diff --git a/include/sys/errno.h b/include/sys/errno.h
new file mode 100644
index 0000000..9fb9a45
--- /dev/null
+++ b/include/sys/errno.h
@@ -0,0 +1,20 @@
+/**
+ * slibc — Yet another C library
+ * Copyright © 2015 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+# warning "Redirection incorrect #include of <sys/errno.h> to <errno.h>"
+#include <errno.h>
+
diff --git a/include/sys/fcntl.h b/include/sys/fcntl.h
new file mode 100644
index 0000000..b1199c3
--- /dev/null
+++ b/include/sys/fcntl.h
@@ -0,0 +1,20 @@
+/**
+ * slibc — Yet another C library
+ * Copyright © 2015 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+# warning "Redirection incorrect #include of <sys/fcntl.h> to <fcntl.h>"
+#include <fcntl.h>
+
diff --git a/include/sys/poll.h b/include/sys/poll.h
new file mode 100644
index 0000000..f985296
--- /dev/null
+++ b/include/sys/poll.h
@@ -0,0 +1,20 @@
+/**
+ * slibc — Yet another C library
+ * Copyright © 2015 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+# warning "Redirection incorrect #include of <sys/poll.h> to <poll.h>"
+#include <poll.h>
+
diff --git a/include/sys/signal.h b/include/sys/signal.h
new file mode 100644
index 0000000..7af5279
--- /dev/null
+++ b/include/sys/signal.h
@@ -0,0 +1,20 @@
+/**
+ * slibc — Yet another C library
+ * Copyright © 2015 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+# warning "Redirection incorrect #include of <sys/signal.h> to <signal.h>"
+#include <signal.h>
+
diff --git a/include/sys/termios.h b/include/sys/termios.h
new file mode 100644
index 0000000..63b3245
--- /dev/null
+++ b/include/sys/termios.h
@@ -0,0 +1,20 @@
+/**
+ * slibc — Yet another C library
+ * Copyright © 2015 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+# warning "Redirection incorrect #include of <sys/termios.h> to <termios.h>"
+#include <termios.h>
+