OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / telldir.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\" References consulted:
25 .\"     Linux libc source code
26 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
27 .\"     386BSD man pages
28 .\" Modified Sat Jul 24 17:48:42 1993 by Rik Faith (faith@cs.unc.edu)
29 .\"
30 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
31 .\"     all rights reserved.
32 .\" Translated 1997-12-24, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
33 .\" Updated & Modified 2005-02-19, Yuichi SATO <ysato444@yahoo.co.jp>
34 .\" Updated 2009-04-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.20
35 .\"
36 .TH TELLDIR 3  2009-03-11 "" "Linux Programmer's Manual"
37 .\"O .SH NAME
38 .SH Ì¾Á°
39 .\"O telldir \- return current location in directory stream
40 telldir \- ¥Ç¥£¥ì¥¯¥È¥ê¥¹¥È¥ê¡¼¥àÃæ¤Î¸½ºß°ÌÃÖ¤òÊÖ¤¹
41 .\"O .SH SYNOPSIS
42 .SH ½ñ¼°
43 .nf
44 .B #include <dirent.h>
45 .sp
46 .BI "long telldir(DIR *" dirp );
47 .fi
48 .sp
49 .in -4n
50 .\"O Feature Test Macro Requirements for glibc (see
51 .\"O .BR feature_test_macros (7)):
52 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
53 .RB ( feature_test_macros (7)
54 »²¾È):
55 .in
56 .sp
57 .BR telldir ():
58 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
59 .\"O .SH DESCRIPTION
60 .SH ÀâÌÀ
61 .\"O The
62 .\"O .BR telldir ()
63 .\"O function returns the current location associated with
64 .\"O the directory stream \fIdirp\fP.
65 .BR telldir ()
66 ´Ø¿ô¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¥¹¥È¥ê¡¼¥à \fIdirp\fP ¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤¿
67 ¸½ºß°ÌÃÖ¤òÊÖ¤¹¡£
68 .\"O .SH "RETURN VALUE"
69 .SH ÊÖ¤êÃÍ
70 .\"O On success, the
71 .\"O .BR telldir ()
72 .\"O function returns the current location
73 .\"O in the directory stream.
74 .\"O On error, \-1 is returned, and
75 .\"O .I errno
76 .\"O is set appropriately.
77 À®¸ù¤·¤¿¾ì¹ç¡¢
78 .BR telldir ()
79 ´Ø¿ô¤Ï¥Ç¥£¥ì¥¯¥È¥ê¥¹¥È¥ê¡¼¥àÃæ¤Î¸½ºß°ÌÃÖ¤òÊÖ¤¹¡£
80 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
81 .I errno
82 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
83 .\"O .SH ERRORS
84 .SH ¥¨¥é¡¼
85 .TP
86 .B EBADF
87 .\"O Invalid directory stream descriptor \fIdirp\fP.
88 ¥Ç¥£¥ì¥¯¥È¥ê¥¹¥È¥ê¡¼¥à¥Ç¥£¥¹¥¯¥ê¥×¥¿ \fIdirp\fP ¤¬Ìµ¸ú¤Ç¤¢¤ë¡£
89 .\"O .SH "CONFORMING TO"
90 .SH ½àµò
91 4.3BSD, POSIX.1-2001.
92 .\"O .SH NOTES
93 .SH Ãí°Õ
94 .\"O In glibc up to version 2.1.1, the return type of
95 .\"O .BR telldir ()
96 .\"O was
97 .\"O .IR off_t .
98 .\"O POSIX.1-2001 specifies
99 .\"O .IR long ,
100 .\"O and this is the type used since glibc 2.1.2.
101 ¥Ð¡¼¥¸¥ç¥ó 2.1.1 °ÊÁ°¤Î glibc ¤Ç¤Ï¡¢
102 .BR telldir ()9
103 ¤ÎÊÖ¤êÃͤη¿¤Ï
104 .I off_t
105 ¤Ç¤¢¤Ã¤¿¡£
106 POSIX.1-2001 ¤Ç¤Ï
107 .I long
108 ¤Èµ¬Äꤵ¤ì¤Æ¤ª¤ê¡¢glibc 2.1.2 °Ê¹ß¤Ç¤Ï
109 .I long
110 ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
111 .\"O .SH "SEE ALSO"
112 .SH ´ØÏ¢¹àÌÜ
113 .BR closedir (3),
114 .BR opendir (3),
115 .BR readdir (3),
116 .BR rewinddir (3),
117 .BR scandir (3),
118 .BR seekdir (3)