Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3154817
_syslog_override.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
_syslog_override.c
View Options
/*
* Copyright (c) 2016 Red Hat, Inc.
*
* All rights reserved.
*
* Author: Jan Pokorny <jpokorny@redhat.com>
*
* This file is part of libqb.
*
* libqb is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* libqb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libqb. If not, see <http://www.gnu.org/licenses/>.
*/
#include "_syslog_override.h"
#include <limits.h>
#include <string.h>
int _syslog_opened = 0;
int _syslog_option = 0;
int _syslog_facility = 0;
char _syslog_ident[PATH_MAX] = "";
void openlog(const char *ident, int option, int facility);
void
openlog(const char *ident, int option, int facility)
{
_syslog_opened = 1;
_syslog_option = option;
_syslog_facility = facility;
strncpy(_syslog_ident, ident, sizeof(_syslog_ident));
}
void syslog(int priority, const char *format, ...);
void
syslog(int priority, const char *format, ...)
{
_syslog_opened = 1;
}
void closelog(void);
void
closelog(void)
{
_syslog_opened = 0;
_syslog_option = -1;
_syslog_facility = -1;
_syslog_ident[0] = '\0';
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Feb 26, 4:38 PM (3 h, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1465565
Default Alt Text
_syslog_override.c (1 KB)
Attached To
Mode
rQ LibQB
Attached
Detach File
Event Timeline
Log In to Comment