Skip to content

Commit 796a446

Browse files
committed
Add comment about return value
1 parent 9dad34c commit 796a446

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/emscripten_syscalls.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#include "emscripten.h"
22
#include "stdio.h"
33

4+
// All system calls: return nonnegative number on success, return -errno on
5+
// failure. Negative results get stored back into errno here:
6+
// https://github.com/emscripten-core/emscripten/blob/main/system/lib/libc/musl/src/internal/syscall_ret.c#L7
7+
48
// If we're running in node, report the UID of the user in the native system as
59
// the UID of the user. Since the nodefs will report the uid correctly, if we
610
// don't make getuid report it correctly too we'll see some permission errors.

0 commit comments

Comments
 (0)