From 7ad859dc8054a6234cc5bcffeeb918dd47468dde Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 27 Sep 1996 00:10:33 +0000 Subject: [PATCH] Added prototype for `mini_inetd', and fallback definitions for SOMAXCONN, STDIN_FILENO, and STDOUT_FILENO. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@759 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.h | 14 ++++++++++++++ lib/roken/roken.h.in | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 89eba01cb..d3b024fb2 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -87,4 +87,18 @@ int unix_verify_user(char *user, char *password); void inaddr2str(struct in_addr addr, char *s, size_t len); +void mini_inetd (int port); + +#ifndef SOMAXCONN +#define SOMAXCONN 5 +#endif + +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif + #endif /* __ROKEN_H__ */ diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 89eba01cb..d3b024fb2 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -87,4 +87,18 @@ int unix_verify_user(char *user, char *password); void inaddr2str(struct in_addr addr, char *s, size_t len); +void mini_inetd (int port); + +#ifndef SOMAXCONN +#define SOMAXCONN 5 +#endif + +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif + #endif /* __ROKEN_H__ */