OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / intro.3
1 .\" Copyright (C) 2007 Michael Kerrisk <mtk.manpages@gmail.com>
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 .\" 2007-10-23 mtk, Nearly a complete rewrite of the earlier page.
24 .\"
25 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
26 .\"         all rights reserved.
27 .\" Translated 2008-02-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\" 
29 .TH INTRO 3 2010-09-10 "Linux" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .\"O intro \- Introduction to library functions
32 .SH Ì¾Á°
33 intro \- ¥é¥¤¥Ö¥é¥ê´Ø¿ô¤Î¾Ò²ð
34 .\"O .SH DESCRIPTION
35 .SH ÀâÌÀ
36 .\"O Section 3 of the manual describes all library functions excluding the library
37 .\"O functions (system call wrappers) described in section 2,
38 .\"O which implement system calls.
39 ¥Þ¥Ë¥å¥¢¥ë¤Î 3 ¾Ï¤Ç¤Ï¡¢¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò¼ÂÁõ¤·¤¿ 2 ¾Ï¤ÇÀâÌÀ¤µ¤ì¤¿
40 ¥é¥¤¥Ö¥é¥ê´Ø¿ô (¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¥é¥Ã¥Ñ¡¼) ¤ò½ü¤¤¤¿
41 Á´¤Æ¤Î¥é¥¤¥Ö¥é¥ê´Ø¿ô¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤ë¡£
42
43 .\"O Many of the functions described in the section are part of the
44 .\"O Standard C Library
45 .\"O .RI ( libc ).
46 .\"O Some functions are part of other libraries (e.g.,
47 .\"O the math library,
48 .\"O .IR libm ,
49 .\"O or the real-time library,
50 .\"O .IR librt )
51 .\"O in which case the manual page will indicate the linker
52 .\"O option needed to link against the required library
53 .\"O (e.g.,
54 .\"O .I \-lm
55 .\"O and
56 .\"O .IR \-lrt ,
57 .\"O respectively,
58 .\"O for the aforementioned libraries).
59 ¤³¤Î¾Ï¤ÇÀâÌÀ¤·¤Æ¤¤¤ë´Ø¿ô¤Î¿¤¯¤Ïɸ½à C ¥é¥¤¥Ö¥é¥ê
60 .RI ( libc )
61 ¤Î¤â¤Î¤Ç¤¢¤ë¡£
62 ¤Þ¤¿¡¢¤¤¤¯¤Ä¤«¤Î´Ø¿ô¤Ï¡¢Â¾¤Î¥é¥¤¥Ö¥é¥ê (Î㤨¤Ð¡¢¿ô³Ø¥é¥¤¥Ö¥é¥ê¤Î
63 .I libm
64 ¤ä¥ê¥¢¥ë¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê
65 .I librt )
66 ¤Î¤â¤Î¤Ç¤¢¤ë¡£¸å¼Ô¤Î¾ì¹ç¤Ï¡¢¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ë¡¢
67 ɬÍפʥ饤¥Ö¥é¥ê¤È¥ê¥ó¥¯¤¹¤ë¤¿¤á¤ËɬÍפʥê¥ó¥«¥ª¥×¥·¥ç¥ó¤¬
68 ¼¨¤µ¤ì¤Æ¤¤¤ë (Î㤨¤Ð¡¢Á°½Ò¤Î¥é¥¤¥Ö¥é¥ê¤Î¾ì¹ç¤Ï¤½¤ì¤¾¤ì
69 .I \-lm
70 ¤ä
71 .I \-lrt
72 ¤Ç¤¢¤ë)¡£
73
74 .\"O In some cases,
75 .\"O the programmer must define a feature test macro in order to obtain
76 .\"O the declaration of a function from the header file specified
77 .\"O in the man page SYNOPSIS section.
78 .\"O (Where required, these feature test macros must be defined before including
79 .\"O .I any
80 .\"O header files.)
81 .\"O In such cases, the required macro is described in the man page.
82 .\"O For further information on feature test macros, see
83 .\"O .BR feature_test_macros (7).
84 ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Î¡Ö½ñ¼°¡×¤ÎÀá¤Ëµ¬Äꤵ¤ì¤¿¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤«¤é´Ø¿ô¤ÎÄêµÁ¤ò
85 ÆÀ¤ë¤¿¤á¤Ë¡¢¥×¥í¥°¥é¥Þ¤¬µ¡Ç½¸¡ºº¥Þ¥¯¥í¤òÄêµÁ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¡£
86 ¤³¤Î¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¢É¬Íפʥޥ¯¥í¤¬¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¡£
87 (µ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÄêµÁ¤¬É¬Íפʾì¹ç¡¢¤³¤ì¤é¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÄêµÁ¤Ï
88 ¡Ö¤É¤Î¡×¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Î¥¤¥ó¥¯¥ë¡¼¥É¤è¤ê¤âÁ°¤Ç¹Ô¤ï¤ì¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤)¡£
89 µ¡Ç½¸¡ºº¥Þ¥¯¥í¤Î¤µ¤é¤Ê¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢
90 .BR feature_test_macros (7)
91 ¤ò»²¾È¤Î¤³¤È¡£
92 .\"
93 .\"O .\" There
94 .\"O .\" are various function groups which can be identified by a letter which
95 .\"O .\" is appended to the chapter number:
96 .\" ¾ÏÈÖ¹æ¤ËÉÕ¤±²Ã¤¨¤é¤ì¤Æ¤¤¤ëʸ»ú¤Ë¤è¤Ã¤Æ¼±Ê̤Ǥ­¤ëÍÍ¡¹¤Ê´Ø¿ô¤Î¥°¥ë¡¼¥×¤¬¤¢¤ë:
97 .\" .IP (3C)
98 .\"O .\" These functions, the functions from chapter 2 and from chapter 3S are
99 .\"O .\" contained in the C standard library libc, which will be used by
100 .\"O .\" .BR cc (1)
101 .\"O .\" by default.
102 .\" ¤³¤ì¤é2¾Ï¤È3S¾Ï¤«¤é¤Î´Ø¿ô¤Ïɸ½àC¥é¥¤¥Ö¥é¥ê libc Ãæ¤Ë´Þ¤Þ¤ì¤ë¤â¤Î¤Ç¤¢¤ê¡¢
103 .\" ¥Ç¥Õ¥©¥ë¥È¤Ç
104 .\" .BR cc (1)
105 .\" ¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤ë¤Ç¤¢¤í¤¦¡£
106 .\" .IP (3S)
107 .\"O .\" These functions are parts of the
108 .\"O .\" .BR stdio (3)
109 .\"O .\" library.  They are contained in the standard C library libc.
110 .\" ¤³¤ì¤é¤Î´Ø¿ô¤Ï
111 .\" .BR stdio (3)
112 .\" ¥é¥¤¥Ö¥é¥ê¤Î°ìÉô¤Ç¤¢¤ë¡£É¸½àC¥é¥¤¥Ö¥é¥ê libc ¤Ë´Þ¤Þ¤ì¤ë¡£
113 .\" .IP (3M)
114 .\"O .\" These functions are contained in the arithmetic library libm.  They are
115 .\"O .\" used by the
116 .\"O .\" .BR f77 (1)
117 .\"O .\" FORTRAN compiler by default, but not by the
118 .\"O .\" .BR cc (1)
119 .\"O .\" C compiler, which needs the option \fI\-lm\fP.
120 .\" ¤³¤ì¤é¤Î´Ø¿ô¤Ï¿ô³Ø´Ø¿ô¥é¥¤¥Ö¥é¥ê libm ¤Ë´Þ¤Þ¤ì¤ë¡£¤³¤ì¤é¤Ï
121 .\" ¥Ç¥Õ¥©¥ë¥È¤Ç
122 .\" .BR f77 (1)
123 .\" ¥Õ¥©¡¼¥È¥é¥ó¥³¥ó¥Ñ¥¤¥é¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤ë¡¢¤·¤«¤·
124 .\" .BR cc (1)
125 .\" C¥³¥ó¥Ñ¥¤¥é¤Ç»ÈÍѤ¹¤ë¤È¤­¤Ï¡¢\fI\-lm\fP ¥ª¥×¥·¥ç¥ó¤¬É¬ÍפȤʤ롣
126 .\" .IP (3F)
127 .\"O .\" These functions are part of the FORTRAN library libF77.  There are no
128 .\"O .\" special compiler flags needed to use these functions.
129 .\" ¤³¤ì¤é¤Î´Ø¿ô¤Ï¥Õ¥©¡¼¥È¥é¥ó¥é¥¤¥Ö¥é¥ê libF77 ¤Î°ìÉô¤Ç¤¢¤ë¡£
130 .\" ¤³¤ì¤é¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ë¤¿¤á¤ËÆÃÊ̤ʥ³¥ó¥Ñ¥¤¥é¥Õ¥é¥°¤ÏɬÍפʤ¤¡£
131 .\" .IP (3X)
132 .\"O .\" Various special libraries.  The manual pages documenting their functions
133 .\"O .\" specify the library names.
134 .\" ÍÍ¡¹¤ÊÆÃÊ̤ʥ饤¥Ö¥é¥ê¤Ç¤¢¤ë¡£¤³¤ì¤é¤Î´Ø¿ô¤òʸ½ñ²½¤·¤¿¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï
135 .\" ¥é¥¤¥Ö¥é¥ê̾¤ò»ØÄꤹ¤ë¡£
136 .\"O .SH "CONFORMING TO"
137 .SH ½àµò
138 .\"O Certain terms and abbreviations are used to indicate UNIX variants
139 .\"O and standards to which calls in this section conform.
140 .\"O See
141 .\"O .BR standards (7).
142 ¤³¤Î¾Ï¤Î´Ø¿ô¤¬½àµò¤¹¤ë UNIX ¥·¥¹¥Æ¥à¤äɸ½à¤ò¼¨¤¹¤Î¤Ë¤¤¤¯¤Ä¤«¤Îñ¸ì¤äά¹æ¤¬
143 »ÈÍѤµ¤ì¤Æ¤¤¤ë¡£
144 .BR standards (7)
145 ¤ò»²¾È¤Î¤³¤È¡£
146 .\"O .SH NOTES
147 .SH È÷¹Í
148 .\"O .SS Authors and Copyright Conditions
149 .SS Ãø¼Ô¤ÈÃøºî¸¢
150 .\"O Look at the header of the manual page source for the author(s) and copyright
151 .\"O conditions.
152 .\"O Note that these can be different from page to page!
153 Ãø¼Ô¤ÈÃøºî¸¢¤Î¾õÂ֤ϥޥ˥奢¥ë¥Ú¡¼¥¸¤Î¥Ø¥Ã¥À¤ò¸«¤ë¤³¤È¡£
154 ¤³¤ì¤é¤Ï¥Ú¡¼¥¸Ëè¤Ë°Û¤Ê¤ë²ÄǽÀ­¤¬¤¢¤ë¤³¤È¤ËÃí°Õ¡£
155 .\"O .SH "SEE ALSO"
156 .SH ´ØÏ¢¹àÌÜ
157 .BR intro (2),
158 .BR errno (3),
159 .BR feature_test_macros (7),
160 .BR libc (7),
161 .BR standards (7)