Provided by: manpages-ko-dev_4.27.0-1_all bug

이름

       telldir - 디렉토리 스트림의 현재 위치를 반환한다

라이브러리

       표준 C 라이브러리 (libc, -lc)

요약

       #include <dirent.h>

       long telldir(DIR *dirp);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       telldir():
           _XOPEN_SOURCE
              || /* glibc >= 2.19: */ _DEFAULT_SOURCE
              || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

설명

       telldir() 함수는 디렉토리 스트림 dirp과 연관된 현재 위치를 반환한다.

반환값

       On  success,  the telldir()  function returns the current location in the directory stream.  On error, -1
       is returned, and errno is set to indicate the error.

에러

       EBADF  무효한 디렉토리 스트림 기술자 dirp.

속성

       이 섹션에서 사용되는 용어에 대한 설명은 attributes(7)을 참조하십시오.
       ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │ 상호 작용속성번호    │
       ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │ telldir()                                                                   │ Thread safety │ MT-Safe │
       └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

표준

       POSIX.1-2008.

이력

       POSIX.1-2001, 4.3BSD.

       Up to glibc 2.1.1, the return type of telldir()  was off_t.  POSIX.1-2001 specifies long, and this is the
       type used since glibc 2.1.2.

       In early filesystems, the value returned by telldir()  was a  simple  file  offset  within  a  directory.
       Modern  filesystems  use  tree or hash structures, rather than flat tables, to represent directories.  On
       such filesystems, the value returned by telldir()  (and used internally by  readdir(3))   is  a  "cookie"
       that  is used by the implementation to derive a position within a directory.  Application programs should
       treat this strictly as an opaque value, making no assumptions about its contents.

추가 참조

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

번역

       이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 임종균 <hermes44@secsm.org>

       이 번역은 무료 문서입니다. 저작권 조건에 대해서는  GNU General Public License 버전 3  이상을  읽으십시오.
       책임이 없습니다.

       이   매뉴얼   페이지의   번역에서   오류를   발견하면  translation-team-ko@googlegroups.com  로  이메일을
       보내주십시오.

Linux man-pages 6.9.1                            2024년 5월 2일                                       telldir(3)