feat: ports - git port
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* <syslog.h> stub for the MontaukOS git port.
|
||||
*
|
||||
* git-compat-util.h includes this unconditionally, but the only caller is
|
||||
* daemon.c (`git daemon`), which this port does not build -- there are no
|
||||
* sockets to serve on. The declarations exist so the include resolves; the
|
||||
* inline bodies discard everything, which is the honest behaviour on a system
|
||||
* with no system logger.
|
||||
*/
|
||||
#ifndef _MONTAUK_GIT_SYSLOG_H_
|
||||
#define _MONTAUK_GIT_SYSLOG_H_
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define LOG_EMERG 0
|
||||
#define LOG_ALERT 1
|
||||
#define LOG_CRIT 2
|
||||
#define LOG_ERR 3
|
||||
#define LOG_WARNING 4
|
||||
#define LOG_NOTICE 5
|
||||
#define LOG_INFO 6
|
||||
#define LOG_DEBUG 7
|
||||
|
||||
#define LOG_PID 0x01
|
||||
#define LOG_CONS 0x02
|
||||
#define LOG_NDELAY 0x08
|
||||
|
||||
#define LOG_DAEMON (3 << 3)
|
||||
#define LOG_USER (1 << 3)
|
||||
|
||||
static inline void openlog(const char *ident, int option, int facility)
|
||||
{
|
||||
(void) ident; (void) option; (void) facility;
|
||||
}
|
||||
|
||||
static inline void closelog(void) { }
|
||||
|
||||
static inline void syslog(int priority, const char *fmt, ...)
|
||||
{
|
||||
(void) priority; (void) fmt;
|
||||
}
|
||||
|
||||
#endif /* _MONTAUK_GIT_SYSLOG_H_ */
|
||||
Reference in New Issue
Block a user