getdtablesize()函数是干什么的
2010-10-31 12:22
148 查看
昨天写守护进程的时候要关闭从父进程那里继承的文件,碰到了这个函数,结果我用的时候说我未定义,今天才发现写成了gettablesize(),把d落下了,唉!它返回所在进程的文件描述附表的项数,即该进程打开的文件数目。
下面是英文描述,很简练很好,不翻译了
getdtablesize()
Get the size of the file descriptor tableSynopsis:
#include <unistd.h> int getdtablesize( void );
Library:
libcUse the -l c
option to
qcc
to link against this library.
This library is usually included automatically.
Description:
Each process has a fixed size descriptor table, which is guaranteed tohave at least 20 slots. The entries in the descriptor table are numbered
with small integers starting at 0. The getdtablesize()
returns the
size of this table.
This function is equivalent to
getrlimit()
with the RLIMIT_NOFILE
option.
Returns:
The size of the file descriptor table.Classification:
Legacy UnixSafety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
相关文章推荐
- cocos2d-x里面的getContentSize这个函数到底什么意思啊
- getdtablesize()函数
- getdtablesize()函数的作用
- GetFileSize 函数
- PHP 获取图像信息 getimagesize 函数
- java程序中Dimensiond=Toolkit.getDefaultToolkit().getscreensize;是什么意思
- 函数getimagesize获得图片的长宽等信息
- 解决PHP getimagesize等函数无法获取本地文件
- PHP 获取图像信息 getimagesize 函数
- c++ getdtablesize()
- 2. PHP 获取图像信息 getimagesize 函数
- PHP类中的__get()和__set函数到底有什么用?
- 【转】取文件属性:GetFileVersionInfoSize,GetFileVersionInfo,VerQueryValue三个函数的配合
- String filePath = request.getSession().getServletContext().getRealPath("/");这句话返回的路径是什么,解释下getRealPath("/")函数中的"/"表示什么意思
- PHP 获取图像信息 getimagesize函数
- GetFileSize 函数(转)
- 如何用GetDiskFreeSpace函数?此函数有什么限制吗?
- 利用反射函数实现一键清除缓存,并获取清除的缓存数目。调用反射函数类出错java.lang.NoSuchMethodException: getPackageSizeInfo.
- getdtablesize() - get descriptor table size ,注意d
- php中getimagesize函数的返回数值