Skip to content

Commit 48aa1d7

Browse files
authored
Merge pull request #4352 from hax0kartik/main
Add missing signal related defines and fix dirent struct for VxWorks
2 parents 17adc30 + ba681b3 commit 48aa1d7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/vxworks/mod.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ s_no_extra_traits! {
418418
pub struct dirent {
419419
pub d_ino: crate::ino_t,
420420
pub d_name: [c_char; _PARM_NAME_MAX as usize + 1],
421+
pub d_type: c_uchar,
421422
}
422423

423424
pub struct sockaddr_un {
@@ -466,6 +467,7 @@ cfg_if! {
466467
f.debug_struct("dirent")
467468
.field("d_ino", &self.d_ino)
468469
.field("d_name", &&self.d_name[..])
470+
.field("d_type", &self.d_type)
469471
.finish()
470472
}
471473
}
@@ -978,11 +980,34 @@ pub const SIGCONT: c_int = 19;
978980
pub const SIGCHLD: c_int = 20;
979981
pub const SIGTTIN: c_int = 21;
980982
pub const SIGTTOU: c_int = 22;
983+
pub const SIGUSR1: c_int = 30;
984+
pub const SIGUSR2: c_int = 31;
985+
pub const SIGPOLL: c_int = 32;
986+
pub const SIGPROF: c_int = 33;
987+
pub const SIGSYS: c_int = 34;
988+
pub const SIGURG: c_int = 35;
989+
pub const SIGVTALRM: c_int = 36;
990+
pub const SIGXCPU: c_int = 37;
991+
pub const SIGXFSZ: c_int = 38;
992+
pub const SIGRTMIN: c_int = 48;
993+
994+
pub const SIGIO: c_int = SIGRTMIN;
995+
pub const SIGWINCH: c_int = SIGRTMIN + 5;
996+
pub const SIGLOST: c_int = SIGRTMIN + 6;
981997

982998
pub const SIG_BLOCK: c_int = 1;
983999
pub const SIG_UNBLOCK: c_int = 2;
9841000
pub const SIG_SETMASK: c_int = 3;
9851001

1002+
pub const SA_NOCLDSTOP: c_int = 0x0001;
1003+
pub const SA_SIGINFO: c_int = 0x0002;
1004+
pub const SA_ONSTACK: c_int = 0x0004;
1005+
pub const SA_INTERRUPT: c_int = 0x0008;
1006+
pub const SA_RESETHAND: c_int = 0x0010;
1007+
pub const SA_RESTART: c_int = 0x0020;
1008+
pub const SA_NODEFER: c_int = 0x0040;
1009+
pub const SA_NOCLDWAIT: c_int = 0x0080;
1010+
9861011
pub const SI_SYNC: c_int = 0;
9871012
pub const SI_USER: c_int = -1;
9881013
pub const SI_QUEUE: c_int = -2;

0 commit comments

Comments
 (0)