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 |
|
Laytan Laats
|
5c63617191
|
net: fix leaking sockets in listen_tcp if an error occurs
|
2024-10-08 21:08:14 +02:00 |
|
Laytan Laats
|
d8af35f01e
|
net: fix leaking sockets in dial_tcp if connect errors
|
2024-10-08 21:01:57 +02: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 |
|
Laytan Laats
|
6bf70b60d6
|
os/os2: add default permissions to write_entire_file
|
2024-10-07 22:31:43 +02: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 |
|
Laytan Laats
|
4b8462aa70
|
os/os2: fix mkdir_all on posix with abs path
|
2024-10-07 22:11:16 +02: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
|
c21e62ddb4
|
reset n before stderr path too
|
2024-10-05 11:26:23 +02:00 |
|
flysand7
|
f61996fd6f
|
Don't append to buffer if nothing was read
|
2024-10-05 11:06:36 +11:00 |
|
Laytan
|
b5f7332ffb
|
Merge pull request #4272 from flysand7/os2-noquote
[os2/process]: Don't quote arguments unless needed
|
2024-10-04 23:12:07 +02:00 |
|
flysand7
|
dad418cf91
|
Remove unused things
|
2024-10-05 07:23:15 +11:00 |
|
Laytan
|
54ffd6df06
|
better error handling
|
2024-10-04 15:08:21 +02:00 |
|
Laytan
|
a3c3e5c822
|
reset err
|
2024-10-04 14:53:16 +02:00 |
|
Laytan
|
cf705d4b29
|
wait instead of kill
|
2024-10-04 14:50:26 +02:00 |
|
Laytan
|
861efa4e54
|
Revert "add some debug logs"
This reverts commit 31ee829b44.
|
2024-10-04 13:58:59 +02:00 |
|
Laytan
|
59086a24a1
|
add .ENOSYS == .Unsupported for posix too
|
2024-10-04 13:52:54 +02:00 |
|
Laytan
|
424dc590a3
|
fix bsds process_open
|
2024-10-04 13:52:44 +02:00 |
|
Laytan
|
31ee829b44
|
add some debug logs
|
2024-10-04 13:40:25 +02:00 |
|
Laytan
|
d9cfe692a9
|
make sure stdout and stderr always point to allocation
|
2024-10-04 13:24:40 +02:00 |
|
Laytan
|
64508e477b
|
add unsupported check in process test
|
2024-10-04 13:24:24 +02:00 |
|
Laytan
|
563ed69c28
|
fix deadlock when in write_errno_to_parent_and_abort state
|
2024-10-04 13:24:14 +02:00 |
|
Laytan Laats
|
386f144cca
|
satisfy -vet
|
2024-10-04 10:54:27 +02:00 |
|
Laytan Laats
|
1d29dfd037
|
kill process if waiting didn't make it exit to avoid a zombie
|
2024-10-04 10:51:40 +02:00 |
|
Laytan Laats
|
ae69f4b749
|
general cleanup
|
2024-10-04 10:50:14 +02:00 |
|
Laytan Laats
|
0b5cd3400f
|
use dynamic array instead of string builder
|
2024-10-04 10:43:38 +02:00 |
|
Laytan Laats
|
77b033cf96
|
kill process if there was an error during reading to not leave a zombie
|
2024-10-04 10:38:47 +02:00 |
|
Laytan Laats
|
5d556fe277
|
fix idtype definition
|
2024-10-03 15:25:51 +02:00 |
|
Laytan Laats
|
7676480526
|
fix temp allocator guard bug
|
2024-10-03 14:39:54 +02:00 |
|
Laytan Laats
|
77780f9ce8
|
fix use-after-free - closing wrong pipe
|
2024-10-03 14:24:00 +02:00 |
|