Skip to content

Commit af676d1

Browse files
committed
Auto merge of #3287 - gennyble:main, r=JohnTitor
linux: add a few kTLS defintions related: nix-rust/nix#2065 i think android has support, too, but if I put it in `linux-like` does that imply emscripten support?
2 parents 9253fca + 94cfcd2 commit af676d1

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3346,6 +3346,7 @@ fn test_linux(target: &str) {
33463346
"linux/seccomp.h",
33473347
"linux/sock_diag.h",
33483348
"linux/sockios.h",
3349+
"linux/tls.h",
33493350
"linux/uinput.h",
33503351
"linux/vm_sockets.h",
33513352
"linux/wait.h",

libc-test/semver/linux.txt

+2
Original file line numberDiff line numberDiff line change
@@ -2461,6 +2461,7 @@ SOL_NETBEUI
24612461
SOL_NETLINK
24622462
SOL_TCP
24632463
SOL_TIPC
2464+
SOL_TLS
24642465
SOL_UDP
24652466
SOL_X25
24662467
SOMAXCONN
@@ -2853,6 +2854,7 @@ TIOCSCTTY
28532854
TIOCSPGRP
28542855
TIOCSSOFTCAR
28552856
TIOCSTI
2857+
TLS_GET_RECORD_TYPE
28562858
TUN_READQ_SIZE
28572859
TUN_TAP_DEV
28582860
TUN_TUN_DEV

src/unix/linux_like/linux/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -3182,6 +3182,11 @@ pub const HWTSTAMP_FILTER_PTP_V2_SYNC: ::c_uint = 13;
31823182
pub const HWTSTAMP_FILTER_PTP_V2_DELAY_REQ: ::c_uint = 14;
31833183
pub const HWTSTAMP_FILTER_NTP_ALL: ::c_uint = 15;
31843184

3185+
// linux/tls.h
3186+
pub const TLS_GET_RECORD_TYPE: ::c_int = 2;
3187+
3188+
pub const SOL_TLS: ::c_int = 282;
3189+
31853190
// linux/if_alg.h
31863191
pub const ALG_SET_KEY: ::c_int = 1;
31873192
pub const ALG_SET_IV: ::c_int = 2;

0 commit comments

Comments
 (0)