Commit Graph

1280 Commits

Author SHA1 Message Date
gingerBill
4dcbc67ead Remove old dead directory core:sys/win32 2026-01-14 12:48:19 +00:00
Jacob Evelyn
11afefeedc Add NSWindow layout information method bindings to darwin/Foundation (#6040)
This commit adds bindings for `NSWindow`'s
["Getting Layout Information"](https://developer.apple.com/documentation/appkit/nswindow?language=objc#Getting-Layout-Information)
methods to the `core:sys/darwin/Foundation` package.

Co-authored-by: Jacob Evelyn <j@cob.land>
2026-01-13 21:13:59 +01:00
Jacob Evelyn
a4f958b738 Fix darwin/Foundation/NSScreen type property bindings (#6038)
This commit updates the `darwin/Foundation` package's `NSScreen` bindings
to treat Objective-C "type properties" as class methods rather than
instance methods.

As a result, we can now access these properties like this:

```odin
import NS "core:sys/darwin/Foundation"

main :: proc() {
  NS.Screen.mainScreen()
}
```

instead of this:

```odin
import NS "core:sys/darwin/Foundation"

main :: proc() {
  (^NS.Screen)(nil).mainScreen()
}
```

This commit also adds a binding for `NSScreen`'s `screensHaveSeparateSpaces`
type property, which was previously missing from the `darwin/Foundation`
package.

Co-authored-by: Jacob Evelyn <j@cob.land>
2026-01-13 21:13:18 +01:00
Znarf
0c3f3f536b Implement more Linux syscalls. (#6083) 2026-01-13 21:02:08 +01:00
Paul Page
7e7cd75527 remove unneeded manual definitions 2026-01-12 16:52:57 -06:00
Paul Page
ebaf877981 Update Orca bindings 2026-01-12 16:31:40 -06:00
gingerBill
393fec2f66 Move WSAEVENT to types.odin 2026-01-05 11:48:19 +00:00
gingerBill
5fae3527c1 Implement LPWSAOVERLAPPED_COMPLETION_ROUTINE correctly 2026-01-05 11:44:52 +00:00
gingerBill
57c7ae1bd9 Minor fixes to formatting and types 2026-01-02 11:35:44 +00:00
gingerBill
e154489f01 More formatting improvements 2026-01-02 11:32:39 +00:00
gingerBill
274e7e7e58 Improve the formatting of user32.odin 2026-01-02 11:25:53 +00:00
gingerBill
006681ec22 Improve formatting; fix types; add struct field tags 2026-01-02 11:18:48 +00:00
gingerBill
b86627ba37 Improve formatting and #raw_union logic in core:sys/windows 2026-01-02 10:39:46 +00:00
gingerBill
c49a645d34 Add raw_union_tag support to MINIDUMP_CALLBACK_INPUT 2026-01-02 10:14:39 +00:00
gingerBill
49687069ef Minor formatting improvements 2026-01-02 10:14:24 +00:00
gingerBill
111ed21e7e Change usage of i32 to c_int where appropriate 2026-01-02 10:02:23 +00:00
gingerBill
747ecc6911 Fix typo 2026-01-02 09:55:56 +00:00
gingerBill
37458a4beb Fix some return types in core:sys/windows 2026-01-02 09:53:50 +00:00
gingerBill
45aa89cf02 Replace uses of c.int with c_int for consistency 2026-01-02 09:47:45 +00:00
gingerBill
b9a170b117 Fix GetSystemMetricsForDpi signature 2026-01-02 09:46:50 +00:00
gingerBill
047ceb2c81 Merge pull request #6069 from karl-zylinski/webgl-binding-fixes
WebGL binding additions
2025-12-30 13:38:40 +00:00
Karl Zylinski
47f20c0ffb Added 'set_document_title' to be able to rename the tab 2025-12-29 20:57:25 +01:00
Karl Zylinski
fb52238e36 Fix bugs in odin.js:GetActiveUniformBlockName 2025-12-29 17:42:19 +01:00
Karl Zylinski
3f9aefda20 Added CheckFramebufferStatus to WebGL bindings 2025-12-29 17:34:01 +01:00
bplu4t2f
33352ed6cb Add user32 scroll bar related bindings, and FrameRect 2025-12-27 17:31:15 +01:00
Karl Zylinski
159eab133b More webgl bindings and fixes 2025-12-27 01:41:59 +01:00
Karl Zylinski
7dee25bdcc More allocator-aware webgl bindings and added more missing bindings. 2025-12-26 23:34:45 +01:00
Karl Zylinski
7e39239907 WebGL: Add GetActiveAttrib binding 2025-12-26 23:02:35 +01:00
Laytan Laats
8ce30dbb72 sys/wasm/js: fix vet error 2025-12-22 16:56:56 +01:00
Laytan Laats
06076e02c0 js: improve warning about conflicting memory strategies 2025-12-21 17:02:41 +01:00
Harold Brenes
eda6e64639 Fix nfds_t alias for Linux 2025-12-20 16:55:06 -05:00
Laytan
7640a0511f Merge pull request #6015 from salfel/linux-syscalls
core:sys/linux Add timerfd syscall wrappers
2025-12-20 21:25:19 +01:00
Jeroen van Rijn
2260f461ba Merge pull request #6035 from janga-perlind/darwin-bindings
More bindings for darwin
2025-12-19 06:45:48 +00:00
Lucas Perlind
b97e1fff9e More bindings for darwin 2025-12-19 13:34:45 +11:00
Felix Salcher
a325ab469f add timerfd_* syscall wrappers 2025-12-13 17:27:32 +01:00
Jeroen van Rijn
3fc0320449 Merge pull request #5741 from FourteenBrush/patch-4
Make `linux.IO_Vec.base` a multipointer
2025-12-10 18:09:01 +00:00
WisonYe
45b4fb1565 Freebsd: Fixed 'write' syscall to cause 'ESPIPE' on the pipe fd. (#5575) 2025-12-09 19:19:13 +01:00
Tohei Ichikawa
67cc04b1da Added more NSApplication and NSWindow bindings 2025-12-05 17:20:15 -05:00
Colin Davidson
a76c902b79 fix thread_act_t size 2025-12-01 16:38:10 -08:00
Ben Ryan
e2a0f4417f Add SIO_UDP_CONNRESET winsock constant 2025-11-26 20:40:38 +11:00
bc-universe
9712624e04 Implement more Linux syscalls (#5705)
* Implement some more Linux syscalls

* Fixed typo and removed stray comments

* Correct types for some syscalls

* Fix types and add variadic argument for prctl

* flag fixes

* when x86/amd64 only

* more fixes

---------

Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
2025-11-24 12:14:17 +01:00
Tohei Ichikawa
b2a42ac14f Add NSWindow coordinate space conversion bindings 2025-11-18 22:38:25 -05:00
gingerBill
3e0f9cace6 Merge pull request #5936 from benjryan/wsa_defs
Add WSASendTo and WSARecvFrom
2025-11-16 22:25:08 +00:00
Ben Ryan
a5d9c87ac5 Add WSASendTo and WSARecvFrom 2025-11-16 23:56:54 +11:00
Wrath
a43cee934e LockFileEx/UnlockFileEx and related flags 2025-11-13 23:36:16 -05:00
Tohei Ichikawa
8d9806817d Fix typo in NS.String_initWithCString 2025-11-12 09:29:28 -05:00
gingerBill
ae45b8b38e Merge pull request #5903 from BNTB/master
Add FreeLibraryAndExitThread in kernel32. Add EnumProcessModules in psapi (new file).
2025-11-11 21:22:16 +00:00
Laytan
3db76bc367 sys/linux: add io uring API 2025-11-10 20:03:57 +01:00
Laytan Laats
090def7870 whoops 2025-11-08 21:30:16 +01:00
Laytan Laats
a852b6512c fix semid_ds definition on arm64 linux 2025-11-08 21:26:29 +01:00