mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
env: Use pledge()
This commit is contained in:
parent
b2f9a60bdb
commit
4b0e0bd9b8
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (size_t i = 0; environ[i]; ++i)
|
||||
printf("%s\n", environ[i]);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue