Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
Sys-Syslog /
Delete
Unzip
Name
Size
Permission
Date
Action
blib
[ DIR ]
drwxr-xr-x
2016-10-10 17:40
fallback
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
lib
[ DIR ]
drwxr-xr-x
2016-10-10 17:40
t
[ DIR ]
drwxr-xr-x
2016-10-10 18:24
win32
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
Makefile
30.64
KB
-rw-r--r--
2016-10-10 17:40
Makefile.PL
6.55
KB
-r--r--r--
2014-12-27 11:48
Syslog.bs
0
B
-rw-r--r--
2016-10-10 17:41
Syslog.c
20.49
KB
-rw-r--r--
2016-10-10 17:40
Syslog.o
16.02
KB
-rw-r--r--
2016-10-10 17:40
Syslog.pm
45.29
KB
-r--r--r--
2014-12-27 11:48
Syslog.xs
2.46
KB
-r--r--r--
2014-12-27 11:48
const-c.inc
4.14
KB
-rw-r--r--
2016-10-10 17:40
const-xs.inc
7.73
KB
-rw-r--r--
2016-10-10 17:40
macros.all
452
B
-rw-r--r--
2016-10-10 17:40
pm_to_blib
0
B
-rw-r--r--
2016-10-10 17:40
Save
Rename
/* * Syslog.xs * * XS wrapper for the syslog(3) facility. * */ #if defined(_WIN32) # include <windows.h> #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifdef USE_PPPORT_H # include "ppport.h" #endif #ifndef HAVE_SYSLOG #define HAVE_SYSLOG 1 #endif #if defined(_WIN32) && !defined(__CYGWIN__) # undef HAVE_SYSLOG # include "fallback/syslog.h" #else # if defined(I_SYSLOG) || PATCHLEVEL < 6 # include <syslog.h> # endif #endif static SV *ident_svptr; #ifndef LOG_FAC #define LOG_FACMASK 0x03f8 #define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3) #endif #ifndef LOG_PRIMASK #define LOG_PRIMASK 0x07 #endif #ifndef LOG_PRI #define LOG_PRI(p) ((p) & LOG_PRIMASK) #endif #ifndef LOG_MAKEPRI #define LOG_MAKEPRI(fac, pri) (((fac) << 3) | (pri)) #endif #ifndef LOG_MASK #define LOG_MASK(pri) (1 << (pri)) #endif #ifndef LOG_UPTO #define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) #endif #include "const-c.inc" MODULE = Sys::Syslog PACKAGE = Sys::Syslog INCLUDE: const-xs.inc int LOG_FAC(p) INPUT: int p int LOG_PRI(p) INPUT: int p int LOG_MAKEPRI(fac,pri) INPUT: int fac int pri int LOG_MASK(pri) INPUT: int pri int LOG_UPTO(pri) INPUT: int pri #ifdef HAVE_SYSLOG void openlog_xs(ident, option, facility) INPUT: SV* ident int option int facility PREINIT: STRLEN len; char* ident_pv; CODE: ident_svptr = newSVsv(ident); ident_pv = SvPV(ident_svptr, len); openlog(ident_pv, option, facility); void syslog_xs(priority, message) INPUT: int priority const char * message CODE: syslog(priority, "%s", message); int setlogmask_xs(mask) INPUT: int mask CODE: RETVAL = setlogmask(mask); OUTPUT: RETVAL void closelog_xs() PREINIT: U32 refcnt; CODE: if (!ident_svptr) return; closelog(); refcnt = SvREFCNT(ident_svptr); if (refcnt) { SvREFCNT_dec(ident_svptr); if (refcnt == 1) ident_svptr = NULL; } #else /* HAVE_SYSLOG */ void openlog_xs(ident, option, facility) INPUT: SV* ident int option int facility CODE: void syslog_xs(priority, message) INPUT: int priority const char * message CODE: int setlogmask_xs(mask) INPUT: int mask CODE: void closelog_xs() CODE: #endif /* HAVE_SYSLOG */