If flags is O_CREAT, optional third parameter mode will set the mode of the file (creation permissions).
dio_open() opens a file and returns a new file descriptor for it, or FALSE if any error occurred. If flags is O_CREAT, optional third parameter mode will set the mode of the file (creation permissions). The flags parameter can be one of the following options: