Skip to content

Commit a05c2a8

Browse files
committed
fix(freebsd): incorrect constant type from ttycom.h
1 parent cc186d7 commit a05c2a8

File tree

3 files changed

+54
-54
lines changed

3 files changed

+54
-54
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,13 +1287,13 @@ pub const LC_ALL_MASK: ::c_int = LC_COLLATE_MASK
12871287
| LC_NUMERIC_MASK
12881288
| LC_TIME_MASK;
12891289

1290-
pub const TIOCSIG: ::c_uint = 0x2000745f;
1291-
pub const BTUARTDISC: ::c_int = 0x7;
1292-
pub const TIOCDCDTIMESTAMP: ::c_uint = 0x40107458;
1293-
pub const TIOCISPTMASTER: ::c_uint = 0x20007455;
1294-
pub const TIOCMODG: ::c_uint = 0x40047403;
1290+
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458;
1291+
pub const TIOCISPTMASTER: ::c_ulong = 0x20007455;
1292+
pub const TIOCMODG: ::c_ulong = 0x40047403;
12951293
pub const TIOCMODS: ::c_ulong = 0x80047404;
12961294
pub const TIOCREMOTE: ::c_ulong = 0x80047469;
1295+
pub const TIOCSIG: ::c_ulong = 0x2000745f;
1296+
pub const BTUARTDISC: ::c_int = 0x7;
12971297

12981298
// Constants used by "at" family of system calls.
12991299
pub const AT_FDCWD: ::c_int = 0xFFFAFDCD; // invalid file descriptor

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,10 +2158,10 @@ pub const CTL_P1003_1B_SEM_VALUE_MAX: ::c_int = 23;
21582158
pub const CTL_P1003_1B_SIGQUEUE_MAX: ::c_int = 24;
21592159
pub const CTL_P1003_1B_TIMER_MAX: ::c_int = 25;
21602160

2161-
pub const TIOCGPTN: ::c_uint = 0x4004740f;
2162-
pub const TIOCPTMASTER: ::c_uint = 0x2000741c;
2163-
pub const TIOCSIG: ::c_uint = 0x2004745f;
2164-
pub const TIOCM_DCD: ::c_int = 0x40;
2161+
pub const TIOCGPTN: ::c_ulong = 0x4004740f;
2162+
pub const TIOCM_DCD: ::c_uint = 0x40;
2163+
pub const TIOCPTMASTER: ::c_ulong = 0x2000741c;
2164+
pub const TIOCSIG: ::c_ulong = 0x2004745f;
21652165
pub const H4DISC: ::c_int = 0x7;
21662166

21672167
pub const VM_TOTAL: ::c_int = 1;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,62 +1193,62 @@ pub const LOG_SECURITY: ::c_int = 13 << 3;
11931193
pub const LOG_CONSOLE: ::c_int = 14 << 3;
11941194
pub const LOG_NFACILITIES: ::c_int = 24;
11951195

1196-
pub const TIOCEXCL: ::c_uint = 0x2000740d;
1197-
pub const TIOCNXCL: ::c_uint = 0x2000740e;
1198-
pub const TIOCFLUSH: ::c_ulong = 0x80047410;
1199-
pub const TIOCGETA: ::c_uint = 0x402c7413;
1200-
pub const TIOCSETA: ::c_ulong = 0x802c7414;
1201-
pub const TIOCSETAW: ::c_ulong = 0x802c7415;
1202-
pub const TIOCSETAF: ::c_ulong = 0x802c7416;
1203-
pub const TIOCGETD: ::c_uint = 0x4004741a;
1204-
pub const TIOCSETD: ::c_ulong = 0x8004741b;
1205-
pub const TIOCGDRAINWAIT: ::c_uint = 0x40047456;
1206-
pub const TIOCSDRAINWAIT: ::c_ulong = 0x80047457;
1207-
pub const TIOCTIMESTAMP: ::c_uint = 0x40107459;
1208-
pub const TIOCMGDTRWAIT: ::c_uint = 0x4004745a;
1209-
pub const TIOCMSDTRWAIT: ::c_ulong = 0x8004745b;
1210-
pub const TIOCDRAIN: ::c_uint = 0x2000745e;
1211-
pub const TIOCEXT: ::c_ulong = 0x80047460;
1212-
pub const TIOCSCTTY: ::c_uint = 0x20007461;
1196+
pub const TIOCCDTR: ::c_ulong = 0x20007478;
12131197
pub const TIOCCONS: ::c_ulong = 0x80047462;
1214-
pub const TIOCGSID: ::c_uint = 0x40047463;
1215-
pub const TIOCSTAT: ::c_uint = 0x20007465;
1216-
pub const TIOCUCNTL: ::c_ulong = 0x80047466;
1217-
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
1218-
pub const TIOCGWINSZ: ::c_uint = 0x40087468;
1219-
pub const TIOCMGET: ::c_uint = 0x4004746a;
1220-
pub const TIOCM_LE: ::c_int = 0x1;
1221-
pub const TIOCM_DTR: ::c_int = 0x2;
1222-
pub const TIOCM_RTS: ::c_int = 0x4;
1223-
pub const TIOCM_ST: ::c_int = 0x8;
1224-
pub const TIOCM_SR: ::c_int = 0x10;
1198+
pub const TIOCDRAIN: ::c_ulong = 0x2000745e;
1199+
pub const TIOCEXCL: ::c_ulong = 0x2000740d;
1200+
pub const TIOCEXT: ::c_ulong = 0x80047460;
1201+
pub const TIOCFLUSH: ::c_ulong = 0x80047410;
1202+
pub const TIOCGDRAINWAIT: ::c_ulong = 0x40047456;
1203+
pub const TIOCGETA: ::c_ulong = 0x402c7413;
1204+
pub const TIOCGETD: ::c_ulong = 0x4004741a;
1205+
pub const TIOCGPGRP: ::c_ulong = 0x40047477;
1206+
pub const TIOCGSID: ::c_ulong = 0x40047463;
1207+
pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
1208+
pub const TIOCMBIC: ::c_ulong = 0x8004746b;
1209+
pub const TIOCMBIS: ::c_ulong = 0x8004746c;
1210+
pub const TIOCM_CAR: ::c_int = 0x40;
1211+
pub const TIOCM_CD: ::c_int = 0x40;
12251212
pub const TIOCM_CTS: ::c_int = 0x20;
1226-
pub const TIOCM_RI: ::c_int = 0x80;
12271213
pub const TIOCM_DSR: ::c_int = 0x100;
1228-
pub const TIOCM_CD: ::c_int = 0x40;
1229-
pub const TIOCM_CAR: ::c_int = 0x40;
1214+
pub const TIOCM_DTR: ::c_int = 0x2;
1215+
pub const TIOCMGDTRWAIT: ::c_ulong = 0x4004745a;
1216+
pub const TIOCMGET: ::c_ulong = 0x4004746a;
1217+
pub const TIOCM_LE: ::c_int = 0x1;
1218+
pub const TIOCM_RI: ::c_int = 0x80;
12301219
pub const TIOCM_RNG: ::c_int = 0x80;
1231-
pub const TIOCMBIC: ::c_ulong = 0x8004746b;
1232-
pub const TIOCMBIS: ::c_ulong = 0x8004746c;
1220+
pub const TIOCM_RTS: ::c_int = 0x4;
1221+
pub const TIOCMSDTRWAIT: ::c_ulong = 0x8004745b;
12331222
pub const TIOCMSET: ::c_ulong = 0x8004746d;
1234-
pub const TIOCSTART: ::c_uint = 0x2000746e;
1235-
pub const TIOCSTOP: ::c_uint = 0x2000746f;
1223+
pub const TIOCM_SR: ::c_int = 0x10;
1224+
pub const TIOCM_ST: ::c_int = 0x8;
1225+
pub const TIOCNOTTY: ::c_ulong = 0x20007471;
1226+
pub const TIOCNXCL: ::c_ulong = 0x2000740e;
1227+
pub const TIOCOUTQ: ::c_ulong = 0x40047473;
12361228
pub const TIOCPKT: ::c_ulong = 0x80047470;
12371229
pub const TIOCPKT_DATA: ::c_int = 0x0;
1230+
pub const TIOCPKT_DOSTOP: ::c_int = 0x20;
12381231
pub const TIOCPKT_FLUSHREAD: ::c_int = 0x1;
12391232
pub const TIOCPKT_FLUSHWRITE: ::c_int = 0x2;
1240-
pub const TIOCPKT_STOP: ::c_int = 0x4;
1241-
pub const TIOCPKT_START: ::c_int = 0x8;
1242-
pub const TIOCPKT_NOSTOP: ::c_int = 0x10;
1243-
pub const TIOCPKT_DOSTOP: ::c_int = 0x20;
12441233
pub const TIOCPKT_IOCTL: ::c_int = 0x40;
1245-
pub const TIOCNOTTY: ::c_uint = 0x20007471;
1246-
pub const TIOCSTI: ::c_ulong = 0x80017472;
1247-
pub const TIOCOUTQ: ::c_uint = 0x40047473;
1234+
pub const TIOCPKT_NOSTOP: ::c_int = 0x10;
1235+
pub const TIOCPKT_START: ::c_int = 0x8;
1236+
pub const TIOCPKT_STOP: ::c_int = 0x4;
1237+
pub const TIOCSCTTY: ::c_ulong = 0x20007461;
1238+
pub const TIOCSDRAINWAIT: ::c_ulong = 0x80047457;
1239+
pub const TIOCSDTR: ::c_ulong = 0x20007479;
1240+
pub const TIOCSETA: ::c_ulong = 0x802c7414;
1241+
pub const TIOCSETAF: ::c_ulong = 0x802c7416;
1242+
pub const TIOCSETAW: ::c_ulong = 0x802c7415;
1243+
pub const TIOCSETD: ::c_ulong = 0x8004741b;
12481244
pub const TIOCSPGRP: ::c_ulong = 0x80047476;
1249-
pub const TIOCGPGRP: ::c_uint = 0x40047477;
1250-
pub const TIOCCDTR: ::c_uint = 0x20007478;
1251-
pub const TIOCSDTR: ::c_uint = 0x20007479;
1245+
pub const TIOCSTART: ::c_ulong = 0x2000746e;
1246+
pub const TIOCSTAT: ::c_ulong = 0x20007465;
1247+
pub const TIOCSTI: ::c_ulong = 0x80017472;
1248+
pub const TIOCSTOP: ::c_ulong = 0x2000746f;
1249+
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
1250+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
1251+
pub const TIOCUCNTL: ::c_ulong = 0x80047466;
12521252
pub const TTYDISC: ::c_int = 0x0;
12531253
pub const SLIPDISC: ::c_int = 0x4;
12541254
pub const PPPDISC: ::c_int = 0x5;

0 commit comments

Comments
 (0)