Skip to content

Commit

Permalink
Obtained correct Linux flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirsch committed Sep 4, 2016
1 parent 662dd56 commit 38cf8f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions selfie.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ int O_RDONLY = 32768;
// MAC: 1537 = 0x0601 = O_CREAT (0x0200) | O_TRUNC (0x0400) | O_WRONLY (0x0001)
int MAC_O_CREAT_TRUNC_WRONLY = 1537;

// LINUX: 4353 = 0x1101 = O_CREAT (0x0100) | O_TRUNC (0x1000) | O_WRONLY (0x0001)
// unexplained for now 577 = 0x0241 works while 4353 does not
// LINUX: 577 = 0x0241 = O_CREAT (0x0040) | O_TRUNC (0x0200) | O_WRONLY (0x0001)
int LINUX_O_CREAT_TRUNC_WRONLY = 577;

// WINDOWS: 33537 = 0x8301 = _O_BINARY (0x8000) | _O_CREAT (0x0100) | _O_TRUNC (0x0200) | _O_WRONLY (0x0001)
Expand Down Expand Up @@ -6769,4 +6768,4 @@ int main(int argc, int* argv) {
}

return 0;
}
}

0 comments on commit 38cf8f8

Please sign in to comment.