15.05.2002, 20:59
|
#2
|
Inventar
Registriert seit: 24.09.2001
Beiträge: 7.335
|
man 2 open
Zitat:
O_TRUNC
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. (On
many Linux versions it will be ignored; on other versions it will
return an error.)
|
bzw.
man rewind
HTH
|
|
|