simon
e7adfff9bf
bugfix: darwin net flags
2023-10-06 16:41:13 +01:00
simon
98f9f7d42e
darwin _enumerate_interfaces
2023-09-30 20:09:29 +01:00
Laytan Laats
38d71e668d
add ADDRESS_FAMILY to darwin (currently only available in linux)
2023-07-03 19:56:56 +02:00
Laytan Laats
d38ea63c78
fix fcntl binding on darwin
2023-06-12 15:37:39 +02:00
James Duran
fed0c2ea26
Fix Timeval for darwin and linux
2023-06-07 21:55:08 -07:00
gingerBill
0c477f2c6b
Merge pull request #2289 from Lperlind/staging/fix_os_args
...
Fix out of range error with _alloc_command_line_arguments in darwin
2023-06-07 12:06:43 +01:00
gingerBill
3562a38f8c
Merge pull request #2558 from laytan/implement-set-blocking-darwin
...
implement non blocking sockets for darwin
2023-05-30 02:15:20 +01:00
Laytan Laats
2b31d85cd4
implement non blocking sockets for darwin
2023-05-27 22:40:05 +02:00
Laytan Laats
e350c37e6f
fix weird errno returned on darwin
2023-05-27 21:49:39 +02:00
Colin Davidson
14eed79a21
make baby pandas (and Jeroen) happy
2023-03-01 08:33:48 -08:00
Colin Davidson
d569daae33
more manual type carryover
2023-03-01 08:17:41 -08:00
Colin Davidson
28f7f57247
manually start merging core_net
2023-03-01 07:58:30 -08:00
gingerBill
9afd9f9bea
Merge branch 'master' into new-temp-allocator
2023-02-28 12:15:54 +00:00
Colin Davidson
df58a00564
fix errno/signatures
2023-02-14 18:43:48 -08:00
Colin Davidson
d546677ae7
fix typo
2023-02-14 18:39:09 -08:00
Colin Davidson
04b1023988
make file access a little more normal across platforms
2023-02-14 18:34:03 -08:00
gingerBill
986cba584e
Add runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD where appropriate
2023-02-10 16:23:33 +00:00
gingerBill
b6ca10cd5e
Fix memory leak in os.get_current_directory on failure on *nix systems
2023-01-16 15:29:45 +00:00
Colin Davidson
6ff2db47b4
shuffle to private/public wrapper
2023-01-06 13:33:47 -08:00
Colin Davidson
0484bdbb7e
fix darwin/freebsd
2023-01-05 01:14:51 -08:00
Colin Davidson
944396128b
add get core count
2023-01-05 01:06:55 -08:00
Lucas Perlind
2d824e4809
Fix out or range error with _alloc_command_line_arguments in darwin
2022-12-23 09:37:30 +11:00
Platin21
b983ac548c
Moves check up and sets flag to rdonly if dir is opened..
2022-12-22 01:36:04 +01:00
Platin21
fb562ea708
Adds error casting from last error if open fails
2022-12-22 01:26:06 +01:00
Platin21
cdeeeafc3f
Fixed issues with dir opening on macOS
2022-12-22 01:22:31 +01:00
gingerBill
ffe953b43d
Make os.get_last_error contextless
2022-12-08 16:04:03 +00:00
gingerBill
f76316f889
Merge branch 'master' into allocator-mode-alloc-non-zeroed
2022-11-03 12:47:11 +00:00
Colin Davidson
0e7109cab2
terminate read if we read EOF
2022-10-31 06:08:18 -07:00
Vitalii Kravchenko
d52a9b61af
Fix indentation
2022-10-02 07:47:22 +01:00
Vitalii Kravchenko
8a5b39f734
Darwin: allow reading/writing files larger than max(i32)
2022-10-02 07:40:28 +01:00
gingerBill
7f601c9535
Add Allocator_Mode.Alloc_Non_Zerored
2022-09-22 12:12:57 +01:00
Ricardo Silva
706d0c3a91
Fix allocation on darwin absolute_path_from_handle
2022-09-02 11:30:32 +01:00
William Roe
bb4329711c
[os] Darwin: Add os.exists()
2022-05-28 15:21:07 +01:00
William Roe
54a326f046
[os] Darwin,FreeBSD,OpenBSD: Rename os.getenv to os.get_env
...
Make os.get_env consistent across Unixes
This matches the function name and API from env_windows.odin and os_linux.odin, which should be the same everywhere. Meaning:
* named get_env and not getenv
* return a string (empty if the environment variable is not found)
* accept a default value parameter for the allocator (defaulting to context.allocator)
* calls lookup_env which returns an extra found boolean value
This is so that you don't have to write platform/OS conditionals when getting environment variable values from the stdlib os.get_env/getenv function.
2022-05-23 13:48:55 +01:00
Vitaly Kravchenko
9e2a847ebc
Typo fix
2022-05-13 09:32:04 +01:00
Vitaly Kravchenko
daef39a206
os_darwin.odin fixes
2022-05-13 09:27:15 +01:00
gingerBill
5d190b15d7
Minor improvements to io and os
2022-05-05 15:30:07 +01:00
Sébastien Marie
036900da51
fix mode_t on darwin
...
- fix mkdir() prototype (mode_t is u16)
- remove explicit cast
2022-03-13 12:41:03 +00:00
gingerBill
17eebf338c
Fix #1606 (Call runtime._cleanup_runtime_contextless() for os.exit)
2022-03-09 15:05:51 +00:00
Jeroen van Rijn
3a469dc13e
Merge pull request #1549 from semarie/clone_to_cstring-leak
...
delete allocated memory with clone_to_cstring
2022-02-24 12:42:15 +01:00
Sébastien Marie
14f1793b3e
use context.temp_allocator instead of general allocation + delete()
...
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.
2022-02-24 11:28:42 +00:00
Colin Davidson
aeaf1199ec
Add make_directory so darwin can build html docs
2022-02-24 01:13:51 -08:00
gingerBill
d695a8a526
Update os_darwin.odin
2022-02-15 16:02:14 +00:00
gingerBill
f5697dd7f2
Merge branch 'master' into odin-global-constants-as-enums
2022-02-15 15:47:24 +00:00
Platin21
a724573bb3
Fixes fopendir and readdir_r for arm64 or seemingly doing so
2022-02-05 21:16:58 +01:00
Platin21
3edf638cc6
Fixed Typo
2022-02-05 20:54:27 +01:00
Platin21
a571153458
Adds missing calls for os
2022-02-05 20:45:32 +01:00
gingerBill
fb710f8cbf
Merge pull request #1376 from jasonKercher/master
...
Added zeroing to new memory regions from _unix_realloc
2022-02-05 12:26:10 +00:00
gingerBill
da1edac56d
Enforce -strict-style in CI
2022-01-31 11:29:05 +00:00
gingerBill
3d7d347192
Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
2022-01-20 19:56:05 +00:00