Skip to content

Commit

Permalink
added missing signal constants for espidf
Browse files Browse the repository at this point in the history
(apply <rust-lang#3658> to `main`)
(cherry picked from commit 539ec75)
  • Loading branch information
Tevz-Beskovnik authored and tgross35 committed Aug 13, 2024
1 parent e9fee70 commit 4b2fa98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/unix/newlib/espidf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ pub const MSG_EOR: ::c_int = 0x08;

pub const PTHREAD_STACK_MIN: ::size_t = 768;

pub const SIGABRT: ::size_t = 1;
pub const SIGFPE: ::size_t = 1;
pub const SIGILL: ::size_t = 1;
pub const SIGINT: ::size_t = 1;
pub const SIGSEGV: ::size_t = 1;
pub const SIGTERM: ::size_t = 1;
pub const SIGHUP: ::size_t = 1;
pub const SIGQUIT: ::size_t = 1;
pub const NSIG: ::size_t = 2;

extern "C" {
pub fn pthread_create(
native: *mut ::pthread_t,
Expand Down
2 changes: 0 additions & 2 deletions src/unix/newlib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,6 @@ pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC;

pub const INET_ADDRSTRLEN: ::c_int = 16;

pub const SIGABRT: ::c_int = 1;

// https://github.com/bminor/newlib/blob/HEAD/newlib/libc/sys/linux/include/net/if.h#L121
pub const IFF_UP: ::c_int = 0x1; // interface is up
pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid
Expand Down

0 comments on commit 4b2fa98

Please sign in to comment.