PICLEVENT_DOOR
door_fd = open(PICLEVENT_DOOR, O_RDONLY);
PICLEVENT_DOOR, door_fd);
if (stat(PICLEVENT_DOOR, &stbuf) < 0) {
if ((newfd = creat(PICLEVENT_DOOR, 0444)) < 0) {
if (fattach(door_id, PICLEVENT_DOOR) < 0) {
if ((errno != EBUSY) || (fdetach(PICLEVENT_DOOR) < 0) ||
(fattach(door_id, PICLEVENT_DOOR) < 0)) {