José Rey Méndez
10f2136675
fix: read file from windows was not returning platform error correctly
2023-06-12 19:28:41 -03:00
Laytan Laats
d38ea63c78
fix fcntl binding on darwin
2023-06-12 15:37:39 +02:00
gingerBill
e16c6c1b6b
Replace procedure strings.concatenate
2023-06-12 12:58:47 +01:00
James Duran
fed0c2ea26
Fix Timeval for darwin and linux
2023-06-07 21:55:08 -07:00
gingerBill
0c477f2c6b
Merge pull request #2289 from Lperlind/staging/fix_os_args
...
Fix out of range error with _alloc_command_line_arguments in darwin
2023-06-07 12:06:43 +01:00
gingerBill
3562a38f8c
Merge pull request #2558 from laytan/implement-set-blocking-darwin
...
implement non blocking sockets for darwin
2023-05-30 02:15:20 +01:00
Laytan Laats
2b31d85cd4
implement non blocking sockets for darwin
2023-05-27 22:40:05 +02:00
Laytan Laats
e350c37e6f
fix weird errno returned on darwin
2023-05-27 21:49:39 +02: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
Colin Davidson
b0eda47b26
prevent infinite-loop on EOF
2023-05-06 17:52:08 -07:00
Colin Davidson
291111e626
oops. define e
2023-05-06 17:23:44 -07:00
Colin Davidson
47693da4aa
Make read_at and write_at more consistent between platforms
2023-05-06 17:14:11 -07: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
Dragos Popescu
b2ecb37b35
Changed js panics to unimplemented where sensible
2023-03-22 12:10:27 +01:00
Dragos Popescu
ef3d8bdc42
Fixed more compile time errors when including os and thread to js targets
2023-03-21 04:17:31 +01:00
Dragos Popescu
adac039a2b
Made most libraries panic on js targets instead of not compiling
2023-03-20 04:08:48 +01:00
Jeroen van Rijn
0e9ef50e63
Update build flag
2023-03-16 15:16:09 +01:00
Sokus
1ecab2fcbc
Add set_blocking for network sockets
2023-03-08 13:30:12 +01:00
Colin Davidson
14eed79a21
make baby pandas (and Jeroen) happy
2023-03-01 08:33:48 -08:00
Colin Davidson
d569daae33
more manual type carryover
2023-03-01 08:17:41 -08:00
Colin Davidson
28f7f57247
manually start merging core_net
2023-03-01 07:58:30 -08:00
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