]> granicus.if.org Git - strace/blobdiff - tests/lstat64.c
Update copyright headers
[strace] / tests / lstat64.c
index 4ffc7c9fe3c0a2b2f5fa02bd1238de1bf4b9698c..0c0cf8792e18729263d2a428fbf1ae988a62ec79 100644 (file)
@@ -1,11 +1,25 @@
+/*
+ * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2015-2018 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
 #include "tests.h"
-#include <sys/syscall.h>
+#include <asm/unistd.h>
 
-#undef TEST_SYSCALL_NAME
 #ifdef __NR_lstat64
-# define TEST_SYSCALL_NAME lstat64
+
+# define TEST_SYSCALL_NR __NR_lstat64
+# define TEST_SYSCALL_STR "lstat64"
 # define STRUCT_STAT struct stat64
-# define SAMPLE_SIZE ((libc_off_t) 43147718418)
-#endif
+# define STRUCT_STAT_STR "struct stat64"
+# define STRUCT_STAT_IS_STAT64 1
+# include "lstatx.c"
 
-#include "lstatx.c"
+#else
+
+SKIP_MAIN_UNDEFINED("__NR_lstat64")
+
+#endif