403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
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/net/vortex/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/vortex/files/patch-vortex.c
--- ./vortex.c.orig	2011-09-16 15:35:15.000000000 -0400
+++ ./vortex.c	2013-04-18 09:50:33.000000000 -0400
@@ -38,6 +38,12 @@
 
 #ifdef linux
 #include <syscall.h>
+#elif defined(__FreeBSD__)
+#include <sys/param.h>
+#include <sys/cpuset.h>
+typedef cpuset_t cpu_set_t;
+#include <limits.h>
+#define SIZE_MAX SSIZE_MAX
 #endif
 
 #include <unistd.h>
@@ -65,8 +71,13 @@
 #endif
 
 //don't ask me why this isn't in headers?
-#define gettid() syscall(__NR_gettid)
+#ifdef linux
 #define my_sched_setaffinity(a,b,c) sched_setaffinity(a, b, c)
+#define gettid() syscall(__NR_gettid)
+#elif defined(__FreeBSD__)
+#define my_sched_setaffinity(a,b,c) (-1)
+#define gettid() 0
+#endif
 
 //TODO LIST:
 

Youez - 2016 - github.com/yon3zu
LinuXploit