Coverage Report

Created: 2022-10-06 21:30

/src/php-src/main/php_syslog.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
  +----------------------------------------------------------------------+
3
  | Copyright (c) The PHP Group                                          |
4
  +----------------------------------------------------------------------+
5
  | This source file is subject to version 3.01 of the PHP license,      |
6
  | that is bundled with this package in the file LICENSE, and is        |
7
  | available through the world-wide-web at the following url:           |
8
  | http://www.php.net/license/3_01.txt                                  |
9
  | If you did not receive a copy of the PHP license and are unable to   |
10
  | obtain it through the world-wide-web, please send a note to          |
11
  | license@php.net so we can mail you a copy immediately.               |
12
  +----------------------------------------------------------------------+
13
  | Author:                                                              |
14
  +----------------------------------------------------------------------+
15
*/
16
17
#ifndef PHP_SYSLOG_H
18
#define PHP_SYSLOG_H
19
20
#include "php.h"
21
22
#ifdef PHP_WIN32
23
#include "win32/syslog.h"
24
#else
25
#include <php_config.h>
26
#ifdef HAVE_SYSLOG_H
27
#include <syslog.h>
28
#endif
29
#endif
30
31
/* Syslog filters */
32
0
#define PHP_SYSLOG_FILTER_ALL   0
33
6.83k
#define PHP_SYSLOG_FILTER_NO_CTRL 1
34
0
#define PHP_SYSLOG_FILTER_ASCII   2
35
0
#define PHP_SYSLOG_FILTER_RAW   3
36
37
BEGIN_EXTERN_C()
38
PHPAPI void php_syslog(int, const char *format, ...);
39
PHPAPI void php_openlog(const char *, int, int);
40
END_EXTERN_C()
41
42
#endif