aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
Commit message (Collapse)AuthorAgeFilesLines
* add timerfd_* syscall wrappersFelix Salcher2025-12-131-3/+24
|
* Merge pull request #5741 from FourteenBrush/patch-4Jeroen van Rijn2025-12-101-1/+1
|\ | | | | Make `linux.IO_Vec.base` a multipointer
| * Make `linux.IO_Vec.base` a multipointerFourteenBrush2025-10-021-1/+1
| |
* | Implement more Linux syscalls (#5705)bc-universe2025-11-244-31/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement some more Linux syscalls * Fixed typo and removed stray comments * Correct types for some syscalls * Fix types and add variadic argument for prctl * flag fixes * when x86/amd64 only * more fixes --------- Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
* | sys/linux: add io uring APILaytan2025-11-104-6/+516
| |
* | conditional packed for EPoll_Event to match kernelChris Hayen2025-10-211-3/+19
|/
* Fix ITimer_Flags_Bits enum valuediniamo2025-08-141-1/+1
|
* sys/linux: Unify IPC_Flags and IPC_Mode bitsetsSunagatov Denis2025-06-242-23/+21
| | | | | | | | | | | | | | | | | | | | | In #5399 it was noticed, that IPC_Mode isn't being used within SystemV IPC procedures, even though it was designed this way, which lead to a weird API where in order to call SystemV IPC procedures multiple transmutes and a bitwise-OR are needed. This unifies IPC_Mode and IPC_Flags bitsets, making it possible to call the SystemV IPC procedures without extra casts, and rearranges the flags in a way that hopefully makes it easier to see when they are not colliding and should not be mixed. The explanation, explaining this arrangement of the enum was added. The IPC_Perm structure is modified, so that the flags can be re-used between the calls. It's probably not as good as keeping them separate, but should work... hopefully. Kept the "old" style of documentation for consistency. Signed-off-by: Sunagatov Denis <thebumboni@gmail.com>
* Merge branch 'master' into tiocgwinsz_timeRaph2025-06-205-40/+102
|\
| * Use idiomatic `rawptr(nil)`Feoramund2025-06-081-2/+1
| |
| * Work around untyped nilJeroen van Rijn2025-06-081-1/+2
| |
| * Removed obsolete `tz` param from `gettimeofday`Tohei Ichikawa2025-06-082-10/+2
| |
| * Added missing parameter to `gettimeofday`Tohei Ichikawa2025-06-082-2/+10
| |
| * Formatting fixesKrzesimir Nowak2025-05-181-10/+10
| |
| * sys/linux: Improve documentation for Dirent and related proceduresKrzesimir Nowak2025-05-172-19/+51
| |
| * Move things to constants.odinJeroen van Rijn2025-05-123-19/+23
| |
| * Update `linux.Map_Flags_Bits`Jeroen van Rijn2025-05-122-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #5151 - Removes `SHARED_VALIDATE` from the enum and turns it into `Map_Shared_Validate :: Map_Flags{.SHARED, .PRIVATE}` so it has the proper value of 0x03. - Adds `DROPPABLE`. - Adds constants `MAP_HUGE_SHIFT` and `MAP_HUGE_MASK`. - Adds the huge page precomputed constants from `mman.h`, defined as the log2 of the size shifted left by `MAP_HUGE_SHIFT`: Map_Huge_16KB Map_Huge_64KB Map_Huge_512KB Map_Huge_1MB Map_Huge_2MB Map_Huge_8MB Map_Huge_16MB Map_Huge_32MB Map_Huge_256MB Map_Huge_512MB Map_Huge_1GB Map_Huge_2GB Map_Huge_16GB
| * Fix linux.dirent_namejason2025-04-131-1/+1
| | | | | | | | Was not searching the first possible byte for 0.
| * Add linux build tag to core/sys/linux/sys.odinHarold Brenes2025-04-021-0/+1
| |
| * Fixed #4892: 'EPoll_Event.events' should be bit set.Wison Ye2025-03-222-17/+23
| |
* | added TIOCGWINSZ to darwin, linux and freebsdRaphGL2025-06-201-0/+3
|/
* Fix linux.rt_sigactionjason2025-03-101-1/+1
| | | | Add missing polymorphic parameter to Sig_Action
* Add missing syscalls from map_shadow_stack to removexattratlatedeployment2025-03-071-1/+14
|
* Fix bindings for sys/linux and posix/unistd.odingingerBill2025-01-311-2/+2
|
* Added IP_ADD_MEMBERSHIP Socket Option on Linuxcandtechsoftware2025-01-291-0/+1
|
* make -vet happyjason2025-01-101-1/+1
|
* Implement _read_directory_iterator in os2.jason2025-01-101-16/+12
| | | | Also, fix minor bug in linux.dirent_name.
* add 32 bit Sig_Info and remove ppoll_time64 calljason2025-01-032-72/+156
|
* Fix sys/linux 64 bit arguments on 32 bit systemsjason2025-01-022-6/+21
| | | | | Reverese return values of compat64_arg_pair Add register alignment to specific arm32 system calls
* Minor fixes + cleanup in os2 and sys/linuxjason2025-01-023-5/+6
| | | | | | Add NOFOLLOW to os2.remove Change Dev from int to u64 and make relavant casts Fix compat64_arg_pair
* Merge pull request #4613 from fnknda/fix-linux-bindgingerBill2025-01-011-0/+10
|\ | | | | Fix calls to bind always returning EINVAL when using linux.Sock_Addr_In
| * Remove extra white spaceJoao Fukuda2024-12-221-1/+0
| | | | | | | | Got in on 0a2200f without me noticing, mb.
| * Fix issue #4612Joao Fukuda2024-12-221-0/+11
| |
* | Get arm64 up to speed in os2 linuxjason2024-12-191-37/+59
|/ | | | | | Readded open flags for arm64 to sys/linux/bits.odin. Make process_start name based instead of descriptor based to allow running of scripts. Fix bug in heap_linux. Fix and simplify os2.remove.
* core:sys/linux - prefixing + moved IN_CLOSE/IN_MOVE to constantsA10293847562024-11-132-38/+46
|
* core:sys/linux - flags, spacing, inotify_initA10293847562024-11-134-23/+37
|
* core:sys/linux - fixed vet errorsA10293847562024-11-132-2/+2
|
* core:sys/linux - implemented inotifyA10293847562024-11-134-3/+72
| | | | core:sys/linux - added constants and spacing
* Merge pull request #4118 from andradei/posix-linuxLaytan2024-10-131-60/+37
|\ | | | | Linux POSIX support
| * review/correct/cleanup posix linux PRLaytan2024-09-301-60/+37
| |
* | Add missing registers in User_Regs on AMD64flysand72024-09-261-0/+6
| |
* | Merge pull request #4203 from karl-zylinski/file-tags-without-commentsgingerBill2024-09-198-9/+9
|\ \ | | | | | | Make tags use #+ syntax instead of //+
| * | Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-148-9/+9
| | | | | | | | | | | | file tag syntax.
* | | [sys/linux]: Fix the order of arguments for ptrace cont, singlestep and syscallflysand72024-09-181-14/+15
|/ /
* / sys/info: more CPU feature detection for RISC-Vlaytan2024-09-024-0/+117
|/
* Merge pull request #4089 from laytan/riscv64gingerBill2024-08-224-36/+399
|\ | | | | add support for linux_riscv64 and freestanding_riscv64
| * correct the riscv64 stat structsLaytan2024-08-211-20/+1
| |
| * add support for linux_riscv64 and freestanding_riscv64Laytan2024-08-204-34/+416
| |
* | changed signature of clock_getresYeongju Kang2024-08-211-3/+4
| |
* | implement clock_settime, clock_getres and clock_nanosleepYeongju Kang2024-08-191-3/+29
|/