Man page - telldir(3)

Packages contains this manual

Available languages:

en fr pt_BR es ko ja ru ro de

Manual

telldir

이 름
라 이 브 러 리
μš” μ•½
μ„€ λͺ…
반 ν™˜ κ°’
에 러
속 μ„±
ν‘œ μ€€
이 λ ₯
μΆ” κ°€ μ°Έ μ‘°
번 μ—­

이 름

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)을 μ°Έ μ‘° ν•˜ μ‹­ μ‹œ 였 .

Image grohtml-4017431-1.png

ν‘œ μ€€

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 둜 이 λ©” 일 을 보 λ‚΄ μ£Ό μ‹­ μ‹œ 였 .