OSDN Git Service

d7293f836fda21371e0aaf0f2be08b42f7af764a
[linuxjm/LDP_man-pages.git] / draft / 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 .TH SETLOGMASK 3 2001\-10\-05 "" "Linux Programmer's Manual"
31 .SH 名前
32 setlogmask \- ログの優先度マスクを設定する
33 .SH 書式
34 .nf
35 \fB#include <syslog.h>\fP
36 .sp
37 \fBint setlogmask(int \fP\fImask\fP\fB);\fP
38 .fi
39 .SH 説明
40 プロセスにはログ優先度マスク(log priority mask)が用意されていて、 これを用いて \fBsyslog\fP(3)
41 が呼び出された場合にログ記録を行うかどうかを決定する。 他のすべての関数が呼び出された場合はログ記録が行われない。 \fImask\fP
42 の各ビットは優先度に対応しており、対応するビットが 1 にセットされている 優先度に対してログ収集(logging)が有効になる。
43 マスクの初期値は、すべての優先度に対してログ収集が有効になるような値である。
44 .LP
45 \fBsetlogmask\fP()  関数は、呼び出し元のプロセスに対するログマスクを設定し、 変更前のマスクを返す。 \fImask\fP 引き数が 0
46 ならば、現在のログマスクは変更されない。
47 .LP
48 The eight priorities are \fBLOG_EMERG\fP, \fBLOG_ALERT\fP, \fBLOG_CRIT\fP,
49 \fBLOG_ERR\fP, \fBLOG_WARNING\fP, \fBLOG_NOTICE\fP, \fBLOG_INFO\fP, and \fBLOG_DEBUG\fP.
50 The bit corresponding to a priority \fIp\fP is \fILOG_MASK(p)\fP.  Some systems
51 also provide a macro \fILOG_UPTO(p)\fP for the mask of all priorities in the
52 above list up to and including \fIp\fP.
53 .SH 返り値
54 変更前のログ優先度マスクの値を返す。
55 .SH エラー
56 .\" .SH NOTES
57 .\" The glibc logmask handling was broken in versions before glibc 2.1.1.
58 なし。
59 .SH 準拠
60 POSIX.1\-2001.  POSIX.1\-2001 での説明には欠陥があることに注意すること。
61 .SH 関連項目
62 \fBcloselog\fP(3), \fBopenlog\fP(3), \fBsyslog\fP(3)
63 .SH この文書について
64 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
65 である。プロジェクトの説明とバグ報告に関する情報は
66 http://www.kernel.org/doc/man\-pages/ に書かれている。