O_TRUNC
to_fd = open(to.p_path, O_WRONLY | O_TRUNC);
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
if ((fd = open(short2str(hfile), O_WRONLY | O_CREAT | O_TRUNC,
if ((fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1)
(O_CREAT | (ddflags & (C_SEEK | C_NOTRUNC) ? 0 : O_TRUNC))
flags = O_WRONLY | O_CREAT | O_TRUNC;
to_fd = open(to.p_path, O_WRONLY | O_TRUNC);
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
if ((to_fd = open(to, O_CREAT | O_TRUNC | O_WRONLY, 0600)) == -1) {
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC)
O_CREAT | O_TRUNC | O_WRONLY,
O_CREAT | O_TRUNC | O_WRONLY,
if((fd = open(bones, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1) return;
fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK);
if((fd = open(SAVEF, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1) {
if((nfd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK)) == -1)
fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK);
if ((outf = open(buf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
if ((fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0660)) == -1)
return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
O_ACCMODE | O_SHLOCK | O_SYNC | O_TRUNC)
(O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC | O_CLOFORK | O_NOFOLLOW)
log = open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
o = O_CREAT | O_TRUNC;
st->len = (oflags & O_TRUNC) ? 0 : size;
if (oflags & O_TRUNC)
tmpfd = open(lcktmpname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
O_TRUNC :
outputfd = open(mode.output_file, O_WRONLY|O_CREAT|O_TRUNC,
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
fd = open(DUMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0222);
recfd = open(recpath, O_CREAT | O_WRONLY | O_TRUNC, 0666);
fd2 = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0644);
{ O_TRUNC, "O_TRUNC" },
fd = open("test.out", O_WRONLY|O_CREAT|O_TRUNC, 0600);
fd = open(path, O_WRONLY | O_TRUNC | O_SHLOCK);
if ((fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0777)) == -1)
if ((fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0777)) == -1)
fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(path, O_RDWR | O_TRUNC);
if ((outfd = open(file, O_WRONLY|O_CREAT|O_TRUNC, 0666)) == -1)
O_TRUNC;
if ((fd = open(_PATH_RESCONF_NEW, O_CREAT|O_TRUNC|O_RDWR, 0644)) == -1) {
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
ofd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
ofd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
if ((fastfd = open(_PATH_FASTBOOT, O_WRONLY|O_CREAT|O_TRUNC,
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
if ((to = open(to_file, O_RDWR | O_TRUNC | O_CREAT, 0644)) < 0)
fd = open(AFB_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644);
if ((fdout = open(FILENAME, O_CREAT|O_TRUNC|O_RDWR, 0644)) == -1)
if ((fdout = open(h[i]->filename, O_CREAT|O_TRUNC|O_RDWR, 0644))
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(THT_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
error = vn_open(&nd, FWRITE | O_CREAT | O_NOFOLLOW | O_TRUNC,
error = vn_open(&nd, FWRITE | O_CREAT | O_NOFOLLOW | O_TRUNC,
if ((flags & O_TRUNC) && (flags & (O_EXLOCK | O_SHLOCK))) {
flags &= ~O_TRUNC; /* Must do truncate ourselves */
if (flags & (FWRITE | O_TRUNC)) {
if (flags & O_TRUNC) {
if ((fmode & (O_TRUNC | FWRITE)) == O_TRUNC)
fmode &= ~O_TRUNC;
if ((fmode & O_TRUNC) && vp->v_type == VREG) {
flags = OFLAGS(ap->a_mode) & ~(O_CREAT|O_EXCL|O_TRUNC);
if (ap->a_mode & O_TRUNC)
O_WRONLY | O_TRUNC | O_CREAT, 0666);
if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
info->fd = open(info->name, O_CREAT | O_TRUNC | O_RDWR,
fd = open(out, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR);
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
O_CREAT | O_RDWR | O_TRUNC);
O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) {
O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) {
if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
cf->fd = open(cf->file_path, O_CREAT | O_RDWR | O_TRUNC, 0644);
if ((dst = open(to, O_CREAT|O_TRUNC|O_WRONLY,
if ((i = open(fpath, O_WRONLY|O_CREAT|O_TRUNC, 0755)) == -1) {
if ((fd = open(fpath, O_WRONLY | O_CREAT | O_TRUNC)) == -1)
out = open(savefile, O_CREAT | O_WRONLY | O_TRUNC,
out = open(savefile, O_CREAT | O_WRONLY | O_TRUNC, 0666);
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) == -1)
bakchn = open(bakfile, O_CREAT | O_TRUNC | O_WRONLY, 0600);
logfile = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0644);
if ((fdx = open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600)) != -1)
fd = open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600);
fd = open(fn, O_RDWR | O_CREAT | O_TRUNC, fmode);
if ((ofd = open(toname, O_WRONLY|O_CREAT|O_TRUNC, fmode)) == -1) {
ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if ((fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666)) != -1)
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
if ((fd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1)
O_WRONLY | O_NOFOLLOW | O_TRUNC | O_CREAT | O_EXCL,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
fd = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
fd = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
fdout = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
fdout = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
O_RDWR | O_NONBLOCK | O_CREAT | O_TRUNC |O_NOFOLLOW,
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
((resume_flag || inplace_flag) ? 0 : O_TRUNC), mode | S_IWUSR);
flags |= O_TRUNC;
(flags & (O_CREAT|O_TRUNC)) != 0)) {
if ((wfd = open(wfile, O_WRONLY|O_CREAT|O_TRUNC,
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
(append ? O_APPEND : O_TRUNC), DEFFILEMODE)) == -1) {
fd = open(cp, O_CREAT | O_TRUNC | O_WRONLY, 0644);
fd = open(cp, O_CREAT | O_TRUNC | O_WRONLY, 0644);
flags = O_TRUNC;
tty_log_fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
flags = O_CREAT|O_RDWR|O_TRUNC;
flags = O_TRUNC;
(LF_ISSET(FS_APPEND) ? O_APPEND : O_TRUNC);
if ((fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY,
fd = open(fs[fsz - 1], O_WRONLY|O_CREAT|O_TRUNC, 0444);
fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, mode);
O_WRONLY|O_NONBLOCK|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
if ((fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0700)) == -1)
key_fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0666);
db = dbopen(dbtmp, O_CREAT|O_EXLOCK|O_RDWR|O_TRUNC,
if ((ofd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
if ((ofd = open(dst, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1)
fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC,
db = dbopen(dbtemp, O_CREAT | O_EXLOCK | O_TRUNC | O_RDWR,
if ((fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_NONBLOCK|O_EXLOCK|O_TRUNC,
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK|O_TRUNC, 0660);
oflags |= O_TRUNC;
oflags |= O_TRUNC;
ofd = open(oname, O_RDWR | O_TRUNC | O_CREAT, 0644);
if((fd = open(nsd->pidfile, O_WRONLY | O_CREAT | O_TRUNC
fd = open(file, O_WRONLY | O_TRUNC
romfd = open(romfile, O_WRONLY|O_CREAT|O_TRUNC, 0777);
fsfd = open(fs, O_RDWR | O_CREAT | O_TRUNC, 0644);
flags = O_WRONLY|O_CREAT|O_TRUNC;
O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC,
saved_pacct_db = dbopen(_PATH_SAVACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
saved_usracct_db = dbopen(_PATH_USRACCT, O_RDWR|O_CREAT|O_TRUNC, 0644,
db = dbopen(dbname, O_TRUNC|O_RDWR, 0644, dbtype, NULL);
file = open(WFileName, O_WRONLY|O_CREAT|O_TRUNC, 0666);
wmode = O_TRUNC;
if((fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC
fd = open(daemon->pidfile, O_WRONLY | O_TRUNC
fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
fd = open(imgfile_path, O_RDWR | O_CREAT | O_TRUNC | O_EXCL,
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644)) == -1) {
if ((fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC,
fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC, 0644);
fd = open(path, O_CREAT|O_SHLOCK|O_RDWR|O_TRUNC,
new_db = ypdb_open(db_mapname, O_RDWR|O_TRUNC, 0444);