File: catopen.3

package info (click to toggle)
manpages-ja 0.4.0.0.20020315-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,808 kB
  • ctags: 4
  • sloc: sh: 9,595; perl: 157; makefile: 62
file content (178 lines) | stat: -rw-r--r-- 4,949 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
.\" 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
.SH ̾
catopen, catclose \- åΥץ/
.SH 
.B #include <nl_types.h>
.sp
.BI "nl_catd catopen(const char *" name ", int " flag );
.br
.BI "int catclose(nl_catd " catalog );
.SH 
ؿ
.B catopen()
ϥå򥪡ץ󤷡ǥץ֤
Υǥץ catclose() ޤ exec() 
ƤӽФޤͭǤ롣
ǥץ뤿
եǥץѤȡ
FD_CLOEXEC ե饰ꤵ롣
.LP

.I name
ϥץ󤹤å̾ꤹ롣
.I name
ХѥǻꤵƤ (ʤ '/'ޤǤ)
.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
Ķѿ˰¸롣
 LC_MESSAGES ѹȡ
ץ󤵤Ƥ륫ǥץ̵ˤʤ뤫⤷ʤ
.LP
.B catopen()

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

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

.B NL_CAT_LOCALE
ꤵƤϡѤꤹΤ˻Ȥ롣
.TP
.B LANG
.I flag
 0 ξ硢Ѥꤹ롣
.SH 
ʾ POSIX 1003.1-2001 ˤǤ롣
glibc Ǥ NL_CAT_LOCALE ͤ 1 Ǥ
(ʲ MCLoadAll Ӥ)
ǥեȤΥѥϾˤä͡Ǥ뤬̾
.I /usr/share/locale
ʲΥե뤬Ĵ٤롣
.SH "LIBC4  LIBC5 ˤ"
δؿ libc.so.4.4.4c ʹߤǻѲǽǤ롣
linux  libc4  libc5 ˤƤϡǥץ
.I nl_catd
 mmap() 줿ΰǤäƥեǥץǤϤʤ
.B catopen()

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

.I /usr/share/locale
ʲΥե뤬Ĵ٤롣
.SH 
POSIX 1003.1-2001 ˽򤹤롣
XPG 1987, Vol. 3 ˤϡ\fIcatopen  flag 
Ѥ뤿ͽ󤵤ƤΤǡ 
0 ꤷƤ٤Ǥ롣\fRפȽ񤫤Ƥ롣
 MCLoadBySet  MCLoadAll б륽
ǤΤϤäꤷƤʤ
.SH Ϣ
.BR catgets (3),
.BR setlocale (3)