Commit Graph

1174 Commits

Author SHA1 Message Date
Colin Davidson
a6502c3e8c Initial cut of timezones 2024-10-09 19:26:43 -07:00
Beau McCartney
b0ff41e673 indent with tabs not spaces 2024-10-08 19:08:13 -06:00
Beau McCartney
41c717de3f vm_flags as a bitset 2024-10-08 19:08:13 -06:00
Beau McCartney
fee99c0800 move doc comment to right spot 2024-10-08 13:41:13 -06:00
Beau McCartney
58745bc7ae use b32 for boolean_t 2024-10-08 13:39:53 -06:00
Beau McCartney
27753ff7a8 VM_INHERIT_* as an enum 2024-10-08 12:51:18 -06:00
Beau McCartney
9004441e43 VM_PROT_* flags as a bitset 2024-10-08 12:51:12 -06:00
Beau McCartney
2695b269a4 kern return as an enum 2024-10-08 12:44:49 -06:00
Beau McCartney
67252ff415 make some types and procs match the c apis
procs:
| type          | old  | new (matching c api)|
| ---           | ---- | ------------------- |
| kern_return_t | u64  | c.int               |
| thread_t      | u64  | mach_port_t         |
| task_t        | u64  | mach_port_t         |
| semaphore_t   | u64  | mach_port_t         |

for mach_task_self(), return mach_port_t instead of task_t

for semaphore_signal_thread(), accept a thread_t instead of a thread_act_t
2024-10-08 12:12:21 -06:00
Beau McCartney
db8950922c add mach_port_deallocate - frees the port from mach_make_memory_entry() 2024-10-07 15:48:24 -06:00
Beau McCartney
7b1086b489 make aliases of vm types not distinct
I think they're meant to be used interchangeably, just typedefed to have more
clear names for certain contexts
2024-10-07 14:24:38 -06:00
Beau McCartney
f858374ef2 small cleanup 2024-10-07 11:45:45 -06:00
Beau McCartney
eaafe92402 remove vm_flags_t - not in the original sdk 2024-10-07 11:45:24 -06:00
Beau McCartney
15d70390e5 add missing trailing comma 2024-10-06 23:29:34 -06:00
Beau McCartney
75c5cf3e80 indent with tabs, not spaces 2024-10-06 23:02:36 -06:00
Beau McCartney
609eb00335 remove note comments 2024-10-06 22:47:46 -06:00
Beau McCartney
2fc04f29c8 make extra types distinct to fit existing types 2024-10-06 22:47:20 -06:00
Beau McCartney
5c0c1287dc put function parameters on the same line where possible to fit style 2024-10-06 22:45:10 -06:00
Beau McCartney
ac4f4e883a group type definitions 2024-10-06 22:41:42 -06:00
Beau McCartney
80c390e851 add mach procedures and vm_page_size
- vm_allocate()
- vm_deallocate()
- vm_map()
- mach_make_memory_entry()
2024-10-06 22:08:23 -06:00
jakubtomsu
0b74a661e3 add file flags like in WinBase.h 2024-10-06 19:53:04 +02:00
Beau McCartney
a205bcd0da add VM_INHERIT constants 2024-10-05 11:19:10 -06:00
Beau McCartney
27daebf46c add vm_prot_t constants 2024-10-05 11:18:32 -06:00
Beau McCartney
04ddcc5e64 add VM_FLAGS constants 2024-10-05 11:17:37 -06:00
Beau McCartney
7eabb1d744 add KERN_RETURN constants 2024-10-05 11:15:29 -06:00
Beau McCartney
3c2efb24b7 some mach types 2024-10-05 11:11:42 -06:00
Beau McCartney
2181a42bbf rename mach import cause its not just for threads now 2024-10-05 11:09:58 -06:00
Laytan Laats
5d556fe277 fix idtype definition 2024-10-03 15:25:51 +02:00
gingerBill
af9ae4897a Merge pull request #4290 from flysand7/pipe-has-data
[os2/process]: Implement `process_exec`, and `pipe_has_data`
2024-10-01 11:30:28 +01:00
Laytan Laats
ab54ad3a75 sys/posix: use '#max_field_align' 2024-09-30 16:39:14 +02:00
Laytan
5cd1784d41 review/correct/cleanup posix linux PR 2024-09-30 16:00:46 +02:00
gingerBill
4a616d97df Pass delta time instead of current time to odin.js step 2024-09-29 10:14:56 +01:00
flysand7
e54b1560ee Add missing registers in User_Regs on AMD64 2024-09-26 07:27:11 +11:00
flysand7
abd52529a6 Revert "Add missing registers in User_Regs on AMD64"
This reverts commit acfac3cf2d.
2024-09-26 07:26:01 +11:00
flysand7
acfac3cf2d Add missing registers in User_Regs on AMD64 2024-09-26 07:25:40 +11:00
flysand7
842f1ae304 Fix indentation issues 2024-09-26 07:13:00 +11:00
Colin Davidson
f3ab14b8cc Merge branch 'master' into macharena 2024-09-24 02:32:06 -07:00
Colin Davidson
99938c7d4f spawn tweaks 2024-09-24 02:31:44 -07:00
flysand7
dbad23385d [os2]: Implement pipe_has_data procedure 2024-09-24 08:12:21 +11:00
gingerBill
95721fe296 Add gamepad support 2024-09-22 19:29:05 +01:00
gingerBill
66e83ef30d Add gamepad events 2024-09-22 16:24:46 +01:00
gingerBill
94288161e9 Add new js events 2024-09-22 15:52:04 +01:00
gingerBill
634fa7aa30 Move vendor:wasm/js to core:sys/wasm/js 2024-09-22 13:13:34 +01:00
Isaac Andrade
c1a67f37e6 Fix O_Flag_Bits.EXEC for non Linux platforms on posix/fcntl. 2024-09-21 21:37:41 -06:00
Isaac Andrade
cc60725eda Move bit set creation to compiler guard. Fix indentation on posix/sys_sem. 2024-09-21 21:28:18 -06:00
Isaac Andrade
04c08c2e2d Resolve bit set differences between linux and other platforms in posix/fcntl 2024-09-21 21:24:18 -06:00
Isaac Andrade
c68d847fb3 Satisfy the compiler. 2024-09-21 20:59:54 -06:00
Isaac Andrade
5162c6c506 Rename sigaction duplicate type to sigaction_t on linux, following other platforms. 2024-09-21 20:56:52 -06:00
Isaac Andrade
10702f1134 Implement POSIX pthread, signal, sys/resource, unistd for Linux. 2024-09-21 20:44:33 -06:00
gingerBill
327ca2ab71 Merge pull request #4261 from laytan/net-bound-endpoint
net: add `bound_endpoint` procedure
2024-09-19 12:53:42 +01:00