Commit Graph

378 Commits

Author SHA1 Message Date
gingerBill
5b5154eda0 Add temp allocator guard; clean up indentation 2023-02-28 12:38:36 +00:00
gingerBill
9afd9f9bea Merge branch 'master' into new-temp-allocator 2023-02-28 12:15:54 +00:00
Colin Davidson
edd78ae129 cleanup of os/linux 2023-02-28 01:17:43 -08:00
gingerBill
eb60ec3899 Fix unreachable error 2023-02-19 12:53:22 +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
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
6e647a88eb Keep -vet happy 2023-02-10 16:36:50 +00:00
gingerBill
986cba584e Add runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD where appropriate 2023-02-10 16:23:33 +00:00
gingerBill
162628000f Calculate the size needed before allocating 2023-02-10 11:55:08 +00:00
gingerBill
55b79c078c Remove := context.allocator usage in package os2 2023-02-10 11:46:29 +00:00
Daniel
d23d7cf0f2 Add caller location info to os.read_entire_file()
This helps people using the mem.Tracking_Allocator to more easily
pinpoint where they leaked memory in their own code, rather than
having the leaks be reported as if they were in the core library
itself.
2023-01-27 02:42:16 -05: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
3935957979 remove unused c import 2023-01-06 13:53:32 -08:00
Colin Davidson
a36640bcfc more windows fixes 2023-01-06 13:51:25 -08:00
Colin Davidson
171d5b4012 more windows kerfuffle 2023-01-06 13:45:21 -08:00
Colin Davidson
6ff2db47b4 shuffle to private/public wrapper 2023-01-06 13:33:47 -08:00
Colin Davidson
50a2493fd3 add get thread count to openbsd 2023-01-05 01:48:00 -08:00
Colin Davidson
b455ccd261 fix more things? 2023-01-05 01:37:50 -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
gingerBill
b00c4a6a8f Merge pull request #2272 from sir-w7/fix/darwin_mem_leak
Fixed memory leak in dir_darwin.odin.
2022-12-22 10:58:59 +00: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
sir-w7
67c1b364c4 Fixed memory leak in dir_darwin.odin. 2022-12-21 07:25:13 -08:00
gingerBill
ffe953b43d Make os.get_last_error contextless 2022-12-08 16:04:03 +00:00
gingerBill
e45401bfb4 Fix #2207 2022-11-23 14:14:22 +00:00
gingerBill
f76316f889 Merge branch 'master' into allocator-mode-alloc-non-zeroed 2022-11-03 12:47:11 +00:00
gingerBill
32477a88ef Merge pull request #2165 from JopStro/master
Implement os open for wasi_wasm32 target
2022-11-03 12:43:55 +00:00
Jeroen van Rijn
0ca773114a Fix os.read implementation on Windows. 2022-11-02 16:48:39 +01:00
JopStro
18d7ecc1a5 wasi: Add FD_FILESTAT_GET to default file open rights 2022-11-01 12:56:36 +00:00
JopStro
91ad6b42c5 rename default_dir to current_dir 2022-10-31 21:46:47 +00:00
JopStro
71eb21aab7 implement open for wasi_wasm32 target 2022-10-31 21:21:10 +00:00
Colin Davidson
0e7109cab2 terminate read if we read EOF 2022-10-31 06:08:18 -07:00
gingerBill
62ab2987b6 Change name to windows_set_file_info_times 2022-10-26 16:08:49 +01:00
gingerBill
7bcde35651 Heavily improve time handling on Windows for time.now() and os.File_Info 2022-10-26 16:05:49 +01:00
Phuk Ng Yu
8b06fd0935 os2/file_windows fix 2022-10-07 00:06:46 -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
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
Vitaly Kravchenko
d469c2da48 Fix indent 2022-09-21 17:31:37 +01:00
gingerBill
f50fc33749 Clean up of the core library to make the stream vtables not be pointers directly. 2022-09-15 10:00:50 +01:00
Jeroen van Rijn
426f02906b [sys/info] Add OpenBSD detection support. 2022-09-04 20:37:38 +02:00
Ricardo Silva
706d0c3a91 Fix allocation on darwin absolute_path_from_handle 2022-09-02 11:30:32 +01:00
gingerBill
cb9e16f4df Correct syscalls for linux_i386 2022-08-24 12:37:56 +01:00