OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / setlogmask.3
1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" Japanese Version Copyright (c) 2001 Akihiro MOTOKI
32 .\"         all rights reserved.
33 .\" Translated Sat Nov  3 01:46:03 JST 2001
34 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\"
36 .TH SETLOGMASK 3 2001\-10\-05 "" "Linux Programmer's Manual"
37 .SH 名前
38 setlogmask \- ログの優先度マスクを設定する
39 .SH 書式
40 .nf
41 \fB#include <syslog.h>\fP
42 .sp
43 \fBint setlogmask(int \fP\fImask\fP\fB);\fP
44 .fi
45 .SH 説明
46 プロセスにはログ優先度マスク(log priority mask)が用意されていて、 これを用いて \fBsyslog\fP(3)
47 が呼び出された場合にログ記録を行うかどうかを決定する。 他のすべての関数が呼び出された場合はログ記録が行われない。 \fImask\fP
48 の各ビットは優先度に対応しており、対応するビットが 1 にセットされている 優先度に対してログ収集(logging)が有効になる。
49 マスクの初期値は、すべての優先度に対してログ収集が有効になるような値である。
50 .LP
51 \fBsetlogmask\fP()  関数は、呼び出し元のプロセスに対するログマスクを設定し、 変更前のマスクを返す。 \fImask\fP 引き数が 0
52 ならば、現在のログマスクは変更されない。
53 .LP
54 以下の8レベルの優先度が定義されている(優先度の高い順): \fBLOG_EMERG\fP, \fBLOG_ALERT\fP, \fBLOG_CRIT\fP,
55 \fBLOG_ERR\fP, \fBLOG_WARNING\fP, \fBLOG_NOTICE\fP, \fBLOG_INFO\fP, \fBLOG_DEBUG\fP。 優先度
56 \fIp\fP に対応するビット列は \fILOG_MASK(p)\fP によって求められる。 優先度 \fIp\fP 以上のすべての優先度 (\fIp\fP を含む)
57 のマスクビットを 求めることができるマクロ \fILOG_UPTO(p)\fP を使用できるシステムもある。
58 .SH 返り値
59 変更前のログ優先度マスクの値を返す。
60 .SH エラー
61 .\" .SH NOTES
62 .\" The glibc logmask handling was broken in versions before glibc 2.1.1.
63 なし。
64 .SH 準拠
65 POSIX.1\-2001.  POSIX.1\-2001 での説明には欠陥があることに注意すること。
66 .SH 関連項目
67 \fBcloselog\fP(3), \fBopenlog\fP(3), \fBsyslog\fP(3)
68 .SH この文書について
69 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
70 である。プロジェクトの説明とバグ報告に関する情報は
71 http://www.kernel.org/doc/man\-pages/ に書かれている。