.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:48:42 1993 by Rik Faith (faith@cs.unc.edu) .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH telldir 3 "2023년 7월 20일" "Linux man\-pages 6.05.01" .SH 이름 telldir \- 디렉토리 스트림의 현재 위치를 반환한다 .SH 라이브러리 표준 C 라이브러리 (\fIlibc\fP, \fI\-lc\fP) .SH 요약 .nf \fB#include \fP .PP \fBlong telldir(DIR *\fP\fIdirp\fP\fB);\fP .fi .PP .RS -4 Feature Test Macro Requirements for glibc (see \fBfeature_test_macros\fP(7)): .RE .PP \fBtelldir\fP(): .nf _XOPEN_SOURCE || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi .SH 설명 \fBtelldir\fP() 함수는 디렉토리 스트림 \fIdirp\fP과 연관된 현재 위치를 반환한다. .SH 반환값 On success, the \fBtelldir\fP() function returns the current location in the directory stream. On error, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH 에러 .TP \fBEBADF\fP 무효한 디렉토리 스트림 기술자 \fIdirp\fP. .SH 속성 이 섹션에서 사용되는 용어에 대한 설명은 \fBattributes\fP(7)을 참조하십시오. .TS allbox; lbx lb lb l l l. 상호 작용 속성 번호 T{ .na .nh \fBtelldir\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH 표준 POSIX.1\-2008. .SH 이력 POSIX.1\-2001, 4.3BSD. .PP Up to glibc 2.1.1, the return type of \fBtelldir\fP() was \fIoff_t\fP. POSIX.1\-2001 specifies \fIlong\fP, and this is the type used since glibc 2.1.2. .PP .\" https://lwn.net/Articles/544298/ In early filesystems, the value returned by \fBtelldir\fP() 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 \fBtelldir\fP() (and used internally by \fBreaddir\fP(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 \fIno\fP assumptions about its contents. .SH "추가 참조" \fBclosedir\fP(3), \fBopendir\fP(3), \fBreaddir\fP(3), \fBrewinddir\fP(3), \fBscandir\fP(3), \fBseekdir\fP(3) .PP .SH 번역 이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 임종균 . .PP 이 번역은 무료 문서입니다. 저작권 조건에 대해서는 .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 버전 3 .UE 이상을 읽으십시오. 책임이 없습니다. .PP 이 매뉴얼 페이지의 번역에서 오류를 발견하면 .MT translation-team-ko@googlegroups.com .ME 로 이메일을 보내주십시오.