open(), write(), and close() are the exact three syscalls every C library's fopen()/fwrite()/fclose() eventually wraps, and the O_CREAT|O_TRUNC flag combination here is what tools like logrotate rely on to atomically replace files. Skipping the return-value check on open() is one of the most common real-world causes of silent data loss in production logging pipelines.