Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sort refactor includes, add <sys/stat.h>



details:   https://anonhg.NetBSD.org/src/rev/41aeb5c5fe07
branches:  trunk
changeset: 820519:41aeb5c5fe07
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 10 21:13:45 2017 +0000

description:
refactor includes, add <sys/stat.h>

diffstat:

 usr.bin/sort/sort.c |  28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diffs (57 lines):

diff -r 6072c0d6d6f3 -r 41aeb5c5fe07 usr.bin/sort/sort.c
--- a/usr.bin/sort/sort.c       Tue Jan 10 21:08:48 2017 +0000
+++ b/usr.bin/sort/sort.c       Tue Jan 10 21:13:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sort.c,v 1.63 2016/06/01 08:24:03 wiz Exp $    */
+/*     $NetBSD: sort.c,v 1.64 2017/01/10 21:13:45 christos Exp $       */
 
 /*-
  * Copyright (c) 2000-2003 The NetBSD Foundation, Inc.
@@ -60,34 +60,34 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+#include <sys/cdefs.h>
+#ifndef lint
+__COPYRIGHT("@(#) Copyright (c) 1993\
+ The Regents of the University of California.  All rights reserved.");
+#endif /* not lint */
+__RCSID("$NetBSD: sort.c,v 1.64 2017/01/10 21:13:45 christos Exp $");
 
 /* Sort sorts a file using an optional user-defined key.
  * Sort uses radix sort for internal sorting, and allows
  * a choice of merge sort and radix sort for external sorting.
  */
 
-#include <util.h>
-#include "sort.h"
-#include "fsort.h"
-#include "pathnames.h"
-
-#ifndef lint
-__COPYRIGHT("@(#) Copyright (c) 1993\
- The Regents of the University of California.  All rights reserved.");
-#endif /* not lint */
-
-__RCSID("$NetBSD: sort.c,v 1.63 2016/06/01 08:24:03 wiz Exp $");
-
 #include <sys/types.h>
 #include <sys/time.h>
+#include <sys/stat.h>
 #include <sys/resource.h>
 
+#include <locale.h>
 #include <paths.h>
 #include <signal.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <locale.h>
+#include <util.h>
+
+#include "sort.h"
+#include "fsort.h"
+#include "pathnames.h"
 
 int REC_D = '\n';
 u_char d_mask[NBINS];          /* flags for rec_d, field_d, <blank> */



Home | Main Index | Thread Index | Old Index