Skip to content

Commit 539ec75

Browse files
Tevz-BeskovnikJohnTitor
authored andcommitted
added missing signal constants for espidf
1 parent 47a8927 commit 539ec75

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/unix/newlib/espidf/mod.rs

+10
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ pub const MSG_EOR: ::c_int = 0x08;
8989

9090
pub const PTHREAD_STACK_MIN: ::size_t = 768;
9191

92+
pub const SIGABRT: ::size_t = 1;
93+
pub const SIGFPE: ::size_t = 1;
94+
pub const SIGILL: ::size_t = 1;
95+
pub const SIGINT: ::size_t = 1;
96+
pub const SIGSEGV: ::size_t = 1;
97+
pub const SIGTERM: ::size_t = 1;
98+
pub const SIGHUP: ::size_t = 1;
99+
pub const SIGQUIT: ::size_t = 1;
100+
pub const NSIG: ::size_t = 2;
101+
92102
extern "C" {
93103
pub fn pthread_create(
94104
native: *mut ::pthread_t,

src/unix/newlib/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,6 @@ pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC;
511511

512512
pub const INET_ADDRSTRLEN: ::c_int = 16;
513513

514-
pub const SIGABRT: ::c_int = 1;
515-
516514
// https://github.com/bminor/newlib/blob/HEAD/newlib/libc/sys/linux/include/net/if.h#L121
517515
pub const IFF_UP: ::c_int = 0x1; // interface is up
518516
pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid

0 commit comments

Comments
 (0)