gingerBill
039d9938b9
Fix return value
2023-02-10 17:20:14 +00:00
gingerBill
f50ea649f6
Minor fix
2023-02-10 17:15:40 +00: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
gingerBill
ffe953b43d
Make os.get_last_error contextless
2022-12-08 16:04:03 +00:00
gingerBill
c767d55e9a
Fix typo
2022-09-22 12:21:43 +01:00
gingerBill
7f601c9535
Add Allocator_Mode.Alloc_Non_Zerored
2022-09-22 12:12:57 +01:00
gingerBill
9eb3da0474
Remove import cycle on FreeBSD
2022-07-18 15:20:28 +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
gingerBill
5d190b15d7
Minor improvements to io and os
2022-05-05 15:30:07 +01:00
Sébastien Marie
ca67cf032c
freebsd_amd64 support
2022-03-13 11:42:42 +00:00
gingerBill
e6d3e893a5
Merge pull request #1602 from hoanga/freebsd-build-support
...
update to build for freebsd
2022-03-12 08:45:53 +00:00
gingerBill
17eebf338c
Fix #1606 (Call runtime._cleanup_runtime_contextless() for os.exit)
2022-03-09 15:05:51 +00:00
Al Hoang
0278ac85a0
update to build for FreeBSD
2022-03-08 23:48:25 -06:00
Sébastien Marie
d3c70f2206
remove the optional ; in os_freebsd.odin
2022-02-24 11:30:33 +00: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
CiD-
ebdb3ab43a
added notes about _unix_alloc
2021-12-17 12:04:05 -05:00
gingerBill
8ff898079f
Minor correct for freebsd
2021-09-08 13:14:23 +01:00
gingerBill
465b6139d5
Temporarily fix syscall in Linux and Freebsd (eventually to be replaced with a proper implementation)
2021-05-13 12:05:23 +01:00
gingerBill
359ae29d98
Minor fixes
2021-03-18 13:25:41 +00:00
gingerBill
a2557142cc
Update package os for package path/filepath support on macOS
2021-02-27 11:30:43 +00:00
gingerBill
aa93305015
Replace usage of inline proc with #force_inline proc in the core library
2021-02-23 16:14:47 +00:00
kennethmaples
6d5bd8bead
Fix layout of Stat for linux and make usage consistent across unix variants
2020-12-29 17:45:19 +08:00
Christian Seibold
a13eed9894
Cleanup, check sched_param and SCHED_* constants in pthread_freebsd.odin
2020-09-15 01:34:01 -05:00
Christian Seibold
dd7b29e681
Finish add all errors
2020-09-14 16:18:36 -05:00
Christian Seibold
577be4a8ae
Get Odin compiling and produced exe's running on FreeBSD
2020-09-14 15:22:35 -05:00