src/os/posix/vm/os_posix.cpp

changeset 9610
f43f77de876a
parent 9478
f3108e56b502
child 9637
eef07cd490d4
child 9711
0f2fe7d37d8c
equal deleted inserted replaced
9609:28f68e5c6fb3 9610:f43f77de876a
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" },

mercurial