Browse Source

libc: return 0 from getpgrp and getppid dummies

ncurses
Emery Hemingway 1 year ago
parent
commit
b06ff9afd5
  1. 21
      packages/genodelabs/libc.patch

21
packages/genodelabs/libc.patch

@ -64,3 +64,24 @@ index 37c2c83f89..bc2f15a90a 100644
+
} /* extern "C" */
commit f45e11626aca92be04bc9c8ed74f010ff62862dd
Author: Emery Hemingway <ehmry@posteo.net>
Date: Fri May 29 09:26:50 2020 +0530
libc: return 0 from getpgrp and getppid dummies
diff --git a/repos/libports/src/lib/libc/dummies.cc b/repos/libports/src/lib/libc/dummies.cc
index 150640ddf3..e511897600 100644
--- a/repos/libports/src/lib/libc/dummies.cc
+++ b/repos/libports/src/lib/libc/dummies.cc
@@ -109,8 +109,8 @@ DUMMY(char *, 0, _getlogin, (void))
DUMMY(int , -1, getnameinfo, (const sockaddr *, socklen_t, char *, size_t, char *, size_t, int))
DUMMY(struct servent *, 0, getservbyname, (const char *, const char *))
DUMMY(int , -1, getsid, (pid_t))
-DUMMY_SILENT(pid_t , -1, getppid, (void))
-DUMMY(pid_t , -1, getpgrp, (void))
+DUMMY_SILENT(pid_t , 0, getpgrp, (void))
+DUMMY_SILENT(pid_t , 0, getppid, (void))
DUMMY(int , -1, getpriority, (int, int))
DUMMY(int , -1, getrusage, (int, rusage *))
DUMMY_SILENT(uid_t , 0, getuid, (void))

Loading…
Cancel
Save