Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
system.h
Go to the documentation of this file.
1#ifndef CORE_SYSTEM_H
2#define CORE_SYSTEM_H
3
4#ifdef _WIN32
5#include <windows.h>
6#include <process.h>
7#elif defined(__APPLE__) && defined(__MACH__)
8#include <unistd.h>
9#include <mach/mach.h>
10#include <mach/host_info.h>
11#elif defined(__linux__)
12#include <unistd.h>
13#include <sys/types.h>
14#include <sys/wait.h>
15#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
16#include <sys/types.h>
17#include <sys/sysctl.h>
18#include <unistd.h>
19#include <sys/wait.h>
20#endif
21
22#include <stdlib.h>
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
30
31 int PHASORstd_sys_run(const char *name, int argc, char **argv);
32
33 int PHASORstd_sys_run_detached(const char *name, int argc, char **argv);
34
35#ifdef __cplusplus
36}
37#endif
38#endif // CORE_SYSTEM_H
int PHASORstd_sys_run_detached(const char *name, int argc, char **argv)
Definition system.c:90
size_t PHASORstd_sys_getAvailableMemory()
Definition system.c:3
int PHASORstd_sys_run(const char *name, int argc, char **argv)
Definition system.c:56