diff options
Diffstat (limited to 'innbbsd/port.c')
-rw-r--r-- | innbbsd/port.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/innbbsd/port.c b/innbbsd/port.c deleted file mode 100644 index fab82771..00000000 --- a/innbbsd/port.c +++ /dev/null @@ -1,35 +0,0 @@ -#include "innbbsconf.h" - -#ifdef NO_getdtablesize -#include <sys/time.h> -#include <sys/resource.h> -getdtablesize() -{ - struct rlimit limit; - if (getrlimit(RLIMIT_NOFILE, &limit) >= 0) { - return limit.rlim_cur; - } - return -1; -} -#endif - -#if 0 -#if defined(SYSV) && !defined(WITH_RECORD_O) -#include <fcntl.h> -flock(fd, op) - int fd, op; -{ - switch (op) { - case LOCK_EX: - op = F_LOCK; - break; - case LOCK_UN: - op = F_ULOCK; - break; - default: - return -1; - } - return lockf(fd, op, 0L); -} -#endif -#endif |