Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: made minor editorial change

...

Code Block
bgColor#ffcccc
langc
fd = open(ms, O_CREAT | O_EXCL | O_WRONLY | O_TRUNC);

Note that, technicallyTechnically, it is incorrect to pass a third argument to open() when not creating a new file (that is, with the O_CREAT flag not set).

Compliant Solution (POSIX)

...