Commit Graph

222 Commits

Author SHA1 Message Date
gingerBill
633157f4f8 Merge pull request #1613 from semarie/linux_arm64
fix Linux arm64 support
2022-03-14 11:37:45 +00:00
gingerBill
fc0291d745 Merge pull request #1526 from odin-lang/freestanding_amd64
Freestanding target for amd64
2022-03-14 11:09:52 +00:00
gingerBill
a7adb2fb6e Merge branch 'master' into freestanding_amd64 2022-03-14 11:02:59 +00: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
Sébastien Marie
ca67cf032c freebsd_amd64 support 2022-03-13 11:42:42 +00:00
Sébastien Marie
8982ae34e3 fix linux_arm64
- SYS_fork doesn't exist, uses SYS_clone
- properly cast AT_FDCWD to uintptr
2022-03-12 09:19:52 +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
6d1a91f5b3 Fix typo 2022-03-09 15:11:38 +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
gingerBill
31959b0751 Correct cleanpath_from_handle for os.fstat 2022-03-08 10:01:44 +00:00
gingerBill
dd9843aa21 Merge pull request #1557 from semarie/openbsd-support
initial OpenBSD support
2022-02-28 14:23:56 +00:00
gingerBill
45124e4d5c Merge branch 'master' into freestanding_amd64 2022-02-28 12:32:51 +00:00
gingerBill
e9f901b82d Keep -vet happy 2022-02-25 15:30:24 +00:00
gingerBill
ed3004f8a0 Correct read_console reading 2022-02-25 15:30:05 +00:00
gingerBill
d97df080f9 Revert change 2022-02-25 15:08:02 +00:00
gingerBill
0e5c7e08fc Change < to <= 2022-02-25 14:54:35 +00:00
gingerBill
376906e0ae Merge branch 'master' of https://github.com/odin-lang/Odin 2022-02-25 12:02:49 +00:00
gingerBill
47c79a2f25 Correct os.read on windows for os.stdin 2022-02-25 12:02:41 +00:00
gingerBill
32988b0363 Correct internals for os.read on windows (read_console) for os.stdin (Fix #1556) 2022-02-25 12:01:53 +00:00
Sébastien Marie
5676c9e7eb initial OpenBSD support 2022-02-25 08:49:25 +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
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
Colin Davidson
aeaf1199ec Add make_directory so darwin can build html docs 2022-02-24 01:13:51 -08:00
Colin Davidson
54a6637d38 Use the _unix_fstat pointer to avoid 144B copies on fileIO 2022-02-18 20:50:49 -08:00
Colin Davidson
536bf61323 avoid memset on stats 2022-02-16 08:14:11 -08:00
Jeroen van Rijn
855e7beab1 Merge pull request #1488 from colrdavidson/master
Add fork and personality
2022-02-15 21:04:09 +01: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
Colin Davidson
f77cd5533d Add fork and personality 2022-02-11 08:10:48 -08: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
CiD-
e5868e3205 add zeroing regardless of ODIN_OS 2022-01-20 10:17:47 -05:00
CiD-
8eaafd5242 check correct errno in _readlink 2022-01-12 14:51:49 -05:00
CiD-
774951e8c0 os_linux additions + libc to syscalls 2022-01-12 14:36:18 -05:00
Platin21
8ff6f95571 Removes the default create flag 2022-01-03 20:40:56 +01:00
Platin21
68e5f57e27 Fixes open system call (Thanks TIM!) 2022-01-03 20:34:57 +01:00
CiD-
ebdb3ab43a added notes about _unix_alloc 2021-12-17 12:04:05 -05:00
CiD-
29ca6ee420 add zeroing to new region from realloc 2021-12-17 10:41:49 -05:00
gingerBill
6616882708 Correct reading from a console on Windows
e.g. `os.read(os.stdin, buf[:])`
2021-11-27 14:59:35 +00:00
gingerBill
c9c197ba08 Add os.read_at_least and os_read_full utility procedures. 2021-11-27 14:57:49 +00:00
Yawning Angel
61c581baeb core/sys/unix: Add syscalls_linux.odin
Linux is in the unfortunate situation where the system call number is
architecture specific.  This consolidates the system call number
definitions in a single location, adds some wrappers, and hopefully
fixes the existing non-portable invocations of the syscall intrinsic.
2021-11-17 14:00:00 +00:00
Jeroen van Rijn
dd88104a81 Fix os.walk for UNC paths. 2021-11-10 14:59:54 +01:00
gingerBill
321d93bff1 Merge branch 'master' into target-js_wasm32 2021-11-09 18:06:19 +00:00
Jeroen van Rijn
0a3b75c5f5 [core:os/os2] Keep -vet happy. 2021-11-09 14:06:14 +01:00