gctf2023/pwn/flipper/dist/userspace/libc/include/nonstd.h

25 lines
538 B
C
Raw Normal View History

2023-11-24 18:11:34 +00:00
#pragma once
#include "../../../common/include/kernel/syscall-definitions.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Creates a new process.
*
* @param path the path to the binary to open
* @param sleep whether the calling process should sleep until the other process terminated
* @return -1 if the path did not lead to an executable, 0 if the process was executed successfully
*
*/
extern int createprocess(const char* path, int sleep);
extern int flipBit(const void* address, int bit_num);
#ifdef __cplusplus
}
#endif