The third argument of open doesn't actually have to be one of the defined flags. If you want it in +rwe mode for all users, just change your code to
open(file, O_CREAT, 0777);
EDIT: If you'd prefer to use the flags. Just combine them with the | command. You'll end up actually passing the same value in, but many people prefer to use the flags.