获取系统限制信息
Posted lnlin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取系统限制信息相关的知识,希望对你有一定的参考价值。
// 成功返回相应值,出错返回-1 #include <unistd.h> long sysconf(int name); // 用获取与指定文件相关的限制值,区别在于前者使用路径名,后者使用文件描述符 long pathconf(const char *pathname, int name); long fpathconf(int fd, int name);
sysconf的限制及name参数:
pathconf和fpathconf的限制及name参数:
以上是关于获取系统限制信息的主要内容,如果未能解决你的问题,请参考以下文章