OSDN Git Service

(split) Refine LDP man3/expm1.3.
[linuxjm/LDP_man-pages.git] / draft / man3 / seekdir.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 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sat Jul 24 18:25:21 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
30 .\"     all rights reserved.
31 .\" Translated Wed Dec 24 12:34:12 JST 1997
32 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
33 .\" Updated 2009-04-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.20
34 .\"
35 .TH SEEKDIR 3  2009-03-11 "" "Linux Programmer's Manual"
36 .\"O .SH NAME
37 .SH Ì¾Á°
38 .\"O seekdir \- set the position of the next readdir() call in the directory
39 .\"O stream.
40 seekdir \- ¼¡¤Î readdir() ¸Æ¤Ó½Ð¤·¤Î¤¿¤á¤Ë¡¢¥Ç¥£¥ì¥¯¥È¥ê¥¹¥È¥ê¡¼¥àÃæ¤Î°ÌÃÖ¤ò
41 ÀßÄꤹ¤ë
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .nf
45 .B #include <dirent.h>
46 .sp
47 .BI "void seekdir(DIR *" dirp ", long " offset );
48 .fi
49 .sp
50 .in -4n
51 .\"O Feature Test Macro Requirements for glibc (see
52 .\"O .BR feature_test_macros (7)):
53 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
54 .RB ( feature_test_macros (7)
55 »²¾È):
56 .in
57 .sp
58 .BR seekdir ():
59 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
60 .\"O .SH DESCRIPTION
61 .SH ÀâÌÀ
62 .\"O The
63 .\"O .BR seekdir ()
64 .\"O function sets the location in the directory stream
65 .\"O from which the next
66 .\"O .BR readdir (2)
67 .\"O call will start.
68 .BR seekdir ()
69 ´Ø¿ô¤Ï¡¢¼¡¤Î
70 .BR readdir (3)
71 ¸Æ¤Ó½Ð¤·¤Î³«»Ï°ÌÃ֤Ǥ¢¤ë¡¢
72 ¥Ç¥£¥ì¥¯¥È¥ê¥¹¥È¥ê¡¼¥à¤ÎÃæ¤Ç¤Î°ÌÃÖ¤òÀßÄꤹ¤ë¡£
73 .\"O .BR seekdir ()
74 .\"O should be used with an
75 .\"O .I offset
76 .\"O returned by
77 .\"O .BR telldir (3).
78 .BR seekdir ()
79 ¤Ï
80 .BR telldir (3)
81 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë
82 .I offset
83 ¤È¤È¤â¤Ë»ÈÍѤµ¤ì¤ë¤Ù¤­¤Ç¤¢¤ë¡£
84 .\"O .SH "RETURN VALUE"
85 .SH ÊÖ¤êÃÍ
86 .\"O The
87 .\"O .BR seekdir ()
88 .\"O function returns no value.
89 .BR seekdir ()
90 ´Ø¿ô¤Ï¡¢ÃͤòÊÖ¤µ¤Ê¤¤¡£
91 .\"O .SH "CONFORMING TO"
92 .SH ½àµò
93 4.3BSD, POSIX.1-2001.
94 .\"O .SH NOTES
95 .SH Ãí°Õ
96 .\"O In glibc up to version 2.1.1, the type of the
97 .\"O .I offset
98 .\"O argument was
99 .\"O .IR off_t .
100 .\"O POSIX.1-2001 specifies
101 .\"O .IR long ,
102 .\"O and this is the type used since glibc 2.1.2.
103 ¥Ð¡¼¥¸¥ç¥ó 2.1.1 °ÊÁ°¤Î glibc ¤Ç¤Ï¡¢
104 .I offset
105 °ú¤­¿ô¤Î·¿¤Ï
106 .I off_t
107 ¤Ç¤¢¤Ã¤¿¡£
108 POSIX.1-2001 ¤Ç¤Ï
109 .I long
110 ¤Èµ¬Äꤵ¤ì¤Æ¤ª¤ê¡¢glibc 2.1.2 °Ê¹ß¤Ç¤Ï
111 .I long
112 ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
113 .\"O .SH "SEE ALSO"
114 .SH ´ØÏ¢¹àÌÜ
115 .BR lseek (2),
116 .BR closedir (3),
117 .BR opendir (3),
118 .BR readdir (3),
119 .BR rewinddir (3),
120 .BR scandir (3),
121 .BR telldir (3)