Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Access permissions for the newly created file should be specified in the call to open(). Again, the permissions may be influenced by the value of umask().

Code Block
bgColor#ccccff
...
int fd = open(file_name, O_CREAT | O_WRONLY, file_access_permissions);
if (fd == -1){
  /* Handle Error */
}
...

...