gingerBill
1cf7a56ba7
General clean up of code
2025-01-01 15:13:46 +00:00
jason
b73275cf42
Get arm64 up to speed in os2 linux
...
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.
2024-12-19 17:12:07 -05:00
Laytan Laats
6e1d028861
fix #4389 - retrieve file type by opening if other methods failed
2024-12-06 23:51:14 +01:00
Jeroen van Rijn
8581240ece
Make O_RDONLY default for os.open on all platforms.
...
And also moved Windows file procs to `os_windows.odin`, in line with all the other platforms who didn't have a dedicated `file_<platform>.odin`
2024-11-28 15:57:48 +01:00
Laytan Laats
282d956aa7
os2: skip dir test when unsupported
2024-11-15 21:56:55 +01:00
Laytan Laats
de9d0134e4
os2: fix file type detection in dir_windows
2024-11-15 21:08:14 +01:00
Laytan Laats
b3c2f5cb12
os2: fix leak in dir_windows
2024-11-15 20:47:34 +01:00
gingerBill
aa36ae01cf
Fix #4406 os2 to not close the std file handles but rather just free the memory for the ^File data.
2024-11-04 11:55:29 +00:00
gingerBill
ee76acd665
Merge pull request #4427 from laytan/posix-additions
...
Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
2024-10-30 11:43:47 +00:00
Laytan Laats
1cebc025b0
sys/posix: impl rest of linux, impl some of Windows
2024-10-28 18:59:06 +01:00
Patric Dexheimer
b6599a52b5
Update process_windows.odin
...
Mistype
2024-10-27 23:27:18 -03:00
Jeroen van Rijn
00ec862b63
Merge pull request #4335 from colrdavidson/datetime_tz
...
Add Timezone Support to Odin
2024-10-22 10:18:38 +02:00
Laytan
0157ff1541
Merge pull request #4118 from andradei/posix-linux
...
Linux POSIX support
2024-10-13 20:05:03 +02:00
Colin Davidson
4c8e355444
tweaks per laytan suggestions
2024-10-10 09:14:29 -07:00
Laytan Laats
6bf70b60d6
os/os2: add default permissions to write_entire_file
2024-10-07 22:31:43 +02:00
Laytan Laats
4b8462aa70
os/os2: fix mkdir_all on posix with abs path
2024-10-07 22:11:16 +02: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
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
Laytan Laats
76806080ef
fix os2.process_exec on non-windows and add a smoke test
2024-10-03 13:51:27 +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
flysand7
0e446e1d68
adjust docs
2024-09-29 07:54:29 +11:00
flysand7
d830069e5c
[os2/process]: Implement process_exec
2024-09-28 11:25:32 +11:00
flysand7
7deb28c810
[os2/process]: Unindent doc comments
2024-09-28 10:30:54 +11:00
flysand7
842f1ae304
Fix indentation issues
2024-09-26 07:13:00 +11:00
flysand7
dbad23385d
[os2]: Implement pipe_has_data procedure
2024-09-24 08:12:21 +11:00
gingerBill
c39b934e7f
Remove unused imports
2024-09-22 13:04:23 +01: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
flysand7
ee02d04a9b
[os2/process]: Don't quote arguments unless needed
2024-09-19 22:38:20 +11:00
gingerBill
6bbeb0a243
Merge pull request #4203 from karl-zylinski/file-tags-without-comments
...
Make tags use #+ syntax instead of //+
2024-09-19 12:36:43 +01:00
Yuriy Grynevych
80622bcb3a
Merge branch 'odin-lang:master' into os-get-current-directory-allocator-arg
2024-09-19 00:13:19 +03:00
Yuriy Grynevych
18fd1fefc3
Update core/os/os_openbsd.odin
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2024-09-19 00:11:17 +03:00