Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23114
Modified Files:
compat.h configure
Log Message:
Compat for closefrom().
Index: compat.h
===================================================================
RCS file: /cvsroot/tmux/tmux/compat.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- compat.h 7 Sep 2010 19:32:58 -0000 1.26
+++ compat.h 27 Oct 2010 20:21:00 -0000 1.27
@@ -163,6 +163,14 @@
#define bzero(buf, len) memset(buf, 0, len);
#endif
+#ifndef HAVE_CLOSEFROM
+/* closefrom.c */
+#define HAVE_FCNTL_H
+#define HAVE_DIRENT_H
+#define HAVE_SYSCONF
+void closefrom(int);
+#endif
+
#ifndef HAVE_STRCASESTR
/* strcasestr.c */
char *strcasestr(const char *, const char *);
Index: configure
===================================================================
RCS file: /cvsroot/tmux/tmux/configure,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- configure 7 Sep 2010 19:32:58 -0000 1.54
+++ configure 27 Oct 2010 20:21:00 -0000 1.55
@@ -33,14 +33,18 @@
#undef HAVE_BROKEN_KQUEUE
#undef HAVE_BROKEN_POLL
#undef HAVE_BZERO
+#undef HAVE_CLOSEFROM
#undef HAVE_CRYPT_H
#undef HAVE_DAEMON
+#undef HAVE_DIRFD
+#undef HAVE_FCNTL_CLOSEM
#undef HAVE_FGETLN
#undef HAVE_FORKPTY
#undef HAVE_GETOPT
#undef HAVE_IMSG
#undef HAVE_LIBUTIL_H
#undef HAVE_PATHS_H
+#undef HAVE_PROC_PID
#undef HAVE_PROGNAME
#undef HAVE_PTY_H
#undef HAVE_QUEUE_H
@@ -64,6 +68,7 @@
#define HAVE_ASPRINTF
#define HAVE_BITSTRING_H
#define HAVE_BZERO
+#define HAVE_CLOSEFROM
#define HAVE_DAEMON
#define HAVE_FGETLN
#define HAVE_FORKPTY
@@ -96,8 +101,10 @@
#define HAVE_ASPRINTF
#define HAVE_BZERO
#define HAVE_DAEMON
+#define HAVE_DIRFD
#define HAVE_FORKPTY
#define HAVE_PATHS_H
+#define HAVE_PROC_PID
#define HAVE_PROGNAME
#define HAVE_PTY_H
#define HAVE_SETENV
@@ -110,11 +117,12 @@
CFLAGS+= -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE
LIBS+= -lncurses -lcrypt -lutil -levent -lrt
SRCS+= osdep-linux.c \
+ compat/closefrom.c \
compat/fgetln.c \
compat/strlcat.c \
compat/strlcpy.c \
compat/strtonum.c \
- compat/getopt.c \
+ compat/getopt.c \
compat/vis.c \
compat/unvis.c \
compat/imsg-buffer.c \
@@ -133,6 +141,7 @@
LIBS+= -lcurses -levent
SRCS+= osdep-unknown.c \
compat/asprintf.c \
+ compat/closefrom.c \
compat/daemon.c \
compat/forkpty-aix.c \
compat/strcasestr.c \
@@ -151,6 +160,7 @@
#
------------------------------------------------------------------------------
SunOS)
cat <<EOF >>$CONFIG_H
+#define HAVE_CLOSEFROM
#define HAVE_CRYPT_H
#define HAVE_STRLCAT
#define HAVE_STRLCPY
@@ -183,13 +193,15 @@
#define HAVE_BROKEN_POLL
#define HAVE_BZERO
#define HAVE_DAEMON
+#define HAVE_DIRFD
#define HAVE_FGETLN
#define HAVE_FORKPTY
#define HAVE_GETOPT
#define HAVE_PATHS_H
+#define HAVE_PROC_PID
#define HAVE_PROGNAME
-#define HAVE_STDINT_H
#define HAVE_SETENV
+#define HAVE_STDINT_H
#define HAVE_STRCASESTR
#define HAVE_STRLCAT
#define HAVE_STRLCPY
@@ -202,6 +214,7 @@
LDFLAGS+= -L/opt/local/lib
LIBS+= -lcurses -levent
SRCS+= osdep-darwin.c \
+ compat/closefrom.c \
compat/strtonum.c \
compat/vis.c \
compat/unvis.c \
@@ -215,6 +228,7 @@
#define HAVE_ASPRINTF
#define HAVE_BROKEN_KQUEUE
#define HAVE_BZERO
+#define HAVE_CLOSEFROM
#define HAVE_DAEMON
#define HAVE_FGETLN
#define HAVE_FORKPTY
@@ -228,8 +242,8 @@
#define HAVE_STRCASESTR
#define HAVE_STRLCAT
#define HAVE_STRLCPY
-#define HAVE_STRTONUM
#define HAVE_STRSEP
+#define HAVE_STRTONUM
#define HAVE_U_INT
EOF
cat <<EOF >>$CONFIG_MK
@@ -246,14 +260,15 @@
cat <<EOF >>$CONFIG_H
#define HAVE_ASPRINTF
#define HAVE_BZERO
+#define HAVE_CLOSEFROM
#define HAVE_DAEMON
#define HAVE_FGETLN
#define HAVE_FORKPTY
#define HAVE_GETOPT
#define HAVE_PATHS_H
#define HAVE_PROGNAME
-#define HAVE_SETPROCTITLE
#define HAVE_SETENV
+#define HAVE_SETPROCTITLE
#define HAVE_STDINT_H
#define HAVE_STRCASESTR
#define HAVE_STRLCAT
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs