cfunction src/core/os.c on line 197, column 1 (os/exit &opt x) Exit from janet with an exit code equal to x. If x is not an integer, the exit with status equal the hash of x.
$ janet -e '(os/exit 42)' ; echo $? 42