mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
env: Use pledge()
This commit is contained in:
parent
b2f9a60bdb
commit
4b0e0bd9b8
Notes:
sideshowbarker
2024-07-19 09:14:08 +09:00
Author: https://github.com/awesomekling
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