flysand7
b686b072d5
[os2/file]: Fixes related to handle inheritance
...
All file handles created on Windows used to be made
non-inheritable, by forcing the .Close_On_Exec flag
in _open() function. In addition, there was an
issue with security descriptor being freed before
use, which has been fixed.
2024-07-14 15:06:28 +11:00
jason
6a894195cb
revert os2/process
2024-06-28 09:45:22 -04:00
jason
dc954307d7
fix assumption about std handles in os2/file.odin
2024-06-28 07:55:33 -04:00
jason
a15cbc474d
change error strings to an enumerated array in rodata; print_error takes a file argument
2024-06-28 07:45:24 -04:00
jason
f24f72c280
convert all to use sys/linux over sys/unix; new implementations for pipe, process and env
2024-06-27 17:14:48 -04:00
IllusionMan1212
c987b964c8
fix(os2): check for 0 bytes read and return EOF
2024-06-18 17:03:54 +02:00
gingerBill
3a9b86628a
Add @(rodata) and @(static, rodata) where appropriate
2024-06-06 15:23:52 +01:00
gingerBill
59c33dd9fc
Add Fstat_Callback for File.user_fstat
2024-05-14 18:57:03 +01:00
gingerBill
6f9dcb4e02
Add missing @(require_results)
2024-05-14 18:46:45 +01:00
gingerBill
2b43535961
Fix typo
2024-05-14 18:45:47 +01:00
gingerBill
9a487ccb6f
Delete dead code
2024-05-14 18:35:24 +01:00
gingerBill
453fc5182b
Remove all uses of context stuff in os2
2024-05-14 18:34:05 +01:00
gingerBill
450b9ceaec
Add @(require_results) everywhere in os2
2024-05-14 18:25:15 +01:00
gingerBill
48c1822709
Move utility stuff to internal_util.odin
2024-05-14 18:14:44 +01:00
gingerBill
91b7cdaad2
Mock out temp_file.odin stuff
2024-05-14 18:11:50 +01:00
gingerBill
361be301fa
Use internal temp_allocator()
2024-05-14 17:24:37 +01:00
gingerBill
ecd7846ec3
Clean up allocator stuff into allocators.odin
2024-05-14 17:10:53 +01:00
flysand7
3ee9184537
[core/os2]: Fix memory leak on read_entire_file
2024-04-01 23:32:16 +11:00
flysand7
c843002d07
[core/os2]: Move .Broken_Pipe to General_Error enum
2024-03-25 23:35:01 +11:00
flysand7
0f944bc0a1
[core/os2]: Reading from unsized files
2024-03-24 10:52:48 +11:00
gingerBill
271f84ab5b
Expect stream as a field directly on os2.File
2024-03-13 16:30:22 +00:00
gingerBill
7df7fec6f7
Keep -vet happy
2024-02-28 18:27:49 +00:00
gingerBill
dce176fa39
Remove unnecessary use of transmute
2024-02-28 18:24:59 +00:00
gingerBill
fa1875a8f1
Minor changes to os2
2024-02-17 13:41:54 +00:00
gingerBill
a626adac8e
Use long-form names and alias with short-form UNIX-like names
2024-01-29 13:33:39 +00:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
flysand7
d5b0ec712b
os/os2: Remove file attribute casting from core:os2
2024-01-26 09:07:12 +11:00
flysand7
a660098106
os2: Add .Resize_Non_Zeroed allocation mode to os2/heap_windows
2024-01-24 15:51:47 +11:00
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