Include <limits.h> instead of <sys/param.h>
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.
This commit is contained in:
parent
971df259c6
commit
f2bb704a92
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include "defs.h"
|
||||
#include <sys/param.h>
|
||||
#include <limits.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include "syscall.h"
|
||||
|
2
strace.c
2
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>
|
||||
|
@ -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>
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
#ifdef __NR_getcwd
|
||||
|
||||
# include <limits.h>
|
||||
# include <stdio.h>
|
||||
# include <unistd.h>
|
||||
# include <sys/param.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -29,11 +29,11 @@
|
||||
|
||||
#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)
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -29,8 +29,8 @@
|
||||
|
||||
#include "tests.h"
|
||||
#include "test_ucopy.h"
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
|
@ -33,11 +33,11 @@
|
||||
#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>
|
||||
|
@ -29,10 +29,10 @@
|
||||
|
||||
#include "tests.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "test_ucopy.h"
|
||||
|
||||
|
@ -26,9 +26,9 @@
|
||||
*/
|
||||
|
||||
#include "tests.h"
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user