+2013-07-07 Eli Zaretskii <eliz@gnu.org>
+
+ * inc/sys/socket.h (F_SETFD, O_CLOEXEC, F_DUPFD_CLOEXEC)
+ (FD_CLOEXEC): New macros.
+
2013-07-07 Paul Eggert <eggert@cs.ucla.edu>
Make file descriptors close-on-exec when possible (Bug#14803).
an fcntl function, for setting sockets to non-blocking mode. */
int fcntl (int s, int cmd, int options);
#define F_SETFL 4
+#define F_SETFD 2
#define O_NONBLOCK 04000
+#define O_CLOEXEC O_NOINHERIT
+#define F_DUPFD_CLOEXEC 0x40000000
+#define FD_CLOEXEC 1
/* we are providing a real h_errno variable */
#undef h_errno
+2013-07-07 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (sys_dup): Declare prototype.
+
+ * filelock.c:
+ * emacs.c:
+ * callproc.c [WINDOWSNT]: Include sys/socket.h.
+
2013-07-07 Paul Eggert <eggert@cs.ucla.edu>
Make file descriptors close-on-exec when possible (Bug#14803).
#ifdef WINDOWSNT
#define NOMINMAX
+#include <sys/socket.h> /* for fcntl */
#include <windows.h>
#include "w32.h"
#define _P_NOWAIT 1 /* from process.h */
#ifdef WINDOWSNT
#include <fcntl.h>
+#include <sys/socket.h>
#include "w32.h"
#include "w32heap.h"
#endif
#include "systime.h"
#ifdef WINDOWSNT
#include <share.h>
+#include <sys/socket.h> /* for fcntl */
#include "w32.h" /* for dostounix_filename */
#endif
extern void *e_malloc (size_t);
extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
EMACS_TIME *, void *);
+extern int sys_dup (int);
+
\f