O_TRUNC
#define B_ERASE_FILE O_TRUNC /* erase the file's data */
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
int flags = O_WRONLY | O_CREAT | (!gLogAppend ? O_TRUNC : 0);
int flags = O_WRONLY | O_CREAT | (!gLogAppend ? O_TRUNC : 0);
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644);
if (exists && (openMode & O_TRUNC) != 0)
if ((openMode & O_TRUNC) != 0)
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0) {
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
if ((openMode & O_TRUNC) != 0)
return open(path, mode | (create ? O_CREAT | O_TRUNC : 0), 0644);
if ((openMode & O_TRUNC) != 0)
if ((openMode & O_TRUNC) != 0)
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0)
if ((openMode & O_TRUNC) != 0) {
|| (openMode & O_TRUNC) != 0 || (openMode & O_CREAT) != 0)
nameBuffer, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP
result = currentVnode.ops->open(volume, ¤tVnode, O_RDWR | O_TRUNC,
if ((openMode & O_TRUNC) != 0)
if (openMode & O_TRUNC)
if ((openMode & O_TRUNC) && fStat.st_size != 0) {
if (openMode & O_TRUNC) {
openMode &= ~(O_RDWR | O_WRONLY | O_TRUNC | O_CREAT);
if (openMode & O_TRUNC)
if (openMode & O_TRUNC)
openMode &= ~(O_CREAT | O_EXCL | O_TRUNC);
openMode &= O_RWMASK | O_TRUNC | O_APPEND;
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
if (omode & O_TRUNC)
if ((mode & O_TRUNC) == O_TRUNC) {
if (create || (mode & O_TRUNC) == O_TRUNC) {
if ((mode & O_TRUNC) == O_TRUNC) {
if ((openMode & O_TRUNC) != 0) {
} else if (openMode & O_TRUNC) {
if (error == B_OK && (openMode & O_TRUNC))
if (openMode & O_TRUNC)
if (error == B_OK && (openMode & O_TRUNC)) {
|| (openMode & (O_TRUNC | O_CREAT))) {
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
fFile = open(filename, O_RDWR | O_CREAT | O_TRUNC);
| (openMode & O_TRUNC ? W_OK : 0));
bool truncate = (openMode & O_TRUNC) != 0;
openMode &= ~O_TRUNC;
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
fd = open("/tmp/duckduckgo.html", O_CREAT|O_TRUNC|O_RDWR, 0644);
sFD = open("/boot/home/ipcpdebug", O_WRONLY | O_CREAT | O_TRUNC);
fFile = open(filename, O_RDWR | O_CREAT | O_TRUNC);
fVideoFile = open("/boot/home/dvb-video.mpg", O_RDWR | O_CREAT | O_TRUNC);
fAudioFile = open("/boot/home/dvb-audio.mpg", O_RDWR | O_CREAT | O_TRUNC);
O_RDWR | O_CREAT | O_TRUNC);
fMpegTsFile = open("/boot/home/dvb-mpeg.ts", O_RDWR | O_CREAT | O_TRUNC);
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
BFile file(&directory, name, O_RDWR | O_TRUNC);
FLAG_INFO_ENTRY(O_TRUNC),
outFD = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC,
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
O_CREAT | O_WRONLY | O_TRUNC);
O_WRONLY | O_CREAT | O_TRUNC);
return _haiku_build_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
O_WRONLY | O_CREAT | O_TRUNC);
if ((fOpenMode & O_TRUNC) == 0) {
openMode |= O_CREAT | O_TRUNC;
BFile file(&directory, name, O_RDWR | O_CREAT | O_TRUNC);
posix_mode |= O_TRUNC;
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
int fd = open("/var/log/previous_syslog", O_WRONLY | O_CREAT | O_TRUNC,
if ((openMode & O_RWMASK) == O_RDONLY && (openMode & O_TRUNC) != 0)
O_CREAT | O_WRONLY | (pos != 0 ? 0 : O_TRUNC), false);
_kern_open(AT_FDCWD, path, O_CREAT | O_TRUNC | O_WRONLY, mode & ~__gUmask));
oflags = O_CREAT|O_TRUNC;
file = open("__file", O_CREAT | O_TRUNC | O_WRONLY);
int file = open(name, O_WRONLY | O_TRUNC | O_CREAT);
int fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644);
int fd = open_file(name, O_RDWR | O_CREAT | O_TRUNC);
int fd = open_file(file.name, O_CREAT | O_WRONLY | O_TRUNC);
int fd = open_file(file.name, O_WRONLY | O_TRUNC);
int fd = open ("/tmp/input_area.bin", O_WRONLY | O_CREAT | O_TRUNC, 0644);
int file = open(tmpfile, O_CREAT | O_TRUNC | O_RDWR);
if (created || (openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0) {
if ((openMode & O_TRUNC) != 0 && node->Size() > 0) {
error = open_file(volume, newFile, openMode & ~O_TRUNC, transaction,
gTestFD = open(fileName, O_CREAT | O_RDWR | O_TRUNC, 0644);
int fd = open(fileName, O_CREAT | O_RDWR | O_TRUNC, 0644);
int fd = open(kTestFileName, O_CREAT | O_TRUNC | O_WRONLY);
O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(name, O_RDWR | O_TRUNC | O_CREAT, 0644);
ret = open("link4", O_RDWR | O_TRUNC | O_CREAT, 0666);
ret = open(linkname, O_RDWR | O_TRUNC | O_CREAT, 0666);
fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666);
out_fd = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666);
sPcapFD = open(file, O_CREAT | O_WRONLY | O_TRUNC);
int outputFileHandle = open(outputFile, O_WRONLY | O_TRUNC | O_CREAT,
int outFD = open(outFileName, O_WRONLY | O_CREAT | O_TRUNC,
SET_OPEN_MODE_FLAG(O_TRUNC, FSSH_O_TRUNC)