TELLDIR
Section: Linux Programmer's Manual (3)
Updated: 2009-03-11
Index
JM Home Page
roff page
 
名前
telldir - ディレクトリストリーム中の現在位置を返す
 
書式
#include <dirent.h>
long telldir(DIR *dirp);
glibc 向けの機能検査マクロの要件
(feature_test_macros(7)
参照):
telldir():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
 
説明
telldir()
関数は、ディレクトリストリーム dirp に結びつけられた
現在位置を返す。
 
返り値
成功した場合、
telldir()
関数はディレクトリストリーム中の現在位置を返す。
エラーの場合、-1 が返されて、
errno
が適切に設定される。
 
エラー
- EBADF
- 
ディレクトリストリームディスクリプタ dirp が無効である。
準拠
4.3BSD, POSIX.1-2001.
 
注意
バージョン 2.1.1 以前の glibc では、
telldir()9
の返り値の型は
off_t
であった。
POSIX.1-2001 では
long
と規定されており、glibc 2.1.2 以降では
long
になっている。
 
関連項目
closedir(3),
opendir(3),
readdir(3),
rewinddir(3),
scandir(3),
seekdir(3)
 Index
- 名前
- 
- 書式
- 
- 説明
- 
- 返り値
- 
- エラー
- 
- 準拠
- 
- 注意
- 
- 関連項目
- 
This document was created by
man2html,
using the manual pages.
Time: 03:26:58 GMT, April 25, 2010