r773 - in trunk/varnish-cache: . bin/varnishd include include/compat lib/libcompat

des at projects.linpro.no des at projects.linpro.no
Tue Aug 8 14:57:53 CEST 2006


Author: des
Date: 2006-08-08 14:57:53 +0200 (Tue, 08 Aug 2006)
New Revision: 773

Added:
   trunk/varnish-cache/include/compat/setproctitle.h
   trunk/varnish-cache/lib/libcompat/setproctitle.c
Modified:
   trunk/varnish-cache/bin/varnishd/mgt_child.c
   trunk/varnish-cache/configure.ac
   trunk/varnish-cache/include/Makefile.am
   trunk/varnish-cache/lib/libcompat/Makefile.am
Log:
Add a setproctitle() stub to libcompat.

Modified: trunk/varnish-cache/bin/varnishd/mgt_child.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_child.c	2006-08-08 12:57:25 UTC (rev 772)
+++ trunk/varnish-cache/bin/varnishd/mgt_child.c	2006-08-08 12:57:53 UTC (rev 773)
@@ -17,6 +17,8 @@
 
 #include <err.h>		/* XXX */
 
+#include "compat/setproctitle.h"
+
 #include "heritage.h"
 #include "mgt.h"
 #include "cli.h"

Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac	2006-08-08 12:57:25 UTC (rev 772)
+++ trunk/varnish-cache/configure.ac	2006-08-08 12:57:53 UTC (rev 773)
@@ -68,6 +68,7 @@
 # These functions are provided by libcompat on platforms where they
 # are not available
 AC_CHECK_FUNCS([asprintf vasprintf])
+AC_CHECK_FUNCS([setproctitle])
 AC_CHECK_FUNCS([srandomdev])
 AC_CHECK_FUNCS([strlcat strlcpy])
 AC_CHECK_FUNCS([vis strvis strvisx])

Modified: trunk/varnish-cache/include/Makefile.am
===================================================================
--- trunk/varnish-cache/include/Makefile.am	2006-08-08 12:57:25 UTC (rev 772)
+++ trunk/varnish-cache/include/Makefile.am	2006-08-08 12:57:53 UTC (rev 773)
@@ -6,6 +6,7 @@
 	cli_common.h \
 	cli_priv.h \
 	compat/asprintf.h \
+	compat/setproctitle.h \
 	compat/srandomdev.h \
 	compat/strlcat.h \
 	compat/strlcpy.h \

Added: trunk/varnish-cache/include/compat/setproctitle.h
===================================================================
--- trunk/varnish-cache/include/compat/setproctitle.h	2006-08-08 12:57:25 UTC (rev 772)
+++ trunk/varnish-cache/include/compat/setproctitle.h	2006-08-08 12:57:53 UTC (rev 773)
@@ -0,0 +1,12 @@
+/*
+ * $Id$
+ */
+
+#ifndef COMPAT_SETPROCTITLE_H_INCLUDED
+#define COMPAT_SETPROCTITLE_H_INCLUDED
+
+#ifndef HAVE_SETPROCTITLE
+void setproctitle(const char *fmt, ...);
+#endif
+
+#endif


Property changes on: trunk/varnish-cache/include/compat/setproctitle.h
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: trunk/varnish-cache/lib/libcompat/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/libcompat/Makefile.am	2006-08-08 12:57:25 UTC (rev 772)
+++ trunk/varnish-cache/lib/libcompat/Makefile.am	2006-08-08 12:57:53 UTC (rev 773)
@@ -7,6 +7,7 @@
 libcompat_a_SOURCES = \
 	asprintf.c \
 	vasprintf.c \
+	setproctitle.c \
 	srandomdev.c \
 	strlcat.c \
 	strlcpy.c \

Added: trunk/varnish-cache/lib/libcompat/setproctitle.c
===================================================================
--- trunk/varnish-cache/lib/libcompat/setproctitle.c	2006-08-08 12:57:25 UTC (rev 772)
+++ trunk/varnish-cache/lib/libcompat/setproctitle.c	2006-08-08 12:57:53 UTC (rev 773)
@@ -0,0 +1,20 @@
+/*
+ * $Id$
+ */
+
+#ifndef HAVE_SETPROCTITLE
+
+#include <stdarg.h>
+
+#include "compat/setproctitle.h"
+
+void
+setproctitle(const char *fmt, ...)
+{
+	va_list ap;
+
+	va_start(ap, fmt);
+	/* XXX */
+	va_end(ap);
+}
+#endif


Property changes on: trunk/varnish-cache/lib/libcompat/setproctitle.c
___________________________________________________________________
Name: svn:keywords
   + Id




More information about the varnish-commit mailing list