1 .\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified Thu Dec 13 22:51:19 2001 by Martin Schulze <joey@infodrom.org>
24 .\" Modified 2001-12-14 aeb
26 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
27 .\" all rights reserved.
28 .\" Translated Tue Dec 16 19:43:18 JST 1997
29 .\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
30 .\" Updated & Modified Mon Jan 14 06:48:39 JST 2002
31 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
33 .TH CATOPEN 3 2001-12-14 "GNU" "Linux Programmer's Manual"
35 catopen, catclose \- メッセージカタログのオープン/クローズ
37 .B #include <nl_types.h>
39 .BI "nl_catd catopen(const char *" name ", int " flag );
41 .BI "int catclose(nl_catd " catalog );
45 はメッセージカタログをオープンし、カタログディスクリプタを返す。
58 はオープンするメッセージカタログの名前を指定する。
60 が絶対パスで指定されている場合 (すなわち \(aq/\(aq を含んでいる場合)、
72 プロセスが root 権限を持っているときに
79 どのパスにおいてもメッセージカタログをオープンできない場合、
95 オープンされているカタログディスクリプタが無効になるかもしれない。
100 引き数は、使用される言語のソースを示すために使われる。
113 で指定されたメッセージカタログをクローズする。
116 で指定されるメッセージカタログへの全ての参照を無効にする。
122 型のメッセージカタログディスクリプタを返す。
123 失敗した場合は \fI(nl_catdv) \-1\fP を返し、
128 の呼び出しの際に起こり得る全てのエラーの値が含まれる。
132 は、成功した場合 0 を、失敗した場合 \-1 を返す。
137 ロケール設定のソースになることも可能なので、
141 に設定されている場合は、使用する言語を決定するのに使われる。
148 .\" XPG 1987, Vol. 3 には、「\fIcatopen の flag 引き数は
149 .\" 将来使用するために予約されているので、
150 .\" 0 に設定しておくべきである。\fR」と書かれている。
155 に対応するソースが何であるのかがはっきりしていない (下記参照)。
157 以上は POSIX.1-2001 における説明である。
164 デフォルトのパスは場合によって様々であるが、通常は
168 これらの関数は libc.so.4.4.4c 以降で使用可能である。
169 linux の libc4 と libc5 においては、カタログディスクリプタ
173 されたメモリの領域であってファイルディスクリプタではない。
182 前者の場合、カタログのセットは必要時にロードされる。
185 の呼び出しのときに全てのカタログがメモリ内にロードされる。
186 デフォルトのパスは場合によって様々であるが、通常は