summaryrefslogtreecommitdiffstats
path: root/innbbsd/port.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-20 19:33:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-20 19:33:49 +0800
commit6c7b18b32d87c2a835f7e5c48faac4a8ad44668b (patch)
treee88e1b2b1007f4ddcd348a4a1bf1d13c515c4564 /innbbsd/port.c
parentf59699c22c130373cda3cc4cb6fab5bae510bd5a (diff)
downloadpttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.gz
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.bz2
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.lz
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.xz
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.tar.zst
pttbbs-6c7b18b32d87c2a835f7e5c48faac4a8ad44668b.zip
- (internal/exp) first draft of new layoutpiaip.newlayout
git-svn-id: http://opensvn.csie.org/pttbbs/branches/piaip.newlayout@4013 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/port.c')
-rw-r--r--innbbsd/port.c35
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