aboutsummaryrefslogtreecommitdiff
path: root/core/os/os_linux.odin
Commit message (Collapse)AuthorAgeFilesLines
* Alias heap calls from `base:runtime` is `core:os`gingerBill2024-01-281-21/+0
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-2/+2
|
* clean up field namesLaytan Laats2023-12-081-8/+5
|
* fix struct stat layout linux arm64Laytan Laats2023-12-061-20/+45
|
* Implement new sys/unix packageflysand72023-10-271-1/+12
|
* Fix wrong typegingerBill2023-09-121-2/+2
|
* fix(set_env): use `clone_to_cstring` instead of `unsafe_to_cstring`Rickard Andersson2023-06-271-2/+2
|
* style: use tabsRickard Andersson2023-06-271-3/+3
| | | | :[
* cleanup: remove leftover lineRickard Andersson2023-06-271-1/+0
|
* fix(os): use `setenv` instead of `putenv`Rickard Andersson2023-06-271-1/+5
| | | | | | `setenv` doesn't copy the value that is put, which means that the previous code had a bug where we free'd the temporary memory and the environment was accidentally cleared right after the function finished.
* fix(poll): make interface more odinaryRickard Andersson2023-06-151-9/+7
| | | | | We take `fds` as a normal slice and get the length from it instead of bothering with a second parameter.
* cleanup: more tabsRickard Andersson2023-06-141-10/+10
|
* fix(os_linux): call `ppoll` instead on `arm64`Rickard Andersson2023-06-141-3/+1
|
* cleanup(os_linux): remove `select`Rickard Andersson2023-06-141-8/+0
|
* feat(unix): add `poll`Rickard Andersson2023-06-141-0/+36
|
* Fix Timeval for darwin and linuxJames Duran2023-06-071-2/+2
|
* harmonize to use null for c-string endingsJon Lipstate2023-03-281-1/+1
|
* rename nul to null, allocation clarificationsJon Lipstate2023-03-281-1/+1
|
* Add `set_blocking` for network socketsSokus2023-03-081-0/+13
|
* more manual type carryoverColin Davidson2023-03-011-0/+8
|
* manually start merging core_netColin Davidson2023-03-011-0/+243
|
* Add temp allocator guard; clean up indentationgingerBill2023-02-281-9/+10
|
* Merge branch 'master' into new-temp-allocatorgingerBill2023-02-281-157/+70
|\
| * cleanup of os/linuxColin Davidson2023-02-281-157/+41
| |
| * make file access a little more normal across platformsColin Davidson2023-02-141-3/+31
| |
* | Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-101-0/+17
|/
* Fix memory leak in `os.get_current_directory` on failure on *nix systemsgingerBill2023-01-161-0/+1
|
* shuffle to private/public wrapperColin Davidson2023-01-061-3/+3
|
* add get core countColin Davidson2023-01-051-0/+5
|
* Make `os.get_last_error` contextlessgingerBill2022-12-081-1/+1
|
* Add `Allocator_Mode.Alloc_Non_Zerored`gingerBill2022-09-221-3/+9
|
* Correct syscalls for `linux_i386`gingerBill2022-08-241-1/+1
|
* [os] Linux: os.unset_env()Tetralux2022-05-181-0/+9
|
* [os] Linux: Add os.exists(), os.get_env(), os.lookup_env(), os.set_env()Tetralux2022-05-141-3/+24
| | | | | | exists() does the access() syscall. Renames getenv() to get_env() to match Windows.
* Minor improvements to io and osgingerBill2022-05-051-3/+0
|
* fix linux_arm64Sébastien Marie2022-03-121-11/+15
| | | | | - SYS_fork doesn't exist, uses SYS_clone - properly cast AT_FDCWD to uintptr
* Fix #1606 (Call `runtime._cleanup_runtime_contextless()` for `os.exit`)gingerBill2022-03-091-0/+1
|
* use `context.temp_allocator` instead of general allocation + delete()Sébastien Marie2022-02-241-18/+9
| | | | where clone_to_cstring is used with foreign code, it is prefered to use `context.temp_allocator` instead of using the general allocator and manually delete the memory after use.
* Use the _unix_fstat pointer to avoid 144B copies on fileIOColin Davidson2022-02-181-5/+7
|
* avoid memset on statsColin Davidson2022-02-161-3/+6
|
* Merge pull request #1488 from colrdavidson/masterJeroen van Rijn2022-02-151-0/+28
|\ | | | | Add fork and personality
| * Add fork and personalityColin Davidson2022-02-111-0/+28
| |
* | Merge branch 'master' into odin-global-constants-as-enumsgingerBill2022-02-151-0/+2
|\|
| * Merge pull request #1376 from jasonKercher/mastergingerBill2022-02-051-0/+2
| |\ | | | | | | Added zeroing to new memory regions from _unix_realloc
| | * added notes about _unix_allocCiD-2021-12-171-0/+2
| | |
* | | Convert `ODIN_OS` and `ODIN_ARCH` to use enums rather than use stringsgingerBill2022-01-201-13/+13
|/ /
* | check correct errno in _readlinkCiD-2022-01-121-2/+2
| |
* | os_linux additions + libc to syscallsCiD-2022-01-121-46/+231
|/
* core/sys/unix: Add syscalls_linux.odinYawning Angel2021-11-171-3/+2
| | | | | | | Linux is in the unfortunate situation where the system call number is architecture specific. This consolidates the system call number definitions in a single location, adds some wrappers, and hopefully fixes the existing non-portable invocations of the syscall intrinsic.
* Strip semicolons in core which were missinggingerBill2021-09-081-372/+372
|