O_CREAT
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
if ((fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL, 0600)) < 0) {
fd2 = hc_open(&DstHost, path, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
if (NotForRealOpt && (flags & O_CREAT))
if (flags & O_CREAT)
flags |= O_CREAT;
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_RDWR|O_CREAT, 0666)) < 0)
if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT))
if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
local_fd = open(local_path, O_WRONLY | O_CREAT |
flags |= O_CREAT;
(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 ((lockfd = open(lockfile, O_CREAT|O_RDONLY, 0600)) == -1) {
if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) {
score_fd = open(_PATH_SCORE, O_CREAT|O_RDWR, 0664);
if ((fd = open(fname, O_WRONLY | O_TRUNC | O_CREAT, 0660)) == -1)
rawscores = open(_PATH_RAWSCORES, O_RDWR|O_CREAT, 0664);
mint = O_RDWR | O_CREAT;
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
db = dbopen(*argv == NULL ? NULL : *argv, O_CREAT|O_RDWR,
O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
oflags = O_CREAT | O_RDWR;
if (!(db = dbopen("bigtest", O_RDWR | O_CREAT, 0644, DB_HASH, &info))) {
O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){
if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
if ((fd = _open(file, O_CREAT|O_WRONLY|O_EXLOCK|O_CLOEXEC, 0644)) == -1)
db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK|O_CLOEXEC, 0644, DB_HASH, NULL);
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;
o = O_CREAT | O_APPEND;
if ((*doopen = _open(path, O_CREAT|O_EXCL|O_RDWR|oflags,
if ((fd = open(file, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
if (oflag & ~(O_CREAT|O_EXCL)) {
} else if ((oflag & O_CREAT) && errno == ENOENT) {
fd = open(buf, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0666);
if (flags & O_CREAT) {
if (flags & O_CREAT) {
if (flags & O_CREAT) {
O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode);
if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
O_WRONLY | O_CREAT | O_EXCL, S_IWUSR | S_IRUSR)) < 0)
f = openat(maildirfd, user, O_RDONLY|O_CREAT|O_NOFOLLOW, 0600);
queuefd = open_locked(it->queuefn, O_CREAT|O_EXCL|O_RDWR, 0660);
fd = open(flushfn, O_CREAT|O_WRONLY|O_TRUNC, 0660);
if (flags & O_CREAT) {
O_RDWR | O_CREAT | O_EXCL, 0666)) >= 0) {
#define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT
if ((fp = open(tmpname, O_RDWR|O_CREAT, PERM_SECURE)) == -1) {
fd = open(buf, O_RDWR|O_CREAT, 0644);
if ((fd = open(path_dhclient_db, O_RDONLY|O_EXLOCK|O_CREAT, 0)) == -1)
pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0600);
SFd = open(ScoreBoardFile, O_RDWR|O_CREAT|O_TRUNC, 0644);
fd = open(path2, O_RDWR|O_CREAT, 0666);
fd = open(path1, O_CREAT|O_RDWR, 0666);
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(jattr->path1, O_CREAT, jattr->modes)) >= 0) {
if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0600)) >= 0) {
if ((fd = open(data, O_RDWR|O_CREAT, 0666)) >= 0)
jf->jf_open_flags = rw ? (O_RDWR|O_CREAT) : O_RDONLY;
fd = open(data, O_RDWR|O_CREAT, 0666);
jf->jf_write_fd = open(path, O_RDWR|O_CREAT, 0666);
ss->ss_transid_fd = open(ss->ss_transid_file, O_RDWR|O_CREAT, 0666);
if ((fd = open(wopt, O_RDWR|O_CREAT|O_APPEND, 0666)) < 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);
fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666);
fd = open(modefile, O_RDWR|O_CREAT|O_EXCL, 0666);
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,
cmd->logfd = open(cmd->logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0640);
*pfdp = open(pidfile, O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0640);
if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1)
error = kern_openat(td, AT_FDCWD, path, UIO_SYSSPACE, O_CREAT | O_RDWR, 0666);
if (mode & (O_CREAT | O_APPEND | O_TRUNC))
fp->f_flag = O_CREAT|O_WRONLY|O_NOFOLLOW;
error = fp_open(buf, O_WRONLY|O_CREAT|O_TRUNC|O_NOFOLLOW, 0600, &fp);
O_CREAT | FWRITE | O_NOFOLLOW,
if (oflag & O_CREAT) {
if ((oflag & O_CREAT) && (oflag & O_EXCL)) {
if ((oflag & O_CREAT) == 0) {
if ((flags & (O_CREAT|O_TRUNC)) == 0) {
if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))
if (fmode & O_CREAT) {
((fmode & O_CREAT) && nd->nl_nch.ncp->nc_vp == NULL)) {
if (fmode & O_CREAT) {
fmode &= ~O_CREAT;
if ((fmode & O_CREAT) == 0) {
fd = open(pid_file, O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0666);
fd = open(tmpfile, O_RDWR|O_CREAT|O_EXCL, 0600);
(O_CREAT | O_RDWR));
if (foi->flags & O_CREAT) {
foi->flags &= ~O_CREAT;
if ((fd = open("test", O_CREAT|O_RDWR, 0666)) < 0) {
if ((fd = open(path, O_RDWR|O_CREAT, 0666)) < 0) {
assert(SEM_FAILED == sem_open("/foo", O_CREAT | O_EXCL, 0644, 0));
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)
i = open("tmp/foo", O_RDONLY | O_CREAT, 0644);
tests[9].tests[4].params[2].i = O_RDONLY | O_CREAT;
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
if ((tfd = open(file1, O_RDONLY|O_CREAT, 0660)) == -1)
if ((fd[i] = open(name, O_RDWR | O_CREAT, 0644)) < 1) {
close(open("/tmp/lockmgr2.test", O_RDWR|O_CREAT, 0666));
close(open(path, O_RDWR|O_CREAT, 0666));
fd = open("/tmp/lockmgr3.test", O_RDWR|O_CREAT, 0666);
fd = open(path, O_RDWR|O_CREAT, 0666);
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);
retval = sem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
id = sem_open(TEST_PATH, O_CREAT, 0777, 0);
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
retval = sem_open_should_fail(TEST_PATH, O_CREAT, 0777,
id = sem_open(TEST_PATH, O_CREAT, 0777, 1);
id = sem_open(TEST_PATH, O_CREAT | O_EXCL, 0777, 1);
id = sem_open(TEST_PATH, O_CREAT, 0777, 0);
fd = open(TEST_FILENAME, O_RDWR | O_TRUNC | O_CREAT,
fd = open("test1.data", O_RDWR|O_CREAT, 0666);
fd2 = open("test1.scratch", O_RDWR|O_CREAT, 0666);
fd = open("test2.data", O_RDWR|O_CREAT, 0666);
fd2 = open("test2.scratch", O_RDWR|O_CREAT, 0666);
q(__LINE__, (fd = open(nam, O_RDWR|O_CREAT, 0666)),
int fh = open(tmp_file, O_CREAT | O_TRUNC | O_WRONLY, 0666);
fd = open(p->fname, O_WRONLY | O_CREAT, 0644);
fd = open(KEY_FILE, O_WRONLY | O_CREAT | 0644);
weplog.fd = open(WEP_FILE, O_WRONLY | O_CREAT,
fd = open(PRGA_FILE, O_WRONLY | O_CREAT,
fd = open(path, O_WRONLY | O_CREAT, 0644);
if ((lockdes = open(LFILE, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR)) < 0)
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);
CheckDBM = dbm_open(dbmpath, O_CREAT|O_RDWR, 0644);
fdlog = open(pkg->logfile, O_RDWR|O_CREAT|O_APPEND, 0644);
fd2 = open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
fd = open(lkpath, O_RDWR | O_CREAT | O_APPEND, 0644);
lkfd = open(lkpath, O_RDWR | O_CREAT | O_CLOEXEC, 0644);
StatsFd = open(StatsFilePath, O_RDWR|O_CREAT|O_CLOEXEC, 0644);
LockFd = open(StatsLockPath, O_RDWR|O_CREAT|O_NOFOLLOW|O_CLOEXEC,
fd = open(goodbuf, O_RDWR|O_CREAT|O_TRUNC, 0644);
(void)dlogfd(i, O_RDWR|O_CREAT|O_TRUNC|O_APPEND);
fd = dlogfd(DLOG_ALL, O_RDWR|O_CREAT|O_APPEND);
fd = dlogfd(which, O_RDWR|O_CREAT|O_APPEND);
return(dlogfd(DLOG_ALL, O_RDWR|O_CREAT|O_APPEND));
fd = open(corefile, O_RDWR|O_CREAT|O_TRUNC, DEFFILEMODE);
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)
out = open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0600);
zfd = open(outfile, O_WRONLY|O_CREAT|O_EXCL, 0600);
db = dbm_open(datafile, (O_RDWR | O_CREAT),
if ((fd = open(tracefile, O_CREAT | O_WRONLY, DEFFILEMODE)) < 0)
if ((fd = open(tracefile, O_CREAT | O_EXCL | O_WRONLY,
if ((fd = open(name, O_RDONLY|O_CREAT|O_EXLOCK|O_NONBLOCK, 0666)) == -1) {
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));
fd = open(fname, O_RDWR|O_EXCL|O_CREAT|O_APPEND);
fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR);
if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0)
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)
while ((fd = open(tmpf, O_RDWR | O_CREAT | O_EXCL, 0644)) == -1){
flags = O_WRONLY|O_CREAT|O_APPEND;
flags = O_WRONLY|O_CREAT|O_TRUNC;
O_WRONLY | O_CREAT, DEFFILEMODE);
oflags = O_WRONLY | O_CREAT;
if ((fd = open(*path, O_RDWR|O_CREAT|O_TRUNC, mode)) < 0)
fp = open(pidfile, O_WRONLY|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH);
flags = O_WRONLY | O_CREAT | O_EXCL;
return (open(path, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR));
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
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(lname,O_RDWR|O_CREAT,0666);
if ((-1 == (fd = open(pidfile, O_RDWR|O_CREAT, 0644)))
LogFD = open(LOG_FILE, O_WRONLY|O_APPEND|O_CREAT, 0600);
outfd = open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0600);
logpar.outfd = open(outfn, O_CREAT |
fd = open(qfpathname, O_RDWR|O_CREAT, 0640);
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);
fd = open(lfname, O_WRONLY|O_CREAT, newbits);
newfd = open(tfname2, O_WRONLY|O_CREAT|O_TRUNC, 0660);
fd = open(statfile, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
f = open(n, O_WRONLY | O_EXCL | O_CREAT, FILMOD);
if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) {
int oflags = O_RDWR | O_CREAT;
fd = open(out, O_WRONLY | O_CREAT | O_TRUNC, 0666);
oflags = O_RDWR | O_CREAT;
fd = open(firmware_file, O_CREAT | O_TRUNC | O_RDWR, 0644);
ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR );
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
fd = open(ren, O_CREAT|O_EXCL, 0);
PowerFd = open("/var/run/powerd.pid", O_CREAT|O_RDWR, 0644);
} else if (S_ISREG(st.st_mode) && (outfd = open(dst, O_RDWR | O_CREAT | O_EXCL, st.st_mode)) != -1) {
if ((infd = open(groupfile, O_RDWR | O_CREAT | O_EXLOCK, 0644)) != -1) {
if ((outfd = open(grouptmp, O_RDWR | O_CREAT | O_TRUNC, 0644)) != -1) {
int infd = open(filename, O_RDWR | O_CREAT | O_EXLOCK, fmode);
outfd = open(file, O_RDWR | O_CREAT | O_TRUNC, fmode);
if ((fd = open(file, O_CREAT | O_RDWR | O_TRUNC | O_EXLOCK, 0644)) != -1) {
int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
close(open(line, O_RDWR | O_CREAT, 0600)); /* Preserve contents &
O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo);
O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo);
O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0)
if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
status_fd = open(filename, O_RDWR | O_CREAT, 0644);
#define FLAGS O_RDWR|O_CREAT
O_RDONLY|O_CREAT, 0444))) == -1)
whod = open(path, O_WRONLY | O_CREAT, 0644);
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,
logflags |= O_CREAT;
fd = open(filename, O_RDWR | O_CREAT, 0666);
fd_tmp = open(LISTEN_SOCKET_FILE, O_EXCL | O_CREAT, 0666);
O_WRONLY | O_CREAT | O_TRUNC,
fd2 = open(path_localtime, O_CREAT | O_EXCL | O_WRONLY,
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 ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)
if ((yplockfd = (open(YPBINDLOCK, O_RDONLY|O_CREAT, 0444))) == -1)
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)