1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-02-01 03:25:41 +08:00
TrollStore/Installer/TrollInstaller/TrollInstaller/exploit/necp.c
2022-09-02 17:19:48 +02:00

17 lines
443 B
C

#include "necp.h"
#include <sys/syscall.h>
#include <unistd.h>
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
int necp_open(int flags)
{
return syscall(SYS_necp_open, flags);
}
int necp_client_action(int necp_fd, uint32_t action, uint8_t *client_id, size_t client_id_len, uint8_t *buffer, size_t buffer_size)
{
return syscall(SYS_necp_client_action, necp_fd, action, client_id, client_id_len, buffer, buffer_size);
}