summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd/inetd.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-01-18 19:38:43 +0000
committerdelphij <delphij@FreeBSD.org>2006-01-18 19:38:43 +0000
commit7ab11dec1ceb0bb4713a3da61b8759290eabc5ce (patch)
tree21f5ac36ec5841ddba86f3f844a64585c7ccd3f6 /usr.sbin/inetd/inetd.h
parentdd162be826beb2cda1df3c944c1fe7a123c9cece (diff)
downloadFreeBSD-src-7ab11dec1ceb0bb4713a3da61b8759290eabc5ce.zip
FreeBSD-src-7ab11dec1ceb0bb4713a3da61b8759290eabc5ce.tar.gz
Revert previous commit for now, which seems to have (re)introduced some
old bugs, as well as some unwanted side effects. I will do more investigation and fix these issues first. Pointed out by: dwmalone
Diffstat (limited to 'usr.sbin/inetd/inetd.h')
-rw-r--r--usr.sbin/inetd/inetd.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/usr.sbin/inetd/inetd.h b/usr.sbin/inetd/inetd.h
index e84547c..8c05ed9 100644
--- a/usr.sbin/inetd/inetd.h
+++ b/usr.sbin/inetd/inetd.h
@@ -74,10 +74,7 @@ struct servtab {
int se_maxchild; /* max number of children */
int se_maxcpm; /* max connects per IP per minute */
int se_numchild; /* current number of children */
- int se_free; /* free when numchild == 0 */
-#ifdef SANITY_CHECK
pid_t *se_pids; /* array of child pids */
-#endif
char *se_user; /* user name to run as */
char *se_group; /* group name to run as */
#ifdef LOGIN_CAP
@@ -148,14 +145,3 @@ struct biltin {
int bi_maxchild; /* max number of children, -1=default */
bi_fn_t *bi_fn; /* function which performs it */
};
-
-void watch(short, uintptr_t, void *, u_int, int);
-#define WATCH_SOCK(fd, data) watch(EVFILT_READ, fd, data, 0, 1)
-#define UNWATCH_SOCK(fd, data) watch(EVFILT_READ, fd, data, 0, 0)
-#define WATCH_SIG(sig, data) watch(EVFILT_SIGNAL, sig, data, 0, 1)
-#define UNWATCH_SIG(sig, data) watch(EVFILT_SIGNAL, sig, data, 0, 0)
-#define WATCH_PROC(proc, data) watch(EVFILT_PROC, proc, data, NOTE_EXIT, 1)
-#define UNWATCH_PROC(proc, data) watch(EVFILT_PROC, proc, data, NOTE_EXIT, 0)
-#define WATCH_FD(fd, data) watch(EVFILT_VNODE, fd, data, NOTE_DELETE|NOTE_WRITE|NOTE_EXTEND|NOTE_RENAME, 1)
-#define UNWATCH_FD(fd, data) watch(EVFILT_VNODE, fd, data, NOTE_DELETE|NOTE_WRITE|NOTE_EXTEND|NOTE_RENAME, 0)
-
OpenPOWER on IntegriCloud