Hiroaki Nakamura
df53fec828
sys/linux: Pass size to epoll_create
...
Without this fix, you can see a random size value is passed to
epoll_create by using strace.
2024-05-06 21:44:59 +09:00
gingerBill
15f7148eae
Merge pull request #3526 from laytan/target-features
...
Improve target features support
2024-05-05 21:50:57 +01:00
gingerBill
96a4cecee5
Merge pull request #3536 from laytan/linux-fix-open-bits
...
sys/linux: fix open bits
2024-05-05 16:47:42 +01:00
Laytan Laats
eaab17f8fb
sys/linux: fix open bits
2024-05-05 14:16:21 +02:00
Feoramund
1165d65c94
Minimally support compiling Odin on FreeBSD arm64
...
This is enough to get Odin itself compiling and the demo running.
2024-05-05 07:26:45 -04:00
gingerBill
17a01a81d8
Merge pull request #3528 from laytan/fix-some-sync-issues
...
Fix some sync issues
2024-05-03 17:14:50 +01:00
Laytan Laats
8aab395c70
darwin: fix minimum os version check not being inclusive
2024-05-02 21:18:49 +02:00
Laytan Laats
8506e64345
sync: fix deadlock in one shot event
2024-05-02 20:49:29 +02:00
Laytan Laats
25f1d0906d
compiler: improve target features support
2024-05-02 00:59:52 +02:00
flysand7
9ffa4a4eb1
[sys/linux]: Fix bit numbers for open flags
2024-05-01 05:24:02 +11:00
gingerBill
eb06cb5d23
Merge pull request #3518 from laytan/sysinfo-arm-additions
...
sys/info: add arm feature detection, fix Linux implementation, show more CPU info on Darwin
2024-04-30 12:48:48 +01:00
Laytan Laats
c0ca26ac17
sys/info: add missing @(private)'s
2024-04-30 00:24:09 +02:00
Laytan Laats
b41395e3b4
sys/info: update doc.odin
2024-04-30 00:24:09 +02:00
Laytan Laats
d40c207fde
sys/info: retrieve better CPU description on Darwin
...
Previously either `ARM` or `ARM64`, now you get something like `Apple
M1`
2024-04-30 00:24:09 +02:00
Laytan Laats
8660718ebe
sys/info: add feature detection for Darwin and Linux ARM
2024-04-30 00:24:09 +02:00
Laytan Laats
485afb011c
sys/info: improve platform_linux
...
1. fix the `linux.open` call, passing `{ .RDONLY }` becomes `0x00000001`
while `RDONLY` is supposed to be `0x00000000`
2. fix the case where `/etc/os-release` starts with `PRETTY_NAME`
`strings.index` was used but was checking `> 0` while `0` is valid
3. remove unneccesary temporary allocations
4. simplify the logic
2024-04-30 00:24:09 +02:00
Laytan Laats
9e94e9dac1
sys/info: remove unneccesary build tags
2024-04-30 00:24:09 +02:00
Laytan Laats
cebe6bd982
sys/unix: add sysctlbyname for darwin
2024-04-30 00:24:09 +02:00
Laytan Laats
c58da76562
sys/darwin: fix sysctl and sysctlbyname syscalls
2024-04-30 00:24:09 +02:00
Laytan Laats
e896efdaeb
sys/info: add easy way of getting the MacOS version
2024-04-30 00:24:09 +02:00
Damian Tarnawski
ae322739b5
Remove instrinsics and utf16 imports from os/os_js
2024-04-29 16:59:52 +02:00
gingerBill
f6345d20f7
Merge pull request #3508 from Feoramund/fmt-alloc-print-reqres
...
Require results for non-buffered `print` procs
2024-04-29 12:04:58 +01:00
Feoramund
700f9c94bd
Combine adjacent sbprint*/to_string calls
...
The `sbprint*` procs already return a string conversion.
2024-04-28 17:18:46 -04:00
Feoramund
c712de0cd0
Require results for non-buffered print procs
2024-04-28 17:17:01 -04:00
IllusionMan1212
1f5f417116
fix(linalg/glsl): incorrect quat by vector3 multiplication
2024-04-28 21:44:34 +02:00
gingerBill
a37826e646
Merge pull request #3268 from olesya-wo/core-mem-tracking_allocator-improve
...
Improved statistics for core/mem/Tracking_Allocator
2024-04-28 16:01:01 +01:00
gingerBill
fa5e6d2d84
Merge pull request #3497 from laytan/fix-buddy-allocator-wrong-query-info
...
fix: buddy allocator wrong query info pointer
2024-04-28 15:21:35 +01:00
Laytan Laats
cc5faecced
wasm: add the fprint procedures to fmt
...
This makes the `log` package work on wasm
2024-04-28 16:10:04 +02:00
Laytan Laats
0530f86a48
fix: buddy allocator wrong query info pointer
2024-04-28 16:09:03 +02:00
gingerBill
950fd2d5ce
Rename trace_linux.odin to trace_cpp.odin
2024-04-28 13:52:52 +01:00
gingerBill
74d75fb7fb
Correct types on windows
2024-04-28 13:51:46 +01:00
gingerBill
7ee2c1084f
Update doc.odin
2024-04-28 13:51:10 +01:00
gingerBill
c0b7dd7da6
Remove need for allocator and MAX_FRAMES in trace.frames
2024-04-28 13:05:19 +01:00
gingerBill
be09584ea5
Increase MAX_FRAMES
2024-04-28 12:56:53 +01:00
gingerBill
5ac8e8f9fd
Add doc.odin
2024-04-28 12:52:02 +01:00
gingerBill
2eea06fc73
Set in_resolve for linux
2024-04-28 12:51:10 +01:00
gingerBill
0fa269811a
Change layout of Frame_Location
2024-04-28 12:49:17 +01:00
gingerBill
6c185a5dca
Add core:debug/trace for Linux
2024-04-28 12:43:27 +01:00
gingerBill
44c9b988bb
Add default debug/trace to do nothing
2024-04-28 12:05:15 +01:00
gingerBill
362aa82f59
Begin work on core:debug/trace
2024-04-28 11:58:16 +01:00
gingerBill
e71cf96bbc
Keep -vet happy
2024-04-28 11:35:51 +01:00
gingerBill
383c17e842
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-04-28 11:31:55 +01:00
gingerBill
00b1a41540
Add stack frame procedures for core:sys/windows
2024-04-28 11:31:50 +01:00
Yunky
1deb53cddb
Add SetMenu
2024-04-27 18:58:46 +01:00
gingerBill
05b5b8503d
Merge pull request #3491 from Feoramund/fix-json-omitempty
...
Fix `omitempty` in `json.marshal`
2024-04-27 15:32:21 +01:00
Feoramund
309a770cbf
Fix omitempty in json.marshal
2024-04-27 05:24:59 -04:00
gingerBill
efae99971b
Fix missing _ =
2024-04-27 09:19:50 +01:00
gingerBill
4454849252
Add attributes to procedures in text/scanner
2024-04-27 09:16:36 +01:00
gingerBill
c752d0b541
Fix printing of big endian integers in a bit_field
2024-04-27 09:16:18 +01:00
gingerBill
9d3f835e31
Merge pull request #3462 from Yawning/feature/math-sys-rand
...
core:math/rand: Use `crypto.rand_bytes()` for the system RNG
2024-04-27 08:43:02 +01:00