O_NOFOLLOW
if ((fd = open(file, O_WRONLY|O_NONBLOCK|O_NOFOLLOW)) == -1)
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
fd = open(rundir, O_RDONLY|O_DIRECTORY|O_NOFOLLOW|O_CLOEXEC|O_CLOFORK);
(O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC | O_CLOFORK | O_NOFOLLOW)
flags |= O_CLOEXEC | O_NOFOLLOW;
#ifdef O_NOFOLLOW
flags |= O_NOFOLLOW;
#ifdef O_NOFOLLOW
flags |= O_NOFOLLOW;
#ifdef O_NOFOLLOW
flags |= O_NOFOLLOW;
#ifdef O_NOFOLLOW
flags |= O_NOFOLLOW;
#ifdef O_NOFOLLOW
flags |= O_NOFOLLOW;
fd = open(sempath, O_RDWR | O_NOFOLLOW | oflag, 0600);
fd = open(sempath, O_RDWR | O_NOFOLLOW | oflag, 0600);
if ((fd = open(filename, O_RDWR | O_NOFOLLOW | O_NONBLOCK,
ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, 1, O_NOFOLLOW) == -1);
{ O_NOFOLLOW, "O_NOFOLLOW" },
if ((diskfd = opendev(argv[i], O_RDONLY | O_NOFOLLOW, 0,
if ((fd = opendev(path, O_RDONLY | O_NOFOLLOW, 0, NULL)) >= 0) {
O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK|O_NOFOLLOW,
error = vn_open(&nd, FWRITE | O_CREAT | O_NOFOLLOW | O_TRUNC,
error = vn_open(&nd, FWRITE | O_CREAT | O_NOFOLLOW | O_TRUNC,
if ((error = vn_open(&nd, FWRITE|O_NOFOLLOW, 0)) != 0)
error = vn_open(&nd, O_CREAT | FWRITE | O_NOFOLLOW | O_NONBLOCK,
error = vn_open(&nd, O_CREAT | FWRITE | O_NOFOLLOW | O_NONBLOCK,
oflags = O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW |
if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0)
ndp->ni_cnd.cn_flags |= ((fmode & O_NOFOLLOW) ? NOFOLLOW : FOLLOW) | LOCKLEAF;
O_RDONLY|O_NOFOLLOW);
if ((fd = open(tempname, O_RDONLY|O_NOFOLLOW)) == -1 ||
if ((fd1 = open(file1, O_RDONLY|O_NOFOLLOW)) == -1)
if ((fd2 = open(file2, O_RDONLY|O_NOFOLLOW)) == -1)
fromfd = openat(dfd, f->path, O_RDONLY | O_NOFOLLOW);
O_WRONLY | O_NOFOLLOW | O_TRUNC | O_CREAT | O_EXCL,
*filefd = openat(p->rootfd, f->path, O_RDONLY | O_NOFOLLOW);
fd = xopen(filename, O_RDONLY | O_NOFOLLOW, 0);
fd = xopen(filename, O_RDONLY | O_NOFOLLOW, 0);
fd = xopen(filename, O_CREAT|oflags|O_NOFOLLOW|O_WRONLY, mode);
fd = xopen(sigfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
fd = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
fdin = xopen(sigfile, O_RDONLY | O_NOFOLLOW, 0);
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,
flags = O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW;
flags &= ~(O_EXCL|O_NOFOLLOW);
fd = openat(dfd, name, O_RDONLY|O_NOFOLLOW|O_NONBLOCK);
if ((fd = openat(dfd, atfile, O_RDONLY|O_NONBLOCK|O_NOFOLLOW)) == -1) {
fd = openat(dfd, fname, O_RDONLY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC);
if ((fd = open(_PATH_DEV_PF, O_RDWR|O_NOFOLLOW)) == -1)
fd = open(oreq->path, oflags | O_NOFOLLOW, 0600);
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);
fd = open(path, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0660);
fd = safe_open(ST, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(LO, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(ST, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(cf, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(s, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(file, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(file, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open((*qq)->q_name, O_RDONLY|O_NOFOLLOW, 0);
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW,
fd = safe_open(line, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(statfile, O_WRONLY|O_CREAT|O_NOFOLLOW, 0660);
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0670)) < 0)
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0770)) < 0)
fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0660);
fd = safe_open(line, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(line, O_RDONLY|O_NOFOLLOW, 0);
if ((fd = safe_open(line, O_WRONLY|O_CREAT|O_NOFOLLOW, 0760)) < 0)
fd = open(ST, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK, 0660);
lfd = safe_open(LO, O_WRONLY|O_CREAT|O_NOFOLLOW|O_EXLOCK, 0640);
fd = safe_open(file, O_RDONLY|O_NOFOLLOW, 0);
fi = safe_open(file, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(tempfile, O_RDONLY|O_NOFOLLOW, 0);
fd = safe_open(file, O_RDONLY|O_NOFOLLOW, 0);
f = safe_open(file, O_RDONLY|O_NOFOLLOW, 0);
if ((tfd = safe_open(tfname, O_RDWR|O_NOFOLLOW, 0)) >= 0) {
if ((fd = safe_open(buf, O_RDWR|O_CREAT|O_NOFOLLOW, 0661)) < 0)
(O_RDONLY | O_NONBLOCK | O_NOFOLLOW)
#ifdef O_NOFOLLOW
| O_NOFOLLOW
#ifdef O_NOFOLLOW
| O_NOFOLLOW
f |= O_NOFOLLOW;
O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC,
if ((fd = open(path, O_RDONLY|O_NOFOLLOW|O_NONBLOCK)) == -1) {
fd = open(pathname, O_RDONLY|O_NOFOLLOW|O_NONBLOCK);
#ifdef O_NOFOLLOW
| O_NOFOLLOW
#ifdef O_NOFOLLOW
| O_NOFOLLOW