]> granicus.if.org Git - strace/commitdiff
tests: do not use defs.h and syscall.h
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 30 Dec 2016 09:43:12 +0000 (09:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 30 Dec 2016 09:55:04 +0000 (09:55 +0000)
* tests/generate_scno.c: Include "tests.h", "sysent.h", <stdio.h>,
<string.h>, and <asm/unistd.h> instead of "defs.h" and "syscall.h".
* tests/ksysent.c: Likewise.
* tests/nsyscalls.c: Include "tests.h", "sysent.h", <errno.h>,
<stdio.h>, and <unistd.h> instead of "defs.h" and "syscall.h".

tests/generate_scno.c
tests/ksysent.c
tests/nsyscalls.c

index 1261420cf098e98cb3af04af2acff71b3cf75661..66e8036cd634321d69924a3f7bb5b1836cb90824 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * Generate scno.h file.
+ *
  * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "defs.h"
-#include "syscall.h"
+#include "tests.h"
+#include "sysent.h"
+#include <stdio.h>
+#include <string.h>
+#include <asm/unistd.h>
 
 #define TD 0
 #define TF 0
index 9b7bf49b2a71f04f07a285bb86e320aafa031e3d..8cac93ca52fdbfb187976799a18ac976a67ca236 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Validate syscallent.h file.
+ *
+ * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "defs.h"
-#include "syscall.h"
+#include "tests.h"
+#include "sysent.h"
+#include <stdio.h>
+#include <string.h>
+#include <asm/unistd.h>
 
 #define TD 0
 #define TF 0
index 9a4d72affdf93d9d21f047a64033b650b6ee9b85..aecf7aa7eabc02d2f5159035aab6e02f8fcb08d2 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "defs.h"
-#include "syscall.h"
+#include "tests.h"
+#include "sysent.h"
+#include <errno.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <asm/unistd.h>
 
 #define TD 0
 #define TF 0
@@ -48,8 +52,6 @@ static const struct_sysent syscallent[] = {
 #include "syscallent.h"
 };
 
-#include <asm/unistd.h>
-
 #if defined __X32_SYSCALL_BIT && defined __NR_read \
  && (__X32_SYSCALL_BIT & __NR_read) != 0
 # define SYSCALL_BIT __X32_SYSCALL_BIT