602 } |
602 } |
603 |
603 |
604 strncpy(buffer, "none", size); |
604 strncpy(buffer, "none", size); |
605 |
605 |
606 const struct { |
606 const struct { |
607 int i; |
607 // NB: i is an unsigned int here because SA_RESETHAND is on some |
|
608 // systems 0x80000000, which is implicitly unsigned. Assignining |
|
609 // it to an int field would be an overflow in unsigned-to-signed |
|
610 // conversion. |
|
611 unsigned int i; |
608 const char* s; |
612 const char* s; |
609 } flaginfo [] = { |
613 } flaginfo [] = { |
610 { SA_NOCLDSTOP, "SA_NOCLDSTOP" }, |
614 { SA_NOCLDSTOP, "SA_NOCLDSTOP" }, |
611 { SA_ONSTACK, "SA_ONSTACK" }, |
615 { SA_ONSTACK, "SA_ONSTACK" }, |
612 { SA_RESETHAND, "SA_RESETHAND" }, |
616 { SA_RESETHAND, "SA_RESETHAND" }, |