]> granicus.if.org Git - strace/commitdiff
Include <limits.h> instead of <sys/param.h>
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 11 Feb 2018 00:26:09 +0000 (00:26 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 11 Feb 2018 00:26:09 +0000 (00:26 +0000)
Do not include <sys/param.h> unnecessarily as it includes <signal.h>.

* pathtrace.c: Include <limits.h> instead of <sys/param.h>.
* strace.c: Likewise.
* syscall.c: Likewise.
* util.c: Likewise.
* tests/getcwd.c: Likewise.
* tests/group_req.c: Likewise.
* tests/inode_of_sockfd.c: Likewise.
* tests/ip_mreq.c: Likewise.
* tests/printpath-umovestr.c: Likewise.
* tests/qual_fault.c: Likewise.
* tests/test_printpath.c: Likewise.
* tests/umovestr3.c: Likewise.
* tests/net-y-unix.c: Do not include <sys/param.h>.
* tests/net-yy-unix.c: Likewise.

14 files changed:
pathtrace.c
strace.c
syscall.c
tests/getcwd.c
tests/group_req.c
tests/inode_of_sockfd.c
tests/ip_mreq.c
tests/net-y-unix.c
tests/net-yy-unix.c
tests/printpath-umovestr.c
tests/qual_fault.c
tests/test_printpath.c
tests/umovestr3.c
util.c

index 4297fb29793142406c23e5b5846bde27e3ed7305..811774220fcb79d83cdbe914700ffe87959c441e 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "defs.h"
-#include <sys/param.h>
+#include <limits.h>
 #include <poll.h>
 
 #include "syscall.h"
index 2091e4ebf937950a14464bb09acc919dd60f5da8..042c2eeaf3d558422698947e3f8a33a9fcf0f201 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -31,7 +31,7 @@
 
 #include "defs.h"
 #include <stdarg.h>
-#include <sys/param.h>
+#include <limits.h>
 #include <fcntl.h>
 #include <signal.h>
 #include <sys/resource.h>
index 4ef34f4b54b17316ef715dfa2e9aa0bcab6bcb51..df169259227fd19c270b0b22af9a5cd083aebdc5 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -36,7 +36,7 @@
 #include "native_defs.h"
 #include "nsig.h"
 #include "number_set.h"
-#include <sys/param.h>
+#include <limits.h>
 
 /* for struct iovec */
 #include <sys/uio.h>
index 0c32f8dd4c1d26b0f1f966041ac940aa70bdd799..2020df40f218a469586746c260aab088043385c4 100644 (file)
@@ -4,9 +4,9 @@
 
 #ifdef __NR_getcwd
 
+# include <limits.h>
 # include <stdio.h>
 # include <unistd.h>
-# include <sys/param.h>
 
 int
 main(void)
index 946fe5c0c3aa100c1f63f8400cf56f717b9c0c1a..e08573fb448c3aa07696c293c525a9a2cc1c3cf8 100644 (file)
@@ -33,9 +33,9 @@
 
 #if defined MCAST_JOIN_GROUP && defined MCAST_LEAVE_GROUP
 
+# include <limits.h>
 # include <stdio.h>
 # include <unistd.h>
-# include <sys/param.h>
 # include <sys/socket.h>
 # include <arpa/inet.h>
 
index b227f3069823049a06551a04e753e5f9639073c1..122dcea5470218a5726d038a98a3b31c327735de 100644 (file)
 
 #include "tests.h"
 #include <assert.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 unsigned long
 inode_of_sockfd(const int fd)
index 3f4648ca6e2f13ea7e07f89ddb305a02d3a1e5e3..405c0b6b7664d199f0808d55d826066582c3401d 100644 (file)
@@ -32,9 +32,9 @@
 #if defined IP_ADD_MEMBERSHIP && defined IPV6_ADD_MEMBERSHIP \
  && defined IPV6_JOIN_ANYCAST
 
+# include <limits.h>
 # include <stdio.h>
 # include <unistd.h>
-# include <sys/param.h>
 # include <sys/socket.h>
 # include <arpa/inet.h>
 # include <net/if.h>
index fbdf590063a5e90d6d94f982b2c14a7908d260fd..a04cc21d33a729366600de53fbb0837f3e8de137 100644 (file)
@@ -34,7 +34,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
index 21822db9f7a9d2aabe9bf32fd2a5d93794c39857..60c0d494dec3e2824e441bb1ef328fca7a9b4f28 100644 (file)
@@ -34,7 +34,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
index a7251e5edc793b78f429cf3589dbc6b40512973c..880dc0eee954a014e208fae8413618c3ab093c40 100644 (file)
@@ -29,8 +29,8 @@
 
 #include "tests.h"
 #include "test_ucopy.h"
+#include <limits.h>
 #include <stdio.h>
-#include <sys/param.h>
 
 int
 main(void)
index 05401dec344a178acb334053c0d16e74334cc178..fcfc610f2fd43d1e940afbbde039ff0a6117a7aa 100644 (file)
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/uio.h>
 #include <sys/wait.h>
index 5f482f25e90717456e2211529a1b147263e11b13..c3f738b90965e69ff85a2134adb559da99a7e798 100644 (file)
 
 #include "tests.h"
 
+#include <limits.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #include "test_ucopy.h"
 
index cf2fa7d4ff30d9d38b8c5c6f026cf079574ca6cf..1b4905e5f12ca1c308bb033181e72e3e6fef2774 100644 (file)
@@ -26,9 +26,9 @@
  */
 
 #include "tests.h"
+#include <limits.h>
 #include <stdio.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 int
 main(void)
diff --git a/util.c b/util.c
index a1e9621dcaf8a90b38e22ff75913c4849a32e621..10c202c0fc91243cd3462d8869ee65f4c78f2ffa 100644 (file)
--- a/util.c
+++ b/util.c
@@ -33,7 +33,7 @@
  */
 
 #include "defs.h"
-#include <sys/param.h>
+#include <limits.h>
 #include <fcntl.h>
 #include <stdarg.h>
 #ifdef HAVE_SYS_XATTR_H