Skip to content

Commit d56110e

Browse files
asomerstgross35
authored andcommitted
Fix definition of TIOCTIMESTAMP on FreeBSD x86
https://github.com/freebsd/freebsd-src/blob/main/sys/sys/ttycom.h (backport <#3948>) (cherry picked from commit 60cf16d)
1 parent 36b0349 commit d56110e

File tree

9 files changed

+9
-1
lines changed

9 files changed

+9
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,7 @@ pub const TIOCISPTMASTER: ::c_ulong = 0x20007455;
14621462
pub const TIOCMODG: ::c_ulong = 0x40047403;
14631463
pub const TIOCMODS: ::c_ulong = 0x80047404;
14641464
pub const TIOCREMOTE: ::c_ulong = 0x80047469;
1465+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
14651466

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,4 @@ cfg_if! {
144144

145145
pub const MAP_32BIT: ::c_int = 0x00080000;
146146
pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4
147+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ cfg_if! {
6262

6363
pub const MAP_32BIT: ::c_int = 0x00080000;
6464
pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4
65+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ cfg_if! {
8585

8686
pub const MAP_32BIT: ::c_int = 0x00080000;
8787
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4
88+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ cfg_if! {
8585

8686
pub const MAP_32BIT: ::c_int = 0x00080000;
8787
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4
88+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,4 @@ cfg_if! {
152152

153153
pub const MAP_32BIT: ::c_int = 0x00080000;
154154
pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4
155+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,4 @@ cfg_if! {
171171
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4
172172

173173
pub const KINFO_FILE_SIZE: ::c_int = 1392;
174+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40087459;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ pub const _MC_FPOWNED_PCB: c_long = 0x20002;
265265

266266
pub const KINFO_FILE_SIZE: ::c_int = 1392;
267267

268+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
269+
268270
cfg_if! {
269271
if #[cfg(libc_align)] {
270272
mod align;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,6 @@ pub const TIOCGETD: ::c_ulong = 0x4004741a;
12511251
pub const TIOCSETD: ::c_ulong = 0x8004741b;
12521252
pub const TIOCGDRAINWAIT: ::c_ulong = 0x40047456;
12531253
pub const TIOCSDRAINWAIT: ::c_ulong = 0x80047457;
1254-
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
12551254
pub const TIOCMGDTRWAIT: ::c_ulong = 0x4004745a;
12561255
pub const TIOCMSDTRWAIT: ::c_ulong = 0x8004745b;
12571256
pub const TIOCDRAIN: ::c_ulong = 0x2000745e;

0 commit comments

Comments
 (0)