Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/inetd/inetd.h
Show All 32 Lines | |||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/un.h> | #include <sys/un.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <stdbool.h> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#define BUFSIZE 8192 | #define BUFSIZE 8192 | ||||
#define LINESIZ 72 | #define LINESIZ 72 | ||||
#define NORM_TYPE 0 | #define NORM_TYPE 0 | ||||
#define MUX_TYPE 1 | #define MUX_TYPE 1 | ||||
#define MUXPLUS_TYPE 2 | #define MUXPLUS_TYPE 2 | ||||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
extern int debug; | extern int debug; | ||||
extern struct servtab *servtab; | extern struct servtab *servtab; | ||||
typedef void (bi_fn_t)(int, struct servtab *); | typedef void (bi_fn_t)(int, struct servtab *); | ||||
struct biltin { | struct biltin { | ||||
const char *bi_service; /* internally provided service name */ | const char *bi_service; /* internally provided service name */ | ||||
int bi_socktype; /* type of socket supported */ | int bi_socktype; /* type of socket supported */ | ||||
short bi_fork; /* 1 if should fork before call */ | bool bi_fork; /* 1 if should fork before call */ | ||||
int bi_maxchild; /* max number of children, -1=default */ | int bi_maxchild; /* max number of children, -1=default */ | ||||
bi_fn_t *bi_fn; /* function which performs it */ | bi_fn_t *bi_fn; /* function which performs it */ | ||||
bool bi_capenter; /* enter capability mode upon fork */ | |||||
}; | }; | ||||
extern struct biltin biltins[]; | extern struct biltin biltins[]; |