Skip to content

Commit 60cf16d

Browse files
committed
Fix definition of TIOCTIMESTAMP on FreeBSD x86
https://github.com/freebsd/freebsd-src/blob/main/sys/sys/ttycom.h
1 parent 19d213d commit 60cf16d

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
@@ -135,3 +135,4 @@ cfg_if! {
135135

136136
pub const MAP_32BIT: ::c_int = 0x00080000;
137137
pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4
138+
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
@@ -52,3 +52,4 @@ cfg_if! {
5252
pub(crate) const _ALIGNBYTES: usize = ::mem::size_of::<::c_int>() - 1;
5353
pub const MAP_32BIT: ::c_int = 0x00080000;
5454
pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4
55+
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
@@ -71,3 +71,4 @@ cfg_if! {
7171
pub(crate) const _ALIGNBYTES: usize = ::mem::size_of::<::c_int>() - 1;
7272
pub const MAP_32BIT: ::c_int = 0x00080000;
7373
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4
74+
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
@@ -71,3 +71,4 @@ cfg_if! {
7171
pub(crate) const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1;
7272
pub const MAP_32BIT: ::c_int = 0x00080000;
7373
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4
74+
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
@@ -143,3 +143,4 @@ cfg_if! {
143143

144144
pub const MAP_32BIT: ::c_int = 0x00080000;
145145
pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4
146+
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
@@ -157,3 +157,4 @@ cfg_if! {
157157
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4
158158

159159
pub const KINFO_FILE_SIZE: ::c_int = 1392;
160+
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
@@ -236,5 +236,7 @@ pub const _MC_FPOWNED_PCB: c_long = 0x20002;
236236

237237
pub const KINFO_FILE_SIZE: ::c_int = 1392;
238238

239+
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
240+
239241
mod align;
240242
pub use self::align::*;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,6 @@ pub const TIOCGETD: ::c_ulong = 0x4004741a;
12241224
pub const TIOCSETD: ::c_ulong = 0x8004741b;
12251225
pub const TIOCGDRAINWAIT: ::c_ulong = 0x40047456;
12261226
pub const TIOCSDRAINWAIT: ::c_ulong = 0x80047457;
1227-
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
12281227
pub const TIOCMGDTRWAIT: ::c_ulong = 0x4004745a;
12291228
pub const TIOCMSDTRWAIT: ::c_ulong = 0x8004745b;
12301229
pub const TIOCDRAIN: ::c_ulong = 0x2000745e;

0 commit comments

Comments
 (0)