feature. See also
. The project being documented here (as the example) is the Zig library itself.
c.tc_cflag_t
pub const tc_cflag_t = switch (native_os)
File
Code
pub const tc_cflag_t = switch (native_os) {
.linux => linux.tc_cflag_t,
.driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => packed struct(u64) {
CIGNORE: bool = false,
_1: u5 = 0,
CSTOPB: bool = false,
_7: u1 = 0,
CSIZE: CSIZE = .CS5,
_10: u1 = 0,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
CCTS_OFLOW: bool = false,
CRTS_IFLOW: bool = false,
CDTR_IFLOW: bool = false,
CDSR_OFLOW: bool = false,
CCAR_OFLOW: bool = false,
_: u43 = 0,
},
.freebsd => packed struct(u32) {
CIGNORE: bool = false,
_1: u7 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
CCTS_OFLOW: bool = false,
CRTS_IFLOW: bool = false,
CDTR_IFLOW: bool = false,
CDSR_OFLOW: bool = false,
CCAR_OFLOW: bool = false,
CNO_RTSDTR: bool = false,
_: u10 = 0,
},
.netbsd => packed struct(u32) {
CIGNORE: bool = false,
_1: u7 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
CRTSCTS: bool = false,
CDTRCTS: bool = false,
_18: u2 = 0,
MDMBUF: bool = false,
_: u11 = 0,
},
.dragonfly => packed struct(u32) {
CIGNORE: bool = false,
_1: u7 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
CCTS_OFLOW: bool = false,
CRTS_IFLOW: bool = false,
CDTR_IFLOW: bool = false,
CDSR_OFLOW: bool = false,
CCAR_OFLOW: bool = false,
_: u11 = 0,
},
.openbsd => packed struct(u32) {
CIGNORE: bool = false,
_1: u7 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
CRTSCTS: bool = false,
_17: u3 = 0,
MDMBUF: bool = false,
_: u11 = 0,
},
.haiku => packed struct(u32) {
_0: u5 = 0,
CSIZE: CSIZE = .CS7,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
XLOBLK: bool = false,
CTSFLOW: bool = false,
RTSFLOW: bool = false,
_: u17 = 0,
},
.illumos => packed struct(u32) {
_0: u4 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
RCV1EN: bool = false,
XMT1EN: bool = false,
LOBLK: bool = false,
XCLUDE: bool = false,
_16: u4 = 0,
PAREXT: bool = false,
CBAUDEXT: bool = false,
CIBAUDEXT: bool = false,
_23: u7 = 0,
CRTSXOFF: bool = false,
CRTSCTS: bool = false,
},
.wasi, .emscripten => packed struct(u32) {
_0: u4 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
_: u20 = 0,
},
.serenity => packed struct(u32) {
_0: u4 = 0,
CSIZE: CSIZE = .CS5,
CSTOPB: bool = false,
CREAD: bool = false,
PARENB: bool = false,
PARODD: bool = false,
HUPCL: bool = false,
CLOCAL: bool = false,
CBAUDEX: bool = false,
_: u19 = 0,
},
else => void,
}