If the file already exists and is a regular file and the open mode allows writing (i.e., is +o-rdwr+ or +o-wronly+) it will be truncated to length 0. If the file is a FIFO or terminal device file, the +o-trunc+ flag is ignored. Otherwise the effect of +o-trunc+ is unspecified.