Commit Graph

66 Commits

Author SHA1 Message Date
gingerBill
2cc22d118d Require parentheses for #align(N) 2023-08-15 14:55:02 +01:00
gingerBill
a78d6fe0b3 Use i64 instead of int for internal procedures 2023-06-14 12:31:57 +01:00
gingerBill
08e466938f Merge branch 'master' into new-io 2023-06-14 12:07:04 +01:00
José Rey Méndez
10f2136675 fix: read file from windows was not returning platform error correctly 2023-06-12 19:28:41 -03:00
gingerBill
e16c6c1b6b Replace procedure strings.concatenate 2023-06-12 12:58:47 +01:00
gingerBill
2a212a7556 Put stream into the impl 2023-06-08 17:00:38 +01:00
gingerBill
145a7a24e8 Use io.Stream as the internal interface for os2.File 2023-06-08 16:55:01 +01:00
gingerBill
6c040497ef Update os2 to new io.Stream 2023-06-08 16:45:13 +01:00
gingerBill
49cd9648b0 Merge pull request #2512 from jasonKercher/master
update os2 to match core changes
2023-05-18 11:26:16 +01:00
jason
f9c600a760 add nil check to heap_alloc calls (issue 2530) 2023-05-11 14:04:09 -04:00
jason
ef4a527c36 default to O_NOCTTY in open 2023-05-04 11:46:39 -04:00
jason
3fe0680ad5 update os2 for recent core changes 2023-05-04 10:00:06 -04:00
Jon Lipstate
bbafc3fbd6 harmonize to use null for c-string endings 2023-03-28 11:57:12 -07:00
Jon Lipstate
194fa7cd98 rename nul to null, allocation clarifications 2023-03-28 11:51:39 -07: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
gingerBill
e45401bfb4 Fix #2207 2022-11-23 14:14:22 +00:00
Phuk Ng Yu
8b06fd0935 os2/file_windows fix 2022-10-07 00:06:46 -07: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
Ian Lilley
dbec4b0d0e fixed memory leak from calling get_env 2022-08-03 11:49:42 -04:00
Ian Lilley
dda2ed290a tidying up Query_Info return value when not in query features 2022-06-01 22:40:39 -04:00
jason
5a6836ab99 match user.odin and env.odin to master 2022-05-16 15:28:56 -04:00
jason
d1499f3f78 make -vet happy 2022-05-16 13:57:12 -04:00
jason
fff23e2bbb merge from upstream and convert to ^File types 2022-05-16 13:49:57 -04:00
gingerBill
33895b6d92 Convert all uses of *_from_slice to *_from_bytes where appropriate 2022-05-16 01:43:43 +01:00
gingerBill
f002857edc Clean up core:time to be consistent across all platforms 2022-05-12 15:47:24 +01:00
gingerBill
eef44b11f3 Make the utf16 conversion procedures in core:sys/windows safer by checking for memory leaks 2022-05-12 13:17:58 +01:00
gingerBill
bb4f108487 Update error handling for os2 on windows 2022-05-12 12:54:27 +01:00
gingerBill
8b4b81fdeb Fill in most of os2/file_windows.odin 2022-05-12 11:33:01 +01:00
gingerBill
96ab17ecfc Begin mocking os2 for windows out more 2022-05-05 18:01:44 +01:00
gingerBill
18bde22b26 Go to a File based approach over Handle based 2022-05-05 16:15:03 +01:00
jason
97d1a67871 make vet happy, thread_local heap 2022-05-04 18:45:39 -04:00
jason
bac96cf2ad fix mmap_to_region 2022-05-04 18:32:14 -04:00
jason
7e0cc0af25 heap_linux.odin 2022-05-04 17:55:15 -04:00
CiD-
56737c1431 merge upstream/master 2022-04-08 13:50:06 -04:00
CiD-
9ae566adcc commit before fetching upstream/master 2022-04-08 13:45:19 -04:00
CiD-
aadb4db211 avoid temp_allocator on stupidly long paths 2022-04-06 10:53:46 -04:00
CiD-
88de3a1c06 add _chtimes 2022-04-01 22:41:35 -04:00
CiD-
6456618891 finish up stat, lstat and fstat 2022-03-30 16:54:29 -04:00
gingerBill
4eb4ae6305 Replace sync with sync2 2022-03-30 17:42:44 +01:00
CiD-
e252d3bedf add os2.name 2022-03-23 11:49:19 -04:00
CiD-
36c22393a4 fix memory leak 2022-03-15 11:47:35 -04:00
CiD-
6d6e840bc2 mkdir_all: WHOOPS 2022-03-14 15:56:41 -04:00
CiD-
4b1822ade8 mkdir_all: close last open file 2022-03-14 15:48:47 -04:00
CiD-
b21e7e4518 rewrite mkdir_all 2022-03-14 15:44:34 -04:00
CiD-
c293e88f2e commit to merge upstream/master 2022-03-14 13:34:06 -04:00
Jason Kercher
0b61215f7b getting tests to run 2022-03-10 11:12:06 -05:00
CiD-
832003dd4b os2 tests 2022-03-08 17:15:45 -05:00
jasonkercher
1f19610fd6 added _remove_all 2022-03-07 17:16:03 -05:00