codon/stdlib/sys.codon

13 lines
277 B
Python
Raw Normal View History

# Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
2022-01-24 10:14:50 +00:00
2021-09-27 18:02:44 +00:00
argv = list(__argv__, len(__argv__))
stdin = File(_C.seq_stdin())
stdout = File(_C.seq_stdout())
stderr = File(_C.seq_stderr())
2022-02-16 15:51:16 +00:00
def exit(status: int = 0):
2021-09-27 18:02:44 +00:00
raise SystemExit(status)
2022-01-24 10:14:50 +00:00
maxsize = 0x7FFFFFFFFFFFFFFF