OSDN Git Service

0e19cfa5ed707af8745b23c6157db4d2afa1ef4d
[linuxjm/LDP_man-pages.git] / release / man3 / dirfd.3
1 .\" Copyright (C) 2002 Andries Brouwer (aeb@cwi.nl)
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 .\"
24 .\" Japanese Version Copyright (c) 2002-2003 Yuichi SATO
25 .\"         all rights reserved.
26 .\" Translated Mon May  6 21:32:36 JST 2002
27 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
28 .\" Updated & Modified Sun Sep  7 01:23:08 JST 2003
29 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
30 .\"
31 .TH DIRFD 3 2010-09-26 "Linux" "Linux Programmer's Manual"
32 .SH Ì¾Á°
33 dirfd \- ¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥È¥ê¡¼¥à¤Î¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ò¼èÆÀ¤¹¤ë
34 .SH ½ñ¼°
35 .B #include <sys/types.h>
36 .br
37 .B #include <dirent.h>
38 .sp
39 .BI "int dirfd(DIR *" dirp );
40 .sp
41 .in -4n
42 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
43 .RB ( feature_test_macros (7)
44 »²¾È):
45 .in
46 .sp
47 .BR dirfd ():
48 .br
49 .RS 4
50 .PD 0
51 .ad l
52 _BSD_SOURCE || _SVID_SOURCE
53 .br
54 || /* glibc 2.10 °Ê¹ß: */
55 .RS 4
56 (_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700)
57 .RE
58 .PD
59 .RE
60 .ad
61 .SH ÀâÌÀ
62 ´Ø¿ô
63 .BR dirfd ()
64 ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥È¥ê¡¼¥à
65 .I dirp
66 ¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£
67 .LP
68 ¤³¤Î¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ï¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥È¥ê¡¼¥à¤¬ÆâÉô¤Ç»ÈÍѤ¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
69 ¤è¤Ã¤Æ¡¢¥Õ¥¡¥¤¥ë¤Î°ÌÃ֤˰͸¤»¤º¡¢¤«¤Ä¤½¤Î°ÌÃÖ¤òÊѹ¹¤·¤Ê¤¤´Ø¿ô
70 .BR fstat (2)
71 ¤ä
72 .BR fchdir (2)
73 ¤Ê¤É¤Ç¤·¤«Ìò¤ËΩ¤¿¤Ê¤¤¡£
74 ¤³¤Î¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ï
75 .BR closedir (3)
76 ¤¬¸Æ¤Ð¤ì¤¿¤È¤­¤Ë¼«Æ°Åª¤Ë¥¯¥í¡¼¥º¤µ¤ì¤ë¡£
77 .SH ÊÖ¤êÃÍ
78 À®¸ù¤¹¤ë¤È¡¢Éé¤Ç¤Ê¤¤ÃͤΥե¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤¬ÊÖ¤µ¤ì¤ë¡£
79 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¤ë¡£
80 .SH ¥¨¥é¡¼
81 POSIX.1-2008 ¤Ç¤Ï 2 ¤Ä¤Î¥¨¥é¡¼¤¬µ¬Äꤵ¤ì¤Æ¤¤¤ë¡£
82 ¸½ºß¤Î¼ÂÁõ¤Ç¤Ï¤É¤Á¤é¤Î¥¨¥é¡¼¤âÊÖ¤µ¤ì¤Ê¤¤¡£
83 .\" glibc 2.8
84 .TP
85 .B EINVAL
86 .I dirp
87 ¤¬Í­¸ú¤Ê¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥È¥ê¡¼¥à¤ò»²¾È¤·¤Æ¤¤¤Ê¤¤¡£
88 .TP
89 .B ENOTSUP
90 ¤³¤Î¼ÂÁõ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Î¥Ç¥£¥ì¥¯¥È¥ê¤È¤Î´ØÏ¢ÉÕ¤±¤¬
91 ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
92 .SH ½àµò
93 POSIX.1-2008.
94 ¤³¤Î´Ø¿ô¤Ï BSD ³ÈÄ¥¤Ç¤¢¤Ã¤¿¡£
95 4.3BSD-Reno ¤Ë¤Ï¸ºß¤¹¤ë¤¬¡¢4.2BSD ¤Ë¤Ï¸ºß¤·¤Ê¤¤¡£
96 .\" libc5 (5.1.2 °Ê¹ß) ¤È glibc2 ¤Ë¸ºß¤¹¤ë¡£
97 .SH Ãí°Õ
98 .BR dirfd ()
99 ¤Î¥×¥í¥È¥¿¥¤¥×¤¬»ÈÍѲÄǽ¤Ê¤Î¤Ï¡¢
100 .B _BSD_SOURCE
101 ¤Þ¤¿¤Ï
102 .B _SVID_SOURCE
103 ¤¬ÄêµÁ¤µ¤ì¤¿¤È¤­¤Î¤ß¤Ç¤¢¤ë¡£
104 .SH ´ØÏ¢¹àÌÜ
105 .BR open (2),
106 .BR closedir (3),
107 .BR opendir (3),
108 .BR readdir (3),
109 .BR rewinddir (3),
110 .BR scandir (3),
111 .BR seekdir (3),
112 .BR telldir (3)