File: catopen.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (193 lines) | stat: -rw-r--r-- 5,030 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
.\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified Thu Dec 13 22:51:19 2001 by Martin Schulze <joey@infodrom.org>
.\" Modified 2001-12-14 aeb
.\"
.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
.\"	all rights reserved.
.\" Translated Tue Dec 16 19:43:18 JST 1997
.\"	by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
.\" Updated & Modified Mon Jan 14 06:48:39 JST 2002
.\"     by Yuichi SATO <ysato@h4.dion.ne.jp>
.\"
.TH CATOPEN 3 2001-12-14 "GNU" "Linux Programmer's Manual"
.SH ̾
catopen, catclose \- åΥץ/
.SH 
.B #include <nl_types.h>
.sp
.BI "nl_catd catopen(const char *" name ", int " flag );

.BI "int catclose(nl_catd " catalog );
.SH 
ؿ
.BR catopen ()
ϥå򥪡ץ󤷡ǥץ֤
Υǥץ
.BR catclose ()
ޤ
.BR execve (2)
ƤӽФޤͭǤ롣
ǥץ뤿
եǥץѤȡ
.B FD_CLOEXEC
ե饰ꤵ롣
.LP

.I name
ϥץ󤹤å̾ꤹ롣
.I name
ХѥǻꤵƤ (ʤ \(aq/\(aq ޤǤ)
.I name
ϥåؤΥѥ̾Ǥ롣
ʳξ硢Ķѿ
.B NLSPATH

.I name
ȤȤ˻Ѥ
.B %N
֤
.RB ( locale (7)
)
ץ root ¤äƤȤ
.B NLSPATH
Ȥ뤫ɤϻꤵƤʤ
.B NLSPATH
Ķѿ¸ߤʤ
.B NLSPATH
ǻꤵ줿ѥ
ɤΥѥˤƤå򥪡ץǤʤ硢
ƤѥȤ롣
ԤΥǥեȥѥϡ
.I flag

.B NL_CAT_LOCALE
ξˤ
.B LC_MESSAGES
Υ˰¸
.I flag
 0 ξˤ
.B LANG
Ķѿ˰¸롣

.B LC_MESSAGES
ѹȡ
ץ󤵤Ƥ륫ǥץ̵ˤʤ뤫⤷ʤ
.LP
.BR catopen ()

.I flag
ϡѤΥ򼨤˻Ȥ롣
.B NL_CAT_LOCALE
ꤵȡ
.B LC_MESSAGES
θߤΥ꤬Ȥ롣
ʳξ
.B LANG
ĶѿȤ롣
.LP
ؿ
.BR catclose ()

.I catalog
ǻꤵ줿å򥯥롣
ϡʹߤ
.I catalog
ǻꤵåؤƤλȤ̵ˤ롣
.SH ֤
ؿ
.BR catopen ()
ȡ
.I nl_catd
Υåǥץ֤
Ԥ \fI(nl_catdv) \-1\fP ֤
.I errno
ꤷƥ顼򼨤
ǵ륨顼ͤˤϡ
.BR open (2)
θƤӽФκݤ˵ƤΥ顼ͤޤޤ롣
.LP
ؿ
.BR catclose ()
ϡ 0 򡢼Ԥ \-1 ֤
.SH Ķѿ
.TP
.B LC_MESSAGES
.B LC_MESSAGES
Υˤʤ뤳ȤǽʤΤǡ
.I flag

.B NL_CAT_LOCALE
ꤵƤϡѤꤹΤ˻Ȥ롣
.TP
.B LANG
.I flag
 0 ξ硢Ѥꤹ롣
.SH 
POSIX.1-2001.
.\" XPG 1987, Vol. 3 ˤϡ\fIcatopen  flag 
.\" Ѥ뤿ͽ󤵤ƤΤǡ
.\" 0 ꤷƤ٤Ǥ롣\fRפȽ񤫤Ƥ롣

.B MCLoadBySet

.B MCLoadAll
б륽ǤΤϤäꤷƤʤ ()
.SH 
ʾ POSIX.1-2001 ˤǤ롣
glibc Ǥ
.B NL_CAT_LOCALE
ͤ 1 Ǥ
.B MCLoadAll
ӤΤ)
ǥեȤΥѥϾˤä͡Ǥ뤬̾
.I /usr/share/locale
ʲΥե뤬Ĵ٤롣
.SS Linux ˤ
δؿ libc.so.4.4.4c ʹߤǻѲǽǤ롣
linux  libc4  libc5 ˤƤϡǥץ
.I nl_catd

.BR mmap (2)
줿ΰǤäƥեǥץǤϤʤ
.BR catopen ()

.I flag
ϡ
.B MCLoadBySet
(=0) 
.B MCLoadAll
(=1) Τɤ餫Ǥ롣
Ԥξ硢ΥåȤɬ׻˥ɤ롣
Ԥξ硢ǽ
.BR catopen ()
θƤӽФΤȤƤΥ˥ɤ롣
ǥեȤΥѥϾˤä͡Ǥ뤬̾
.I /etc/locale

.I /usr/share/locale
ʲΥե뤬Ĵ٤롣
.SH Ϣ
.BR catgets (3),
.BR setlocale (3)