Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/c063 PR/51804: Ngie Cooper: Sort headers; inc...



details:   https://anonhg.NetBSD.org/src/rev/1436b3794005
branches:  trunk
changeset: 820471:1436b3794005
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 10 15:13:56 2017 +0000

description:
PR/51804: Ngie Cooper: Sort headers; include <sys/stat.h>. On NetBSD,
<sys/stat.h> gets side-loaded from <sys/fcntl.h>. Should be fixed.

diffstat:

 tests/lib/libc/c063/t_faccessat.c  |  7 ++++---
 tests/lib/libc/c063/t_fchmodat.c   |  7 ++++---
 tests/lib/libc/c063/t_fchownat.c   |  7 ++++---
 tests/lib/libc/c063/t_fstatat.c    |  7 ++++---
 tests/lib/libc/c063/t_openat.c     |  7 ++++---
 tests/lib/libc/c063/t_readlinkat.c |  7 ++++---
 tests/lib/libc/c063/t_unlinkat.c   |  7 ++++---
 tests/lib/libc/c063/t_utimensat.c  |  9 +++++----
 8 files changed, 33 insertions(+), 25 deletions(-)

diffs (234 lines):

diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_faccessat.c
--- a/tests/lib/libc/c063/t_faccessat.c Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_faccessat.c Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_faccessat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_faccessat.c,v 1.3 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_faccessat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_faccessat.c,v 1.3 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,7 +41,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/faccessat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_fchmodat.c
--- a/tests/lib/libc/c063/t_fchmodat.c  Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_fchmodat.c  Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fchmodat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_fchmodat.c,v 1.3 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fchmodat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_fchmodat.c,v 1.3 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,7 +41,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/fchmodat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_fchownat.c
--- a/tests/lib/libc/c063/t_fchownat.c  Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_fchownat.c  Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fchownat.c,v 1.3 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_fchownat.c,v 1.4 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fchownat.c,v 1.3 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_fchownat.c,v 1.4 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -40,7 +42,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/fchownat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_fstatat.c
--- a/tests/lib/libc/c063/t_fstatat.c   Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_fstatat.c   Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fstatat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_fstatat.c,v 1.3 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fstatat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_fstatat.c,v 1.3 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,7 +41,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/fstatat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_openat.c
--- a/tests/lib/libc/c063/t_openat.c    Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_openat.c    Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_openat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_openat.c,v 1.3 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_openat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_openat.c,v 1.3 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,7 +41,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/openat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_readlinkat.c
--- a/tests/lib/libc/c063/t_readlinkat.c        Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_readlinkat.c        Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_readlinkat.c,v 1.3 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_readlinkat.c,v 1.4 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_readlinkat.c,v 1.3 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_readlinkat.c,v 1.4 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,7 +41,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/readlinkat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_unlinkat.c
--- a/tests/lib/libc/c063/t_unlinkat.c  Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_unlinkat.c  Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_unlinkat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_unlinkat.c,v 1.3 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_unlinkat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_unlinkat.c,v 1.3 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,7 +41,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #define DIR "dir"
 #define FILE "dir/unlinkat"
diff -r 7296a2b9b74d -r 1436b3794005 tests/lib/libc/c063/t_utimensat.c
--- a/tests/lib/libc/c063/t_utimensat.c Tue Jan 10 13:53:26 2017 +0000
+++ b/tests/lib/libc/c063/t_utimensat.c Tue Jan 10 15:13:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_utimensat.c,v 1.5 2013/03/17 04:46:06 jmmv Exp $ */
+/*     $NetBSD: t_utimensat.c,v 1.6 2017/01/10 15:13:56 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,8 +29,11 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_utimensat.c,v 1.5 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_utimensat.c,v 1.6 2017/01/10 15:13:56 christos Exp $");
 
+#include <sys/param.h>
+#include <sys/stat.h>
+#include <sys/time.h>
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -39,8 +42,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
-#include <sys/time.h>
 
 #define DIR "dir"
 #define FILE "dir/utimensat"



Home | Main Index | Thread Index | Old Index