⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 open_limit.c

📁 端口扫描源代码
💻 C
字号:
 /*  * open_limit - determine the current open file limit  *   * Environment: POSIX, 44BSD, 43BSD  *   * Author: Wietse Venema.  */#include <sys/types.h>#include <sys/time.h>#include <sys/resource.h>/* 44BSD compatibility. */#ifndef RLIMIT_NOFILE# ifdef RLIMIT_OFILE#  define RLIMIT_NOFILE RLIMIT_OFILE# endif#endifint     open_limit(){#ifdef RLIMIT_NOFILE    struct rlimit rl;    getrlimit(RLIMIT_NOFILE, &rl);    return (rl.rlim_cur);#else    return (getdtablesize());#endif}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -