403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/p5-Sys-Load/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/p5-Sys-Load/files/patch-Load.xs
--- Load.xs	2002-08-31 02:00:32.000000000 +0000
+++ Load.xs	2011-01-19 12:07:14.000000000 +0000
@@ -2,6 +2,7 @@
 #include "perl.h"
 #include "XSUB.h"
 #include "stdlib.h"
+#include <time.h>
 
 
 MODULE = Sys::Load         PACKAGE = Sys::Load
@@ -22,3 +23,16 @@
     XPUSHs(sv_2mortal(newSVnv(load[2])));
   }
 
+void
+uptime()
+PROTOTYPE:
+PREINIT:
+  struct timespec t;
+  int i;
+PPCODE:
+  i = clock_gettime(CLOCK_MONOTONIC, &t);
+  if(i == -1)
+		XSRETURN_EMPTY;
+  else {
+		XPUSHs(sv_2mortal(newSVnv(t.tv_sec)));
+	}

Youez - 2016 - github.com/yon3zu
LinuXploit