Implemented syslog support for the kernel debug output. Not fancy at all yet, but

it seems to be working fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16073 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-01-24 20:28:52 +00:00
parent 91845703f8
commit eb2fc29abd
3 changed files with 188 additions and 13 deletions
@@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2006, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef SYSLOG_DAEMON_H
#define SYSLOG_DAEMON_H
@@ -28,6 +28,9 @@ struct syslog_message {
char message[1];
};
#define SYSLOG_MESSAGE_BUFFER_SIZE 8192
#define SYSLOG_MAX_MESSAGE_LENGTH (SYSLOG_MESSAGE_BUFFER_SIZE - sizeof(struct syslog_message))
#define SYSLOG_PRIORITY(options) ((options) & 0x7)
#define SYSLOG_FACILITY(options) ((options) & 0x03f8)
#define SYSLOG_FACILITY_INDEX(options) (SYSLOG_FACILITY(options) >> 3)