O_TRUNC
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
if (flags & O_TRUNC)
flags |= O_TRUNC;
if (flags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)) {
(O_CREAT | (ddflags & (C_SEEK | C_NOTRUNC) ? 0 : O_TRUNC))
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
#define AR_MODE (O_WRONLY | O_CREAT | O_TRUNC) /* mode for archive */
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC,
if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
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)
if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT, 0660)) == -1)
O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC | O_CLOEXEC)
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){
return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
fd = _open(outname, O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0666);
log = _open("gmon.log", O_CREAT|O_TRUNC|O_WRONLY|O_CLOEXEC, 0664);
o = O_CREAT | O_TRUNC;
if (oflags & O_TRUNC)
if (oflags & O_TRUNC)
fd = open(buf, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0666);
trunc = (flags & O_TRUNC);
flags &= ~O_TRUNC;
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
fd = open(flushfn, O_CREAT|O_WRONLY|O_TRUNC, 0660);
fd = open(filename, mode == RRQ ? O_RDONLY : O_WRONLY|O_TRUNC);
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0600);
SFd = open(ScoreBoardFile, O_RDWR|O_CREAT|O_TRUNC, 0644);
if ((fd = open(CyclePath, O_RDWR|O_CREAT|O_TRUNC, 0666)) >= 0) {
wfd = open(path1, O_RDWR|O_CREAT|O_TRUNC, 0600);
if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0600)) >= 0) {
if ((fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0600)) < 0) {
fd = open(filename, O_RDWR|O_TRUNC|O_CREAT, 0644);
fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644);
ffd = open(path, O_CREAT|O_TRUNC|O_RDWR, 0755);
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
if ((ofile = open(name, O_WRONLY | O_CREAT | O_TRUNC,
fdinfo = open(buf, O_WRONLY | O_CREAT | O_TRUNC, 0600);
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
if (mode & (O_CREAT | O_APPEND | O_TRUNC))
error = fp_open(buf, O_WRONLY|O_CREAT|O_TRUNC|O_NOFOLLOW, 0600, &fp);
if ((ap->a_oflags & (FWRITE|O_TRUNC)) && vp->v_type == VDIR) {
if (flags & (FWRITE | O_TRUNC)) {
if ((flags & (O_CREAT|O_TRUNC)) == 0) {
if (fmode & (FWRITE | O_TRUNC)) {
if (fmode & O_TRUNC) {
if ((fmode & (FWRITE | O_TRUNC)) == O_TRUNC)
if (fmode & O_TRUNC)
if ((fmode & (FWRITE | O_TRUNC)) ||
fmode &= ~O_TRUNC;
if (fmode & (FWRITE | O_TRUNC)) {
if (fmode & O_TRUNC) {
fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
fd = open(fname, O_RDWR|(lite ? 0 : O_CREAT|O_TRUNC), 0666);
fsxgoodfd = open(goodfile, O_RDWR|O_CREAT|O_TRUNC, 0666);
O_CREAT | O_TRUNC | O_WRONLY | O_EXCL, 0644)) != -1)
O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0)
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0777);
fd = open(TEST_FILENAME, O_RDWR | O_TRUNC | O_CREAT,
int fh = open(tmp_file, O_CREAT | O_TRUNC | O_WRONLY, 0666);
if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR,
fd = open(ROOTKEY, O_WRONLY|O_TRUNC|O_CREAT, 0);
tmpfd = open(pkg.logfile, O_RDWR|O_CREAT|O_TRUNC, 0666);
fd2 = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
fd = open(goodbuf, O_RDWR|O_CREAT|O_TRUNC, 0644);
(void)dlogfd(i, O_RDWR|O_CREAT|O_TRUNC|O_APPEND);
fd = open(corefile, O_RDWR|O_CREAT|O_TRUNC, DEFFILEMODE);
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)
if ((i = open(Tflag, O_CREAT | O_TRUNC | O_WRONLY,
close(open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600));
close(open(mailname, O_CREAT | O_TRUNC | O_WRONLY, 0600));
tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
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)
flags = O_WRONLY|O_CREAT|O_TRUNC;
if ((fd = open(*path, O_RDWR|O_CREAT|O_TRUNC, mode)) < 0)
return (open(path, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR));
write_mbr(fpath, O_CREAT | O_TRUNC, mbr, mbr_size);
if ((f = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600)) < 0) {
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
fd = open("/tmp/t1", O_RDWR | O_CREAT | O_TRUNC,
fd = open(ROOTKEY, O_WRONLY|O_TRUNC|O_CREAT, 0);
newfd = open(tfname2, O_WRONLY|O_CREAT|O_TRUNC, 0660);
errfd = open(tempstderr, O_WRONLY|O_TRUNC, 0664);
n = open(tempstderr, O_WRONLY|O_TRUNC, 0664);
oflags |= O_TRUNC;
fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666);
oflags |= O_TRUNC;
fd = open(firmware_file, O_CREAT | O_TRUNC | O_RDWR, 0644);
if ((fd = ID0open(_PATH_RESCONF, O_WRONLY|O_TRUNC, 0644)) != -1) {
if ((outfd = open(grouptmp, O_RDWR | O_CREAT | O_TRUNC, 0644)) != -1) {
outfd = open(file, O_RDWR | O_CREAT | O_TRUNC, fmode);
if ((fd = open(file, O_CREAT | O_RDWR | O_TRUNC | O_EXLOCK, 0644)) != -1) {
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,
O_WRONLY | O_CREAT | O_TRUNC,
p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
p->bfd = open(b_arg, O_CREAT | O_TRUNC |
fd = open(file, O_RDWR|O_CREAT|O_TRUNC, 0600);
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, 0644)) == -1)
if ((fd = open(path, O_CREAT|O_RDWR|O_TRUNC, 0644)) == -1) {
if ((fd = open(path, O_CREAT|O_RDWR|O_TRUNC, 0644)) == -1)