Vitalii Kravchenko
c86bbc61bc
More Objective-C Runtime bindings.
2024-09-03 11:41:23 +01:00
Jeroen van Rijn
831e26cb6f
Remove unused import.
2024-08-28 18:42:54 +02:00
gingerBill
8694fa5f78
Minor cleanup of CFString.odin
2024-08-27 11:22:28 +01:00
gingerBill
eb799393d5
Fix -vet-tabs issues
2024-08-24 13:56:41 +01:00
gingerBill
574dc5efe6
Merge pull request #4120 from laytan/posix-process
...
os2: process API for Darwin and most of it for BSDs
2024-08-22 22:51:48 +01:00
Laytan Laats
a66520ba57
os2: process API for Darwin and most of it for BSDs
2024-08-22 23:07:24 +02:00
Vitalii Kravchenko
14169ae5b4
A couple of foundation binding. Vet tabs.
2024-08-21 00:09:09 +01:00
Laytan
6fc39c1b5d
Merge pull request #4075 from yay/more-foundation-bindings
...
More Foundation bindings.
2024-08-16 13:08:15 +02:00
Vitalii Kravchenko
004036dc59
More Foundation bindings.
2024-08-16 00:00:29 +01:00
Laytan
d91fa162d8
Merge pull request #3280 from beaumccartney/shm_syscalls
...
add shm_open and shm_unlink syscalls for darwin
2024-08-15 17:08:41 +02:00
Laytan Laats
a73677d21a
os2: nice != priority
2024-08-14 01:44:37 +02:00
Laytan Laats
a4d459f651
os2: initial implementation for Darwin&BSDs, process API is only thing incomplete
2024-08-14 01:44:37 +02:00
Laytan Laats
6fe938b946
darwin: add setAllowedFileTypes binding for open panels
2024-08-06 21:42:33 +02:00
Laytan Laats
ddad2011e2
darwin: remove syscall usage (without -no-crt) to comply to Apple guidelines
2024-07-08 15:39:23 +02:00
gingerBill
e296d6fb90
Fix loads of indentation issues with mixing spaces and tabs
2024-06-29 19:50:51 +01:00
gingerBill
103eccf104
More style improvements
2024-06-29 19:23:58 +01:00
Laytan Laats
108b8feb35
Add vendor:wgpu
2024-06-12 17:22:02 +02:00
gingerBill
590db0838a
Fix types
2024-05-24 17:21:00 +01:00
gingerBill
1081e9ac09
Fix enum definition for bit_set use
2024-05-24 11:41:56 +01: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
c58da76562
sys/darwin: fix sysctl and sysctlbyname syscalls
2024-04-30 00:24:09 +02:00
Laytan Laats
a4cec2e8b8
sys/darwin/foundation: fix Application->sendEvent signature
2024-04-24 19:51:08 +02:00
Vitalii Kravchenko
befb0f7868
Core Foundation and Security vendor libraries.
2024-04-13 00:11:42 +01:00
gingerBill
ef82f3e71e
Move vendor:darwin/Foundation to core:sys/darwin/Foundation
2024-04-08 13:47:46 +01:00
Lucas Perlind
a71cd07b36
Update "core:runtime" to "base:runtime"
2024-04-07 09:02:01 +10:00
Beau McCartney
43e8da2e06
shm_open: comment with notes abt permissions
2024-03-19 09:36:49 -06:00
Laytan Laats
dd92d3054d
add ODIN_ prefix to the new constant
2024-03-18 17:22:58 +01:00
Beau McCartney
1758bd683e
sys_shm_open: fchmod the returned descriptor to get correct perms
...
this doesn't happen by default
2024-03-16 12:13:00 -06:00
Laytan Laats
9c455b2213
darwin: use new wait on address API if possible
2024-03-15 21:43:16 +01:00
Beau McCartney
24f9e16dfd
sys_open() calls _sys_open_mode() to get a permission flags integer
...
_sys_open_mode() does exactly what sys_open() was originally doing
inline, I simply factored it into a separate function so that other
wrappers could call it (similar to _sys_permission_mode())
2024-03-15 08:32:25 -06:00
Beau McCartney
56a29685b4
darwin: sys_shm_open() helper
...
wraps syscall_shm_open() in the same way that sys_open() wraps
syscall_open()
2024-03-15 08:27:27 -06:00
Beau McCartney
cf949e541f
helper function to convert Open_Flags bitset to a u32
...
- analagous to _sys_permission_mode()
- uses the already-existing conversion logic in sys_open()
2024-03-15 08:26:25 -06:00
Beau McCartney
44167800ad
darwin: syscall wrappers for shm_open() and shm_unlink()
2024-03-15 08:26:03 -06:00
gingerBill
04f0fbf23a
Merge pull request #3272 from iansimonson/add_getrusage_darwin
...
Add getrusage syscall for mac/darwin
2024-03-14 19:45:25 +00:00
Ian Simonson
835effdef1
Use c.long rather than int
2024-03-14 09:36:57 -07:00
Ian Simonson
c7bec2962e
Fix __darwin_suseconds_t definition
...
__darwin_suseconds_t is defined as long which on macos
64 bit systems is equivalent to 8 bytes. It is equivalent
to Odin int type _not_ i32
2024-03-14 07:21:26 -07:00
Ian Simonson
34c4389d75
No need for timeval definition
...
It already existed so lets just use that rather than
redeclaring it
2024-03-13 14:58:56 -07:00
Ian Simonson
8917a7ef88
Make RUsage more inline with macos man page
...
Swap to tabs to adhere to the Odin Core library standard
and also rename the rusage fields to match the actual
definitions from the macos bsd man pages
2024-03-13 14:51:17 -07:00
Ian Simonson
d7b1901b16
Fix syscall_munmap in darwin
...
this was using the .mmap syscall number when it should be
using the .munmap syscall number
2024-03-13 10:39:50 -07:00
Ian Simonson
26d107ce64
Add getrusage syscall for mac/darwin
...
The syscall number existed but the wrapper for calling it
did not. Also adds the RUsage struct to receive the data.
Naming is kept the same as in sys/linux
2024-03-13 08:07:12 -07:00
Laytan Laats
0d413b8136
implement part of core foundation framework bindings for err message
2024-02-13 17:34:40 +01:00
Laytan Laats
91cf0826c1
use Security.framework with SecRandomCopyBytes for rand_bytes on darwin
2024-02-13 17:34:40 +01:00
gingerBill
9a16bc5fc5
Remove core:os dependency for base:runtime
2024-01-28 22:40:46 +00:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
gingerBill
9afd9f9bea
Merge branch 'master' into new-temp-allocator
2023-02-28 12:15:54 +00:00
Colin Davidson
f2202db517
make darwin syscalls contextless
2023-02-19 20:38:46 -08:00
Colin Davidson
6a2ef1f4f3
add osx support
2023-02-19 20:23:35 -08:00
gingerBill
986cba584e
Add runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD where appropriate
2023-02-10 16:23:33 +00: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