telldir

Autres langues

Langue: ja

Version: 2007-07-26 (fedora - 25/11/07)

Section: 3 (Bibliothèques de fonctions)

名前

telldir - ディレクトリストリーム中の現在位置を返す

書式

 #include <dirent.h>
 
 off_t telldir(DIR *dir);
 

glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):

telldir(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE

説明

telldir() 関数は、ディレクトリストリーム dir に結びつけられた 現在位置を返す。

返り値

成功した場合、 telldir() 関数はディレクトリストリーム中の現在位置を返す。 エラーの場合、-1 が返されて、 errno が適切に設定される。

エラー

EBADF
ディレクトリストリームディスクリプタ dir が無効である。

準拠

4.3BSD, POSIX.1-2001.

関連項目

closedir(3), opendir(3), readdir(3), rewinddir(3), scandir(3), seekdir(3)