Skip to content

Commit f7b4c2e

Browse files
committed
Auto merge of #3082 - devnexen:fbsd_signal_const, r=JohnTitor
adding specific freebsd signal constants
2 parents 44542e9 + 4d14302 commit f7b4c2e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,10 @@ SIGEV_THREAD
11111111
SIGEV_THREAD_ID
11121112
SIGINFO
11131113
SIGIO
1114+
SIGLIBRT
1115+
SIGLWP
11141116
SIGSTKSZ
1117+
SIGTHR
11151118
SIOCGIFADDR
11161119
SLIPDISC
11171120
SOCKCREDSIZE

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3800,6 +3800,11 @@ pub const CPU_WHICH_CPUSET: ::c_int = 3;
38003800
pub const CPU_WHICH_IRQ: ::c_int = 4;
38013801
pub const CPU_WHICH_JAIL: ::c_int = 5;
38023802

3803+
// sys/signal.h
3804+
pub const SIGTHR: ::c_int = 32;
3805+
pub const SIGLWP: ::c_int = SIGTHR;
3806+
pub const SIGLIBRT: ::c_int = 33;
3807+
38033808
const_fn! {
38043809
{const} fn _ALIGN(p: usize) -> usize {
38053810
(p + _ALIGNBYTES) & !_ALIGNBYTES

0 commit comments

Comments
 (0)