summaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
committerRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
commitd921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /networking/inetd.c
parent6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff)
downloadbusybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index 54294b635..49ca7a36e 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -128,31 +128,8 @@
128 * 128 *
129 */ 129 */
130 130
131#include <sys/param.h>
132#include <sys/stat.h>
133#include <sys/ioctl.h>
134#include <sys/socket.h>
135#include <sys/un.h>
136#include <sys/file.h>
137#include <sys/wait.h>
138#include <sys/resource.h>
139
140
141#include <netinet/in.h>
142#include <arpa/inet.h>
143
144#include <errno.h>
145#include <signal.h>
146#include <netdb.h>
147#include <syslog.h>
148#include <stdio.h>
149#include <stdlib.h>
150#include <unistd.h>
151#include <string.h>
152#include <ctype.h>
153#include <time.h>
154
155#include "busybox.h" 131#include "busybox.h"
132#include <syslog.h>
156 133
157//#define CONFIG_FEATURE_INETD_RPC 134//#define CONFIG_FEATURE_INETD_RPC
158//#define CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO 135//#define CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO
@@ -1314,7 +1291,7 @@ inetd_main (int argc, char *argv[])
1314 /* reexec for vfork() do continue parent */ 1291 /* reexec for vfork() do continue parent */
1315 vfork_daemon_rexec (0, 0, argc, argv, "-f"); 1292 vfork_daemon_rexec (0, 0, argc, argv, "-f");
1316#else 1293#else
1317 bb_xdaemon (0, 0); 1294 xdaemon (0, 0);
1318#endif 1295#endif
1319 } else { 1296 } else {
1320 setsid (); 1297 setsid ();