Skip to content

Commit 2f4ca87

Browse files
committed
Auto merge of #741 - kallisti5:haiku-sigfix, r=alexcrichton
haiku: Add missing signals * Now a complete signal list on Haiku minus reserved. * Fixes build failure due to missing SIGUSR1
2 parents e7ce47a + 177d5e6 commit 2f4ca87

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

src/unix/haiku/mod.rs

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ pub const F_SETFD: ::c_int = 0x0004;
332332
pub const F_GETFL: ::c_int = 0x0008;
333333
pub const F_SETFL: ::c_int = 0x0010;
334334

335-
pub const SIGTRAP: ::c_int = 22;
336-
337335
pub const PTHREAD_CREATE_JOINABLE: ::c_int = 0;
338336
pub const PTHREAD_CREATE_DETACHED: ::c_int = 1;
339337

@@ -402,17 +400,37 @@ pub const X_OK: ::c_int = 1;
402400
pub const STDIN_FILENO: ::c_int = 0;
403401
pub const STDOUT_FILENO: ::c_int = 1;
404402
pub const STDERR_FILENO: ::c_int = 2;
403+
405404
pub const SIGHUP: ::c_int = 1;
406405
pub const SIGINT: ::c_int = 2;
407406
pub const SIGQUIT: ::c_int = 3;
408407
pub const SIGILL: ::c_int = 4;
408+
pub const SIGCHLD: ::c_int = 5;
409409
pub const SIGABRT: ::c_int = 6;
410+
pub const SIGPIPE: ::c_int = 7;
410411
pub const SIGFPE: ::c_int = 8;
411412
pub const SIGKILL: ::c_int = 9;
413+
pub const SIGSTOP: ::c_int = 10;
412414
pub const SIGSEGV: ::c_int = 11;
413-
pub const SIGPIPE: ::c_int = 7;
415+
pub const SIGCONT: ::c_int = 12;
416+
pub const SIGTSTP: ::c_int = 13;
414417
pub const SIGALRM: ::c_int = 14;
415418
pub const SIGTERM: ::c_int = 15;
419+
pub const SIGTTIN: ::c_int = 16;
420+
pub const SIGTTOU: ::c_int = 17;
421+
pub const SIGUSR1: ::c_int = 18;
422+
pub const SIGUSR2: ::c_int = 19;
423+
pub const SIGWINCH: ::c_int = 20;
424+
pub const SIGKILLTHR: ::c_int = 21;
425+
pub const SIGTRAP: ::c_int = 22;
426+
pub const SIGPOLL: ::c_int = 23;
427+
pub const SIGPROF: ::c_int = 24;
428+
pub const SIGSYS: ::c_int = 25;
429+
pub const SIGURG: ::c_int = 26;
430+
pub const SIGVTALRM: ::c_int = 27;
431+
pub const SIGXCPU: ::c_int = 28;
432+
pub const SIGXFSZ: ::c_int = 29;
433+
pub const SIGBUS: ::c_int = 30;
416434

417435
pub const EAI_SYSTEM: ::c_int = 11;
418436

@@ -638,8 +656,6 @@ pub const SA_ONSTACK: c_ulong = 0x20;
638656
pub const SA_SIGINFO: c_ulong = 0x40;
639657
pub const SA_NOCLDWAIT: c_ulong = 0x02;
640658

641-
pub const SIGCHLD: ::c_int = 5;
642-
pub const SIGBUS: ::c_int = 30;
643659
pub const SIG_SETMASK: ::c_int = 3;
644660

645661
pub const RUSAGE_CHILDREN: ::c_int = -1;

0 commit comments

Comments
 (0)