Searched refs:O_EXCL (Results 1 - 25 of 167) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmkstemp.c29 while ((fd = open(as, O_CREAT|O_EXCL|O_RDWR, 0600)) == -1) {
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dopen.c63 op &= ~O_EXCL;
68 if ((op & O_EXCL) && !access(path, F_OK))
73 if ((fd = creat(path, (op & O_EXCL) ? 0 : mode)) < 0)
75 if (op & O_EXCL)
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkrbfileio.c22 open_flag = O_CREAT|O_EXCL|O_TRUNC|O_RDWR;
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_open.c58 f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkstemp.c96 if ((fd = open64(as, O_CREAT|O_EXCL|O_RDWR|flags,
101 if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR|flags,
/illumos-gate/usr/src/lib/libast/common/features/
H A Dfcntl.c233 #ifndef O_EXCL
236 if (O_EXCL > o_local) o_local = O_EXCL;
285 #ifndef O_EXCL
286 printf("#define O_EXCL 0%o\n", o_local <<= 1);
/illumos-gate/usr/src/lib/libast/common/sfio/
H A D_sfopen.c103 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) )
189 oflags |= O_EXCL;
204 oflags &= ~O_EXCL;
/illumos-gate/usr/src/test/zfs-tests/cmd/mkfiles/
H A Dmkfiles.c55 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) {
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dio.sed.in61 SED_REPLACE(O_EXCL)
H A Dio.d.in163 inline int O_EXCL = @O_EXCL@;
164 #pragma D binding "1.1" O_EXCL
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dfcntl.c62 #define FLAGS_MASK (O_SYNC|O_NONBLOCK|O_CREAT|O_TRUNC|O_EXCL \
127 if (arg & O_EXCL)
171 narg |= O_EXCL;
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dfcntl.c61 #define FLAGS_MASK (O_SYNC|O_NONBLOCK|O_CREAT|O_TRUNC|O_EXCL \
124 if (arg & O_EXCL)
166 narg |= O_EXCL;
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dmktemp.c128 open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0)
/illumos-gate/usr/src/cmd/mail/
H A Dcreatemf.c76 O_APPEND|O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/
H A Ddb.c59 (O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c380 #ifdef O_EXCL
381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 ||
428 #ifdef O_EXCL
429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0)
433 #endif /* O_EXCL */
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_endopen.c109 oflag |= O_EXCL;
/illumos-gate/usr/src/lib/libmail/common/
H A Dmaillock.c133 fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600);
/illumos-gate/usr/src/cmd/print/conv_fix/
H A Dconv_fix.c124 fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644);
/illumos-gate/usr/src/cmd/projadd/
H A Dprojdel.pl125 sysopen($pfh, $tmpprojf, O_WRONLY | O_CREAT | O_EXCL, $mode) ||
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_open.c50 * with O_CREAT and O_EXCL set will return failure in at least one.
56 flags |= O_EXCL;
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dfcntlcom.h75 #define O_EXCL _FEXCL macro
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dpos4obj.c316 * the file. We do this by or'ing in O_EXCL, and attempting an
317 * open. If that fails with an EEXIST, and O_EXCL wasn't specified
325 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) {
326 if (errno == EEXIST && !(oflag & O_EXCL)) {
379 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666))
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Docfile.c172 n = open(tmpcf, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
568 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644);
682 fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644);
710 * Because O_CREAT and O_EXCL are specified in open(),
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c65 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo);
72 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600);
380 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL,

Completed in 66 milliseconds

1234567