Skip to contentSkip to conversation

remove duplicate header files fcntl.h

PATCH In review wenyehai via ltp 2 participants 2 messages Dec 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 remove duplicate header files fcntl.h

testcases: remove duplicate header files fcntl.h

---
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
index b3ab1b94e..58115ea43 100644
@@ -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
index a4af38858..c0c6a263c 100644
@@ -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
index 151edb841..418c07c45 100644
@@ -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
index 78b26ab56..1900c076b 100644
@@ -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
index c60e160f4..383796c90 100644
@@ -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
index 9f4ecded7..a658f07db 100644
@@ -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
index d19f3f3b8..701623dd7 100644
@@ -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
index ffb9fea74..587476454 100644
@@ -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
index a7a5e136c..27f464389 100644
@@ -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
index fd284fd7e..900308980 100644
@@ -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
index 3a68b51c8..3442114ff 100644
@@ -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
index c5a071def..8eb71486f 100644
@@ -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
index 1d187c28b..d6b07fc41 100644
@@ -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
index c52af22dd..a624554c5 100644
@@ -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
index fae2ab4f7..2f1b0229e 100644
@@ -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
index f1203a495..f1b50fd4e 100644
@@ -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
index b074214f7..3b0c7678e 100644
@@ -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
index 84b4a3ba0..566c76b1f 100644
@@ -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
index 2e13c7732..bff2c6a4e 100644
@@ -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
index 6c5054bbc..7e6afda92 100644
@@ -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
index 0d832cb59..f78a3643c 100644
@@ -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
index 0441c3add..daed419fb 100644
@@ -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
index e2eefda04..2ce119033 100644
@@ -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
index 7e816f26b..2846fd07f 100644
@@ -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
index 4c7eda2d6..f5240401a 100644
@@ -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
index 432007e4d..37894351f 100644
@@ -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
index 817e21729..9df4b7086 100644
@@ -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
index 9f859735f..960c7ce98 100644
@@ -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
index afe9dc129..59fd942d5 100644
@@ -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
index 72ca0e816..e23945c53 100644
@@ -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
index db2ac1e0c..cee6ed7d9 100644
@@ -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
index c54440660..88742b806 100644
@@ -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
index e288251b3..41aa94636 100644
@@ -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
index 1d1b66d12..36ecc08ef 100644
@@ -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
index 39c407cb8..0135b6f7e 100644
@@ -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
#1 lore raw

Hi Wen

Thanks, merged!

Best Regards
Yang Xu

Quoted 467 lines

testcases: remove duplicate header files fcntl.h

---
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
index b3ab1b94e..58115ea43 100644
@@ -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
index a4af38858..c0c6a263c 100644
@@ -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
index 151edb841..418c07c45 100644
@@ -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
index 78b26ab56..1900c076b 100644
@@ -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
index c60e160f4..383796c90 100644
@@ -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
index 9f4ecded7..a658f07db 100644
@@ -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
index d19f3f3b8..701623dd7 100644
@@ -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
index ffb9fea74..587476454 100644
@@ -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
index a7a5e136c..27f464389 100644
@@ -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
index fd284fd7e..900308980 100644
@@ -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
index 3a68b51c8..3442114ff 100644
@@ -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
index c5a071def..8eb71486f 100644
@@ -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
index 1d187c28b..d6b07fc41 100644
@@ -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
index c52af22dd..a624554c5 100644
@@ -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
index fae2ab4f7..2f1b0229e 100644
@@ -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
index f1203a495..f1b50fd4e 100644
@@ -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
index b074214f7..3b0c7678e 100644
@@ -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
index 84b4a3ba0..566c76b1f 100644
@@ -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
index 2e13c7732..bff2c6a4e 100644
@@ -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
index 6c5054bbc..7e6afda92 100644
@@ -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
index 0d832cb59..f78a3643c 100644
@@ -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
index 0441c3add..daed419fb 100644
@@ -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
index e2eefda04..2ce119033 100644
@@ -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
index 7e816f26b..2846fd07f 100644
@@ -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
index 4c7eda2d6..f5240401a 100644
@@ -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
index 432007e4d..37894351f 100644
@@ -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
index 817e21729..9df4b7086 100644
@@ -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
index 9f859735f..960c7ce98 100644
@@ -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
index afe9dc129..59fd942d5 100644
@@ -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
index 72ca0e816..e23945c53 100644
@@ -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
index db2ac1e0c..cee6ed7d9 100644
@@ -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
index c54440660..88742b806 100644
@@ -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
index e288251b3..41aa94636 100644
@@ -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
index 1d1b66d12..36ecc08ef 100644
@@ -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
index 39c407cb8..0135b6f7e 100644
@@ -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