82 Commits

Author SHA1 Message Date
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
gingerBill
33895b6d92 Convert all uses of *_from_slice to *_from_bytes where appropriate 2022-05-16 01:43:43 +01:00
Sébastien Marie
14f1793b3e use context.temp_allocator instead of general allocation + delete()
where clone_to_cstring is used with foreign code, it is prefered to use `context.temp_allocator` instead of using the general allocator and manually delete the memory after use.
2022-02-24 11:28:42 +00:00
gingerBill
a3bcacee27 Move Objective-C libraries located in core:sys/darwin/* to vendor:darwin/* 2022-02-16 00:06:25 +00:00
gingerBill
1d4d0a3e1a Strip unneeded semicolons 2022-02-15 15:56:11 +00:00
gingerBill
9e98494fff Merge pull request #1482 from odin-lang/objc-intrinsics
Improve support Objective-C code through intrinsics and Metal API
2022-02-15 15:48:56 +00:00
gingerBill
803648be89 Minor aesthetic clean ups of Foundation 2022-02-15 15:34:07 +00:00
gingerBill
3ab5db8297 Add README.md 2022-02-15 15:17:21 +00:00
gingerBill
3380ece4a1 Add utility calls for creating buffers from slices 2022-02-15 15:16:48 +00:00
gingerBill
753cceea82 Minor changes to method names on NS.String 2022-02-14 18:34:55 +00:00
gingerBill
03aec70287 Change objc_class_name to objc_name with objc_is_class_method 2022-02-14 17:31:55 +00:00
gingerBill
e69738c079 Minor style change 2022-02-14 17:23:14 +00:00
gingerBill
1afa7967f2 Fix method names 2022-02-14 17:09:30 +00:00
gingerBill
643e36b87b Improve Texture method names 2022-02-14 17:07:18 +00:00
gingerBill
3d2405ac2c Correct more method types 2022-02-14 17:02:05 +00:00
gingerBill
7392a3047a Add RenderPipeline missing types and methods 2022-02-14 16:58:56 +00:00
gingerBill
60f4d8f1ec Correct Render Pass types 2022-02-14 16:46:27 +00:00
gingerBill
7b42cbea20 Improve draw method names on RenderCommandEncoder 2022-02-14 16:42:53 +00:00
gingerBill
4cc597f4df RasterizationRate improvements 2022-02-14 16:32:54 +00:00
gingerBill
934e66ab3b More improvements 2022-02-14 16:26:42 +00:00
gingerBill
b755609438 Improve Library related stuff 2022-02-14 16:25:20 +00:00
gingerBill
83d63e572a Improve indirect stuff 2022-02-14 16:21:00 +00:00
gingerBill
5212f62f54 Improve many methods with WithDescriptor suffixes 2022-02-14 16:18:23 +00:00
gingerBill
4d0fd4cf19 Correct device() usage 2022-02-14 15:56:32 +00:00
gingerBill
e47953f7ca Improve procedure signature and names 2022-02-14 15:45:02 +00:00
gingerBill
47f3773146 Correct Depth classes 2022-02-14 15:18:38 +00:00
gingerBill
31c6ecad34 Correct Counter classes 2022-02-14 15:15:32 +00:00
gingerBill
af6e53c05c Improve Compute classes 2022-02-14 15:14:41 +00:00
gingerBill
153140eb8f Improve ComputeCommandEncoder 2022-02-14 14:43:50 +00:00
gingerBill
6fef44c041 Improve CommandEncoder 2022-02-14 14:33:50 +00:00
gingerBill
a88d149903 Improve CommandBuffer 2022-02-14 14:33:02 +00:00
gingerBill
f9fc488399 Correct CaptureScope 2022-02-14 14:26:35 +00:00
gingerBill
bef806bef4 Update Capture Manager classes 2022-02-14 14:24:36 +00:00
gingerBill
95e9bbf99f Improve Buffer 2022-02-14 12:52:30 +00:00
gingerBill
5936fa8871 Correct Blit Pass 2022-02-14 12:46:46 +00:00