summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheMorc <r.gracik@gmail.com>2021-01-15 18:07:51 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-15 18:47:07 +0100
commitb2086c8d7749f6bab881091806fff85fff1f353d (patch)
treee763a9c08684d6ca8eb9577b65a08a70f046242f
parenta525d0271c087000dfbf04a8fa5865e826ac7f5e (diff)
downloadserenity-b2086c8d7749f6bab881091806fff85fff1f353d.zip
Demos+Games: Pledge "sendfd" in demos and games
-rw-r--r--Userland/Demos/CatDog/main.cpp4
-rw-r--r--Userland/Demos/Cube/Cube.cpp2
-rw-r--r--Userland/Demos/Fire/Fire.cpp2
-rw-r--r--Userland/Demos/LibGfxDemo/main.cpp2
-rw-r--r--Userland/Demos/LibGfxScaleDemo/main.cpp2
-rw-r--r--Userland/Demos/Mouse/main.cpp2
-rw-r--r--Userland/Demos/WidgetGallery/main.cpp2
-rw-r--r--Userland/Games/Breakout/main.cpp4
-rw-r--r--Userland/Games/Solitaire/main.cpp2
9 files changed, 11 insertions, 11 deletions
diff --git a/Userland/Demos/CatDog/main.cpp b/Userland/Demos/CatDog/main.cpp
index 3b7587a65d..282ada7534 100644
--- a/Userland/Demos/CatDog/main.cpp
+++ b/Userland/Demos/CatDog/main.cpp
@@ -194,7 +194,7 @@ private:
int main(int argc, char** argv)
{
- if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
@@ -202,7 +202,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
auto app_icon = GUI::Icon::default_icon("app-catdog");
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Demos/Cube/Cube.cpp b/Userland/Demos/Cube/Cube.cpp
index f7273c7d79..e40d21bd31 100644
--- a/Userland/Demos/Cube/Cube.cpp
+++ b/Userland/Demos/Cube/Cube.cpp
@@ -193,7 +193,7 @@ int main(int argc, char** argv)
{
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Demos/Fire/Fire.cpp b/Userland/Demos/Fire/Fire.cpp
index 2e91c78333..f2861d0a11 100644
--- a/Userland/Demos/Fire/Fire.cpp
+++ b/Userland/Demos/Fire/Fire.cpp
@@ -216,7 +216,7 @@ int main(int argc, char** argv)
{
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Demos/LibGfxDemo/main.cpp b/Userland/Demos/LibGfxDemo/main.cpp
index c60c0e56d6..ef8f069312 100644
--- a/Userland/Demos/LibGfxDemo/main.cpp
+++ b/Userland/Demos/LibGfxDemo/main.cpp
@@ -200,7 +200,7 @@ int main(int argc, char** argv)
{
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Demos/LibGfxScaleDemo/main.cpp b/Userland/Demos/LibGfxScaleDemo/main.cpp
index ade1e1da62..83eb6a23ab 100644
--- a/Userland/Demos/LibGfxScaleDemo/main.cpp
+++ b/Userland/Demos/LibGfxScaleDemo/main.cpp
@@ -92,7 +92,7 @@ int main(int argc, char** argv)
{
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Demos/Mouse/main.cpp b/Userland/Demos/Mouse/main.cpp
index 80960610a8..352f394fc4 100644
--- a/Userland/Demos/Mouse/main.cpp
+++ b/Userland/Demos/Mouse/main.cpp
@@ -174,7 +174,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
auto app_icon = GUI::Icon::default_icon("app-mouse");
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Demos/WidgetGallery/main.cpp b/Userland/Demos/WidgetGallery/main.cpp
index 37e5c4efa2..b331bcc970 100644
--- a/Userland/Demos/WidgetGallery/main.cpp
+++ b/Userland/Demos/WidgetGallery/main.cpp
@@ -86,7 +86,7 @@ int main(int argc, char** argv)
{
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Breakout/main.cpp b/Userland/Games/Breakout/main.cpp
index 578bda8c83..347dd10bcb 100644
--- a/Userland/Games/Breakout/main.cpp
+++ b/Userland/Games/Breakout/main.cpp
@@ -34,14 +34,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Solitaire/main.cpp b/Userland/Games/Solitaire/main.cpp
index de04b18218..7607c9b4b7 100644
--- a/Userland/Games/Solitaire/main.cpp
+++ b/Userland/Games/Solitaire/main.cpp
@@ -39,7 +39,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
auto app_icon = GUI::Icon::default_icon("app-solitaire");
- if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}