Beau McCartney
609eb00335
remove note comments
2024-10-06 22:47:46 -06:00
Beau McCartney
2fc04f29c8
make extra types distinct to fit existing types
2024-10-06 22:47:20 -06:00
Beau McCartney
5c0c1287dc
put function parameters on the same line where possible to fit style
2024-10-06 22:45:10 -06:00
Beau McCartney
ac4f4e883a
group type definitions
2024-10-06 22:41:42 -06:00
Beau McCartney
80c390e851
add mach procedures and vm_page_size
...
- vm_allocate()
- vm_deallocate()
- vm_map()
- mach_make_memory_entry()
2024-10-06 22:08:23 -06:00
Beau McCartney
a205bcd0da
add VM_INHERIT constants
2024-10-05 11:19:10 -06:00
Beau McCartney
27daebf46c
add vm_prot_t constants
2024-10-05 11:18:32 -06:00
Beau McCartney
04ddcc5e64
add VM_FLAGS constants
2024-10-05 11:17:37 -06:00
Beau McCartney
7eabb1d744
add KERN_RETURN constants
2024-10-05 11:15:29 -06:00
Beau McCartney
3c2efb24b7
some mach types
2024-10-05 11:11:42 -06:00
Beau McCartney
2181a42bbf
rename mach import cause its not just for threads now
2024-10-05 11:09:58 -06:00
Karl Zylinski
093ade0504
Merge branch 'master' into file-tags-without-comments
2024-09-17 19:36:17 +02:00
Laytan Laats
0975820c48
fix wrong ulock timeout calculation, add version check for ios
2024-09-17 15:52:35 +02:00
pkova
fff99c726e
Fix core sync test deadlock on darwin
2024-09-17 01:52:51 +03:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Laytan Laats
201a7b90bb
fix EventMaskAny definition
2024-09-12 00:11:27 +02:00
Laytan Laats
ddf5ca7adf
remove deprecation, technically deprecated but widely used
2024-09-05 01:08:09 +02:00
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