mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
cal: Add unveil and pledge promises
This commit is contained in:
parent
5c74e66f85
commit
9d7a862509
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/DateTime.h>
|
#include <LibCore/DateTime.h>
|
||||||
|
#include <LibCore/System.h>
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -89,6 +90,9 @@ static void clean_buffers()
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
|
TRY(Core::System::pledge("stdio"));
|
||||||
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
||||||
int day = 0;
|
int day = 0;
|
||||||
int month = 0;
|
int month = 0;
|
||||||
int year = 0;
|
int year = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue