Kernel: Tighten up some promise checks

Since we're not keeping compatibility with OpenBSD about what promises are
required for which syscalls, tighten things up so that they make more sense.
This commit is contained in:
Sergey Bugaev 2020-05-31 21:58:06 +03:00 committed by Andreas Kling
commit 05b7fec517
Notes: sideshowbarker 2024-07-19 05:55:22 +09:00
2 changed files with 5 additions and 10 deletions

View file

@ -31,11 +31,6 @@
int main(int argc, char** argv)
{
if (pledge("stdio", nullptr) < 0) {
perror("pledge");
return 1;
}
if (argc == 1) {
char buffer[HOST_NAME_MAX];
int rc = gethostname(buffer, sizeof(buffer));