remove duplicate header files fcntl.h
PATCH v3 1/1 remove duplicate header files fcntl.h
testcases: remove duplicate header files fcntl.h
Signed-off-by Yehai Wen <[email protected]>
---v2->v3: re-make patch to solve patching failure
testcases/kernel/syscalls/accept4/accept4_01.c | 1 - testcases/kernel/syscalls/eventfd2/eventfd2_01.c | 1 - testcases/kernel/syscalls/eventfd2/eventfd2_02.c | 1 - testcases/kernel/syscalls/execveat/execveat03.c | 1 - testcases/kernel/syscalls/fallocate/fallocate01.c | 1 - testcases/kernel/syscalls/fchownat/fchownat01.c | 1 - testcases/kernel/syscalls/fchownat/fchownat02.c | 1 - testcases/kernel/syscalls/fcntl/fcntl29.c | 1 - testcases/kernel/syscalls/fcntl/fcntl30.c | 1 - testcases/kernel/syscalls/fcntl/fcntl31.c | 1 - testcases/kernel/syscalls/fcntl/fcntl34.c | 1 - testcases/kernel/syscalls/fcntl/fcntl35.c | 1 - testcases/kernel/syscalls/fcntl/fcntl36.c | 1 - testcases/kernel/syscalls/fcntl/fcntl37.c | 1 - testcases/kernel/syscalls/fcntl/fcntl38.c | 1 - testcases/kernel/syscalls/inotify_init/inotify_init1_01.c | 1 - testcases/kernel/syscalls/inotify_init/inotify_init1_02.c | 1 - testcases/kernel/syscalls/linkat/linkat02.c | 1 - testcases/kernel/syscalls/mknodat/mknodat01.c | 1 - testcases/kernel/syscalls/mknodat/mknodat02.c | 1 - testcases/kernel/syscalls/open/open14.c | 1 - testcases/kernel/syscalls/openat/openat01.c | 1 - testcases/kernel/syscalls/openat/openat02.c | 1 - testcases/kernel/syscalls/openat/openat03.c | 1 - testcases/kernel/syscalls/pipe/pipe12.c | 1 - testcases/kernel/syscalls/pipe2/pipe2_04.c | 1 - testcases/kernel/syscalls/renameat/renameat01.c | 1 - testcases/kernel/syscalls/signalfd4/signalfd4_01.c | 1 - testcases/kernel/syscalls/socket/socket02.c | 1 - testcases/kernel/syscalls/socketpair/socketpair02.c | 1 - testcases/kernel/syscalls/tee/tee01.c | 1 - testcases/kernel/syscalls/timerfd/timerfd02.c | 1 - testcases/kernel/syscalls/timerfd/timerfd03.c | 1 - testcases/kernel/syscalls/vmsplice/vmsplice01.c | 1 - testcases/kernel/syscalls/vmsplice/vmsplice02.c | 2 -- 35 files changed, 36 deletions(-)
testcases/kernel/syscalls/accept4/accept4_01.c +0 -1
@@ -13,7 +13,6 @@#include <sys/socket.h> #include <netinet/in.h> #include <stdlib.h> -#include <fcntl.h> #include <stdio.h> #include <string.h> #include <errno.h>
testcases/kernel/syscalls/eventfd2/eventfd2_01.c +0 -1
@@ -53,7 +53,6 @@/* Ported to LTP */ /* - Jan 08 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h>
testcases/kernel/syscalls/eventfd2/eventfd2_02.c +0 -1
@@ -50,7 +50,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h>
testcases/kernel/syscalls/execveat/execveat03.c +0 -1
@@ -29,7 +29,6 @@#include <string.h> #include <sys/syscall.h> #include <sys/mount.h> -#include <fcntl.h> #include "tst_test.h" #include "lapi/execveat.h" #include "lapi/fcntl.h"
testcases/kernel/syscalls/fallocate/fallocate01.c +0 -1
@@ -93,7 +93,6 @@#include <errno.h> #include <sys/stat.h> #include <sys/types.h> -#include <fcntl.h> #include <sys/syscall.h> #include <unistd.h> #include <inttypes.h>
testcases/kernel/syscalls/fchownat/fchownat01.c +0 -1
@@ -26,7 +26,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h>
testcases/kernel/syscalls/fchownat/fchownat02.c +0 -1
@@ -24,7 +24,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h>
testcases/kernel/syscalls/fcntl/fcntl29.c +0 -1
@@ -24,7 +24,6 @@#include <stdio.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/types.h>
testcases/kernel/syscalls/fcntl/fcntl30.c +0 -1
@@ -25,7 +25,6 @@#include <stdio.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/types.h>
testcases/kernel/syscalls/fcntl/fcntl31.c +0 -1
@@ -25,7 +25,6 @@#include <stdio.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/types.h>
testcases/kernel/syscalls/fcntl/fcntl34.c +0 -1
@@ -7,7 +7,6 @@#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <fcntl.h> #include <pthread.h> #include <sched.h>
testcases/kernel/syscalls/fcntl/fcntl35.c +0 -1
@@ -26,7 +26,6 @@#include <sys/types.h> #include <pwd.h> #include <unistd.h> -#include <fcntl.h> #include <stdlib.h> #include "lapi/fcntl.h"
testcases/kernel/syscalls/fcntl/fcntl36.c +0 -1
@@ -34,7 +34,6 @@#include <unistd.h> #include <stdio.h> #include <stdlib.h> -#include <fcntl.h> #include <pthread.h> #include <sched.h> #include <errno.h>
testcases/kernel/syscalls/fcntl/fcntl37.c +0 -1
@@ -14,7 +14,6 @@*/ #include <unistd.h> -#include <fcntl.h> #include <sys/types.h> #include <limits.h> #include <stdlib.h>
testcases/kernel/syscalls/fcntl/fcntl38.c +0 -1
@@ -8,7 +8,6 @@* Check that dnotify event is reported to both parent and subdir */ -#include <fcntl.h> #include <signal.h> #include <stdio.h> #include <unistd.h>
testcases/kernel/syscalls/inotify_init/inotify_init1_01.c +0 -1
@@ -53,7 +53,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h>
testcases/kernel/syscalls/inotify_init/inotify_init1_02.c +0 -1
@@ -50,7 +50,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h>
testcases/kernel/syscalls/linkat/linkat02.c +0 -1
@@ -21,7 +21,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h>
testcases/kernel/syscalls/mknodat/mknodat01.c +0 -1
@@ -27,7 +27,6 @@#define _GNU_SOURCE#include <sys/types.h> -#include <fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <errno.h>
testcases/kernel/syscalls/mknodat/mknodat02.c +0 -1
@@ -27,7 +27,6 @@#define _GNU_SOURCE#include <sys/types.h> -#include <fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <errno.h>
testcases/kernel/syscalls/open/open14.c +0 -1
@@ -22,7 +22,6 @@#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <fcntl.h> #include <errno.h> #include "test.h"
testcases/kernel/syscalls/openat/openat01.c +0 -1
@@ -28,7 +28,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <string.h>
testcases/kernel/syscalls/openat/openat02.c +0 -1
@@ -38,7 +38,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <sys/wait.h> #include <stdlib.h>
testcases/kernel/syscalls/openat/openat03.c +0 -1
@@ -22,7 +22,6 @@#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <fcntl.h> #include <errno.h> #include "test.h"
testcases/kernel/syscalls/pipe/pipe12.c +0 -1
@@ -11,7 +11,6 @@#define _GNU_SOURCE#include <unistd.h> #include <stdlib.h> -#include <fcntl.h> #include "tst_test.h" #include "lapi/fcntl.h"
testcases/kernel/syscalls/pipe2/pipe2_04.c +0 -1
@@ -11,7 +11,6 @@#define _GNU_SOURCE#include <stdlib.h> #include <features.h> -#include <fcntl.h> #include <unistd.h> #include <stdio.h> #include "lapi/fcntl.h"
testcases/kernel/syscalls/renameat/renameat01.c +0 -1
@@ -41,7 +41,6 @@#include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> -#include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <string.h>
testcases/kernel/syscalls/signalfd4/signalfd4_01.c +0 -1
@@ -54,7 +54,6 @@/* Ported to LTP */ /* - Jan 08 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <signal.h> #include <stdio.h> #include <unistd.h>
testcases/kernel/syscalls/socket/socket02.c +0 -1
@@ -12,7 +12,6 @@* in socket() in kernel 2.6.27. */ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <netinet/in.h>
testcases/kernel/syscalls/socketpair/socketpair02.c +0 -1
@@ -13,7 +13,6 @@*/ #include <errno.h> -#include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <unistd.h>
testcases/kernel/syscalls/tee/tee01.c +0 -1
@@ -11,7 +11,6 @@#include <string.h> #include <signal.h> #include <sys/types.h> -#include <fcntl.h> #include "tst_test.h" #include "lapi/fcntl.h"
testcases/kernel/syscalls/timerfd/timerfd02.c +0 -1
@@ -54,7 +54,6 @@/* - Jan 08 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <time.h> #include <unistd.h>
testcases/kernel/syscalls/timerfd/timerfd03.c +0 -1
@@ -50,7 +50,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata <[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <time.h> #include <unistd.h>
testcases/kernel/syscalls/vmsplice/vmsplice01.c +0 -1
@@ -11,7 +11,6 @@#include <string.h> #include <signal.h> #include <sys/types.h> -#include <fcntl.h> #include <sys/poll.h> #include "tst_test.h"
testcases/kernel/syscalls/vmsplice/vmsplice02.c +0 -2
@@ -18,9 +18,7 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> -#include <fcntl.h> #include <sys/uio.h> #include <limits.h>
--
2.17.1
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Wen
Thanks, merged!
Best Regards
Yang Xu
Quoted 467 lines
testcases: remove duplicate header files
fcntl.hSigned-off-by Yehai Wen<[email protected]>---
v2->v3: re-make patch to solve patching failuretestcases/kernel/syscalls/accept4/accept4_01.c | 1 - testcases/kernel/syscalls/eventfd2/eventfd2_01.c | 1 - testcases/kernel/syscalls/eventfd2/eventfd2_02.c | 1 - testcases/kernel/syscalls/execveat/execveat03.c | 1 - testcases/kernel/syscalls/fallocate/fallocate01.c | 1 - testcases/kernel/syscalls/fchownat/fchownat01.c | 1 - testcases/kernel/syscalls/fchownat/fchownat02.c | 1 - testcases/kernel/syscalls/fcntl/fcntl29.c | 1 - testcases/kernel/syscalls/fcntl/fcntl30.c | 1 - testcases/kernel/syscalls/fcntl/fcntl31.c | 1 - testcases/kernel/syscalls/fcntl/fcntl34.c | 1 - testcases/kernel/syscalls/fcntl/fcntl35.c | 1 - testcases/kernel/syscalls/fcntl/fcntl36.c | 1 - testcases/kernel/syscalls/fcntl/fcntl37.c | 1 - testcases/kernel/syscalls/fcntl/fcntl38.c | 1 - testcases/kernel/syscalls/inotify_init/inotify_init1_01.c | 1 - testcases/kernel/syscalls/inotify_init/inotify_init1_02.c | 1 - testcases/kernel/syscalls/linkat/linkat02.c | 1 - testcases/kernel/syscalls/mknodat/mknodat01.c | 1 - testcases/kernel/syscalls/mknodat/mknodat02.c | 1 - testcases/kernel/syscalls/open/open14.c | 1 - testcases/kernel/syscalls/openat/openat01.c | 1 - testcases/kernel/syscalls/openat/openat02.c | 1 - testcases/kernel/syscalls/openat/openat03.c | 1 - testcases/kernel/syscalls/pipe/pipe12.c | 1 - testcases/kernel/syscalls/pipe2/pipe2_04.c | 1 - testcases/kernel/syscalls/renameat/renameat01.c | 1 - testcases/kernel/syscalls/signalfd4/signalfd4_01.c | 1 - testcases/kernel/syscalls/socket/socket02.c | 1 - testcases/kernel/syscalls/socketpair/socketpair02.c | 1 - testcases/kernel/syscalls/tee/tee01.c | 1 - testcases/kernel/syscalls/timerfd/timerfd02.c | 1 - testcases/kernel/syscalls/timerfd/timerfd03.c | 1 - testcases/kernel/syscalls/vmsplice/vmsplice01.c | 1 - testcases/kernel/syscalls/vmsplice/vmsplice02.c | 2 -- 35 files changed, 36 deletions(-)testcases/kernel/syscalls/accept4/accept4_01.c +0
-1@@ -13,7 +13,6 @@#include <sys/socket.h> #include <netinet/in.h> #include <stdlib.h> -#include <fcntl.h> #include <stdio.h> #include <string.h> #include <errno.h> testcases/kernel/syscalls/eventfd2/eventfd2_01.c +0
-1@@ -53,7 +53,6 @@/* Ported to LTP */ /* - Jan 08 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h> testcases/kernel/syscalls/eventfd2/eventfd2_02.c +0
-1@@ -50,7 +50,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h> testcases/kernel/syscalls/execveat/execveat03.c +0
-1@@ -29,7 +29,6 @@#include <string.h> #include <sys/syscall.h> #include <sys/mount.h> -#include <fcntl.h> #include "tst_test.h" #include "lapi/execveat.h" #include "lapi/fcntl.h" testcases/kernel/syscalls/fallocate/fallocate01.c +0
-1@@ -93,7 +93,6 @@#include <errno.h> #include <sys/stat.h> #include <sys/types.h> -#include <fcntl.h> #include <sys/syscall.h> #include <unistd.h> #include <inttypes.h> testcases/kernel/syscalls/fchownat/fchownat01.c +0
-1@@ -26,7 +26,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> testcases/kernel/syscalls/fchownat/fchownat02.c +0
-1@@ -24,7 +24,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> testcases/kernel/syscalls/fcntl/fcntl29.c +0
-1@@ -24,7 +24,6 @@#include <stdio.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/types.h> testcases/kernel/syscalls/fcntl/fcntl30.c +0
-1@@ -25,7 +25,6 @@#include <stdio.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/types.h> testcases/kernel/syscalls/fcntl/fcntl31.c +0
-1@@ -25,7 +25,6 @@#include <stdio.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/types.h> testcases/kernel/syscalls/fcntl/fcntl34.c +0
-1@@ -7,7 +7,6 @@#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <fcntl.h> #include <pthread.h> #include <sched.h> testcases/kernel/syscalls/fcntl/fcntl35.c +0
-1@@ -26,7 +26,6 @@#include <sys/types.h> #include <pwd.h> #include <unistd.h> -#include <fcntl.h> #include <stdlib.h> #include "lapi/fcntl.h" testcases/kernel/syscalls/fcntl/fcntl36.c +0
-1@@ -34,7 +34,6 @@#include <unistd.h> #include <stdio.h> #include <stdlib.h> -#include <fcntl.h> #include <pthread.h> #include <sched.h> #include <errno.h> testcases/kernel/syscalls/fcntl/fcntl37.c +0
-1@@ -14,7 +14,6 @@*/ #include <unistd.h> -#include <fcntl.h> #include <sys/types.h> #include <limits.h> #include <stdlib.h> testcases/kernel/syscalls/fcntl/fcntl38.c +0
-1@@ -8,7 +8,6 @@* Check that dnotify event is reported to both parent and subdir */ -#include <fcntl.h> #include <signal.h> #include <stdio.h> #include <unistd.h> testcases/kernel/syscalls/inotify_init/inotify_init1_01.c +0
-1@@ -53,7 +53,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h> testcases/kernel/syscalls/inotify_init/inotify_init1_02.c +0
-1@@ -50,7 +50,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/syscall.h> testcases/kernel/syscalls/linkat/linkat02.c +0
-1@@ -21,7 +21,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> testcases/kernel/syscalls/mknodat/mknodat01.c +0
-1@@ -27,7 +27,6 @@#define _GNU_SOURCE#include <sys/types.h> -#include <fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <errno.h> testcases/kernel/syscalls/mknodat/mknodat02.c +0
-1@@ -27,7 +27,6 @@#define _GNU_SOURCE#include <sys/types.h> -#include <fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <errno.h> testcases/kernel/syscalls/open/open14.c +0
-1@@ -22,7 +22,6 @@#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <fcntl.h> #include <errno.h> #include "test.h" testcases/kernel/syscalls/openat/openat01.c +0
-1@@ -28,7 +28,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <string.h> testcases/kernel/syscalls/openat/openat02.c +0
-1@@ -38,7 +38,6 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <sys/wait.h> #include <stdlib.h> testcases/kernel/syscalls/openat/openat03.c +0
-1@@ -22,7 +22,6 @@#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <fcntl.h> #include <errno.h> #include "test.h" testcases/kernel/syscalls/pipe/pipe12.c +0
-1@@ -11,7 +11,6 @@#define _GNU_SOURCE#include <unistd.h> #include <stdlib.h> -#include <fcntl.h> #include "tst_test.h" #include "lapi/fcntl.h" testcases/kernel/syscalls/pipe2/pipe2_04.c +0
-1@@ -11,7 +11,6 @@#define _GNU_SOURCE#include <stdlib.h> #include <features.h> -#include <fcntl.h> #include <unistd.h> #include <stdio.h> #include "lapi/fcntl.h" testcases/kernel/syscalls/renameat/renameat01.c +0
-1@@ -41,7 +41,6 @@#include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> -#include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <string.h> testcases/kernel/syscalls/signalfd4/signalfd4_01.c +0
-1@@ -54,7 +54,6 @@/* Ported to LTP */ /* - Jan 08 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <signal.h> #include <stdio.h> #include <unistd.h> testcases/kernel/syscalls/socket/socket02.c +0
-1@@ -12,7 +12,6 @@* in socket() in kernel 2.6.27. */ -#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <netinet/in.h> testcases/kernel/syscalls/socketpair/socketpair02.c +0
-1@@ -13,7 +13,6 @@*/ #include <errno.h> -#include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <unistd.h> testcases/kernel/syscalls/tee/tee01.c +0
-1@@ -11,7 +11,6 @@#include <string.h> #include <signal.h> #include <sys/types.h> -#include <fcntl.h> #include "tst_test.h" #include "lapi/fcntl.h" testcases/kernel/syscalls/timerfd/timerfd02.c +0
-1@@ -54,7 +54,6 @@/* - Jan 08 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <time.h> #include <unistd.h> testcases/kernel/syscalls/timerfd/timerfd03.c +0
-1@@ -50,7 +50,6 @@/* Ported to LTP */ /* - Jan 13 2009 - Subrata<[email protected]> */ /******************************************************************************/ -#include <fcntl.h> #include <stdio.h> #include <time.h> #include <unistd.h> testcases/kernel/syscalls/vmsplice/vmsplice01.c +0
-1@@ -11,7 +11,6 @@#include <string.h> #include <signal.h> #include <sys/types.h> -#include <fcntl.h> #include <sys/poll.h> #include "tst_test.h" testcases/kernel/syscalls/vmsplice/vmsplice02.c +0
-3@@ -18,9 +18,7 @@#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> -#include <fcntl.h> #include <sys/uio.h> #include <limits.h> --2.17.1
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp