mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
cal: Add unveil and pledge promises
This commit is contained in:
parent
5c74e66f85
commit
9d7a862509
Notes:
sideshowbarker
2024-07-17 20:33:13 +09:00
Author: https://github.com/DavidLindbom
Commit: 9d7a862509
Pull-request: https://github.com/SerenityOS/serenity/pull/11975
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