Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make provide missing FD_CLOEXEC for the havenots.



details:   https://anonhg.NetBSD.org/src/rev/6f1fd8d007f2
branches:  trunk
changeset: 813136:6f1fd8d007f2
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 17 15:32:38 2016 +0000

description:
provide missing FD_CLOEXEC for the havenots.

diffstat:

 usr.bin/make/arch.c  |  7 +++----
 usr.bin/make/job.c   |  7 +++----
 usr.bin/make/main.c  |  7 +++----
 usr.bin/make/make.h  |  7 ++++++-
 usr.bin/make/meta.c  |  3 +--
 usr.bin/make/parse.c |  7 +++----
 6 files changed, 19 insertions(+), 19 deletions(-)

diffs (182 lines):

diff -r 27ec8130985e -r 6f1fd8d007f2 usr.bin/make/arch.c
--- a/usr.bin/make/arch.c       Sun Jan 17 15:30:23 2016 +0000
+++ b/usr.bin/make/arch.c       Sun Jan 17 15:32:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arch.c,v 1.65 2016/01/09 00:55:17 christos Exp $       */
+/*     $NetBSD: arch.c,v 1.66 2016/01/17 15:32:38 christos Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: arch.c,v 1.65 2016/01/09 00:55:17 christos Exp $";
+static char rcsid[] = "$NetBSD: arch.c,v 1.66 2016/01/17 15:32:38 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)arch.c     8.2 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: arch.c,v 1.65 2016/01/09 00:55:17 christos Exp $");
+__RCSID("$NetBSD: arch.c,v 1.66 2016/01/17 15:32:38 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -136,7 +136,6 @@
 
 #include    <ar.h>
 #include    <ctype.h>
-#include    <fcntl.h>
 #include    <stdio.h>
 #include    <stdlib.h>
 #include    <utime.h>
diff -r 27ec8130985e -r 6f1fd8d007f2 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Sun Jan 17 15:30:23 2016 +0000
+++ b/usr.bin/make/job.c        Sun Jan 17 15:32:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.183 2016/01/17 15:30:23 christos Exp $       */
+/*     $NetBSD: job.c,v 1.184 2016/01/17 15:32:38 christos Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.183 2016/01/17 15:30:23 christos Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.184 2016/01/17 15:32:38 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)job.c      8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: job.c,v 1.183 2016/01/17 15:30:23 christos Exp $");
+__RCSID("$NetBSD: job.c,v 1.184 2016/01/17 15:32:38 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -141,7 +141,6 @@
 
 #include <assert.h>
 #include <errno.h>
-#include <fcntl.h>
 #ifndef USE_SELECT
 #include <poll.h>
 #endif
diff -r 27ec8130985e -r 6f1fd8d007f2 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sun Jan 17 15:30:23 2016 +0000
+++ b/usr.bin/make/main.c       Sun Jan 17 15:32:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.236 2016/01/09 00:55:17 christos Exp $      */
+/*     $NetBSD: main.c,v 1.237 2016/01/17 15:32:38 christos Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.236 2016/01/09 00:55:17 christos Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.237 2016/01/17 15:32:38 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.236 2016/01/09 00:55:17 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.237 2016/01/17 15:32:38 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -125,7 +125,6 @@
 #include <sys/wait.h>
 
 #include <errno.h>
-#include <fcntl.h>
 #include <signal.h>
 #include <stdarg.h>
 #include <stdio.h>
diff -r 27ec8130985e -r 6f1fd8d007f2 usr.bin/make/make.h
--- a/usr.bin/make/make.h       Sun Jan 17 15:30:23 2016 +0000
+++ b/usr.bin/make/make.h       Sun Jan 17 15:32:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.96 2015/09/21 21:50:16 pooka Exp $  */
+/*     $NetBSD: make.h,v 1.97 2016/01/17 15:32:38 christos Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -84,6 +84,7 @@
 #include <sys/param.h>
 
 #include <ctype.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -93,6 +94,10 @@
 # include <sys/cdefs.h>
 #endif
 
+#ifndef FD_CLOEXEC
+#define FD_CLOEXEC 1
+#endif
+
 #if defined(__GNUC__)
 #define        MAKE_GNUC_PREREQ(x, y)                                          \
        ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) ||                  \
diff -r 27ec8130985e -r 6f1fd8d007f2 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Sun Jan 17 15:30:23 2016 +0000
+++ b/usr.bin/make/meta.c       Sun Jan 17 15:32:38 2016 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.42 2016/01/17 15:30:23 christos Exp $ */
+/*      $NetBSD: meta.c,v 1.43 2016/01/17 15:32:38 christos Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -37,7 +37,6 @@
 #endif
 #include <sys/stat.h>
 #include <sys/ioctl.h>
-#include <fcntl.h>
 #include <libgen.h>
 #include <errno.h>
 #if !defined(HAVE_CONFIG_H) || defined(HAVE_ERR_H)
diff -r 27ec8130985e -r 6f1fd8d007f2 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Sun Jan 17 15:30:23 2016 +0000
+++ b/usr.bin/make/parse.c      Sun Jan 17 15:32:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.207 2016/01/09 00:55:17 christos Exp $     */
+/*     $NetBSD: parse.c,v 1.208 2016/01/17 15:32:38 christos Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.207 2016/01/09 00:55:17 christos Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.208 2016/01/17 15:32:38 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.207 2016/01/09 00:55:17 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.208 2016/01/17 15:32:38 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -129,7 +129,6 @@
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdarg.h>
 #include <stdio.h>
 



Home | Main Index | Thread Index | Old Index