seekdir - 디렉토리 스트림에서 다음 readdir() 호출의 위치를 설정한다
#include <dirent.h>
void seekdir(DIR *dirp, long loc);
seekdir():
_XOPEN_SOURCE
|| /* glibc >= 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE The seekdir() function sets the location in the directory stream from which the next readdir(2)EN call will start. The loc argument should be a value returned by a previous call to telldir(3).
seekdir() 함수는 어떤 값도 반환하지 않는다.
이 섹션에서 사용되는 용어에 대한 설명은 attributes(7)EN을 참조하십시오.
| 상호 작용 | 속성 | 번호 |
| seekdir() | Thread safety | MT-Safe |
POSIX.1-2001, POSIX.1-2008, 4.3BSD.
Up to glibc 2.1.1, the type of the loc argument was off_t. POSIX.1-2001 specifies long, and this is the type used since glibc 2.1.2. See telldir(3) for information on why you should be careful in making any assumptions about the value in this argument.