And reading the man page for O_APPEND it states:
" O_APPEND The file is opened in append mode. Before each write(2), the file offset is positioned at the end of the file, as if with lseek(2)."
It specifically says that write() is affected by O_APPEND not truncate()
And reading the man page for O_APPEND it states:
" O_APPEND
The file is opened in append mode. Before each write(2), the file offset is positioned at the end of the file, as if with lseek(2)."
It specifically says that write() is affected by O_APPEND not truncate()