IAID_FILE
if ((fd = open(IAID_FILE, O_RDONLY)) == -1)
if ((fd = open(IAID_FILE, O_RDWR | O_CREAT, 0644)) == -1)