blob: 3f76f0464239bab12a6e4394d1e82e5a2a6668a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <LibCore/CFile.h>
#include "ASEventLoop.h"
int main(int, char**)
{
if (pledge("stdio thread shared_buffer accept rpath wpath cpath unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
ASEventLoop event_loop;
if (pledge("stdio thread shared_buffer accept rpath wpath", nullptr) < 0) {
perror("pledge");
return 1;
}
return event_loop.exec();
}
|