Zig Version
0.15.2 (should also affect master)
Steps to Reproduce and Observed Behavior
While toying around with pseudo terminals, I realized that several constants appear to be missing in std.
There is std.c.T.CSANOW, but only for Solaris. I'm not exactly sure if this is the only one, probably not, for example, there is also TCSADRAIN, which is also only inside the Solaris struct.
I was wondering how Ghostty gets around this and turns out they just include everything using C :frown: github.com/ghostty-org/ghostty@dcc39dcd40/src/pty.zig (L177)
Expected Behavior
I don't understand Zigs working of where it puts things quite yet. I'm not sure if it's supposed to go into std.os.linux or std.posix (not sure if this is posix) or std.c, but it should definitely go somewhere, even if it just means that the linux struct in std.c.T also has the values appended, like Solaris.
You can find the values defined inside lib/libc/musl/arch/generic/bits/termios.h and a few architecture specific headers.
### Zig Version
0.15.2 (should also affect master)
### Steps to Reproduce and Observed Behavior
While toying around with pseudo terminals, I realized that several constants appear to be missing in std.
There is `std.c.T.CSANOW`, but only for Solaris. I'm not exactly sure if this is the only one, probably not, for example, there is also TCSADRAIN, which is also only inside the Solaris struct.
---
I was wondering how Ghostty gets around this and turns out they just include everything using C :frown: https://github.com/ghostty-org/ghostty/blob/dcc39dcd401975ee77a642fa15ba7bb9f6d85b96/src/pty.zig#L177
### Expected Behavior
I don't understand Zigs working of where it puts things quite yet. I'm not sure if it's supposed to go into std.os.linux or std.posix (not sure if this is posix) or std.c, but it should definitely go somewhere, even if it just means that the linux struct in std.c.T also has the values appended, like Solaris.
You can find the values defined inside `lib/libc/musl/arch/generic/bits/termios.h` and a few architecture specific headers.