- 论坛徽章:
- 0
|
楼主只要包括#include <linux/limits.h>就可以了,fs.h中有去除该定义。- #include <linux/limits.h>
- #include <linux/ioctl.h>
- /*
- * It's silly to have NR_OPEN bigger than NR_FILE, but you can change
- * the file limit at runtime and only root can increase the per-process
- * nr_file rlimit, so it's safe to set up a ridiculously high absolute
- * upper limit on files-per-process.
- *
- * Some programs (notably those using select()) may have to be
- * recompiled to take full advantage of the new limits..
- */
- /* Fixed constants first: */
- #undef NR_OPEN
- #define INR_OPEN 1024 /* Initial setting for nfile rlimits */
复制代码 |
|