Home
last modified time | relevance | path

Searched refs:O_cloexec (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dopendir.c55 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0) return(0);
58 #if !O_cloexec
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtvtouch.c150 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) in tvtouch()
254 if ((fd = open(path, O_RDWR|O_cloexec)) >= 0) in tvtouch()
274 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) in tvtouch()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-fcntl.c120 …if (fd >= 0 || (fd = open(path, O_RDWR|O_cloexec)) < 0 && (fd = open(path, O_CREAT|O_RDWR|O_cloexe…
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dsetsid.c63 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
H A Dreadlink.c48 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0)
H A Dsymlink.c48 …if ((fd = open(b, O_CREAT|O_TRUNC|O_WRONLY|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IW…
H A Dsyslog.c271 if ((log.fd = open(s, O_WRONLY|O_APPEND|O_NOCTTY|O_cloexec)) < 0 && (log.fd = sockopen(s)) < 0)
273 #if !O_cloexec
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A D_sfopen.c84 #if !O_cloexec
172 oflags |= O_cloexec;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vec/
H A Dvecfile.c48 if ((fd = open(file, O_RDONLY|O_cloexec)) >= 0) in vecfile()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dsetenviron.c84 close(open(".", O_RDONLY|O_cloexec)); in setenviron()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastwinsize.c132 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0) in ttctl()
H A Dastlicense.c39 #ifndef O_cloexec
41 #define O_cloexec 0 macro
43 #define O_cloexec 0 macro
456 if ((i = open(file, O_RDONLY|O_cloexec)) < 0) in push()
466 i = open(file, O_RDONLY|O_cloexec); in push()
H A Dastconf.c1154 if (streq(p->name, "RELEASE") && (i = open("/proc/version", O_RDONLY|O_cloexec)) >= 0) in print()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec; in b_tee()
H A Dcp.c453 if (S_ISLNK(st.st_mode) && (n = -1) || (n = open(state->path, O_RDWR|O_BINARY|O_cloexec)) >= 0) in visit()
593 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY|O_cloexec)) < 0) in visit()
598 …n(state->path, (st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags)|O_cloexec, ent->fts_statp-… in visit()
H A Drm.c287 if ((n = open(path, O_WRONLY|O_cloexec)) < 0) in rm()
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/
H A Dfcntl88 #define O_cloexec O_CLOEXEC
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/
H A Dfcntl88 #define O_cloexec O_CLOEXEC
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/
H A Dfcntl88 #define O_cloexec O_CLOEXEC
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/
H A Dfcntl88 #define O_cloexec O_CLOEXEC