Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 411) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstdio.c75 oflags = O_RDWR | O_CREAT | O_TRUNC;
81 oflags = O_WRONLY | O_CREAT | O_TRUNC;
84 oflags = O_APPEND | O_WRONLY | O_CREAT;
87 oflags = O_APPEND | O_RDWR | O_CREAT;
415 oflags = O_RDWR | O_CREAT;
421 oflags = O_WRONLY | O_CREAT | O_TRUNC;
424 oflags = O_APPEND | O_WRONLY | O_CREAT;
427 oflags = O_APPEND | O_RDWR | O_CREAT;
484 if (flags & O_CREAT)
/illumos-gate/usr/src/test/os-tests/tests/
H A Dodirectory.c229 O_CREAT, ENOTDIR); in main()
231 odir_fpath, O_CREAT | O_EXCL, EINVAL); in main()
234 O_CREAT, 0); in main()
236 odir_dpath, O_CREAT | O_EXCL, EINVAL); in main()
239 O_CREAT, ENOENT); in main()
242 odir_enoent, O_CREAT | O_EXCL, EINVAL); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dopen.c58 mode = (op & O_CREAT) ? va_arg(ap, int) : S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
62 if (!(op & O_CREAT))
93 op &= ~(O_CREAT|O_TRUNC);
99 if (op & O_CREAT)
H A Dcreat64.c35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A D_sfopen.c109 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) )
121 else if(oflags&O_CREAT)
166 oflags |= O_WRONLY | O_APPEND | O_CREAT;
195 oflags |= O_WRONLY | O_CREAT;
214 if(!(oflags&O_CREAT) )
/illumos-gate/usr/src/cmd/listen/
H A Dlsfiles.h37 #define LOGOFLAG (O_WRONLY | O_APPEND | O_CREAT)
40 #define PIDOFLAG (O_WRONLY | O_CREAT)
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dfcntl.c233 #ifndef O_CREAT in main()
236 if (O_CREAT > o_local) o_local = O_CREAT; in main()
287 #ifndef O_CREAT in main()
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c127 if (mode & O_CREAT) in open_daemon_lock()
149 if ((fd = open_daemon_lock(name, O_RDWR|O_CREAT)) == -1) in _enter_daemon_lock()
177 int fd = open_daemon_lock(name, O_CREAT); in _create_daemon_lock()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_stdio_flags.c62 oflag = O_WRONLY | O_TRUNC | O_CREAT; in _stdio_flags()
66 oflag = O_WRONLY | O_APPEND | O_CREAT; in _stdio_flags()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkstemp.c96 if ((fd = open64(as, O_CREAT|O_EXCL|O_RDWR|flags, in libc_mkstemps()
101 if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR|flags, in libc_mkstemps()
/illumos-gate/usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/
H A Drm_lnkcnt_zero_file.c106 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer()
127 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 || in setids()
384 if((n = open(tmpname, O_WRONLY | O_CREAT ,SPECIAL)) < 0 || unlink(tmpname) < 0) in setids()
429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0) in setids()
432 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0) in setids()
/illumos-gate/usr/src/cmd/mailx/
H A Dquit.c172 if ((fd = open(tempQuit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 || in quit()
197 if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 0 || in quit()
206 if ((fd = open(mbox, O_RDWR|O_CREAT, MBOXPERM)) < 0 || in quit()
299 fd = open(tempResid,O_RDWR|O_CREAT|O_EXCL, 0600); in writeback()
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT; in _endopen()
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dpos4obj.c304 if (!(oflag & O_CREAT)) { in __pos4obj_open()
325 fd = __open_nc(dfile, oflag & ~O_CREAT, mode); in __pos4obj_open()
377 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666)) in __pos4obj_lock()
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h102 #define O_CREAT 0x0200 /* create if nonexistent */ macro
193 #define FRDAHEAD O_CREAT
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/
H A Dmktree.c172 if ((fd = open(pname, O_CREAT|O_RDWR, 0777)) < 0) { in crtfile()
185 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) { in crtfile()
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c248 if ((fd = open(FAB_REPOSITORY, O_RDWR | O_CREAT)) == -1) { in update_fabric_wwn_list()
314 if ((copy_fd = open(copy_rep, O_RDWR | O_CREAT | O_TRUNC, in update_fabric_wwn_list()
442 if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC, in update_fabric_wwn_list()
537 if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC, in update_fabric_wwn_list()
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c65 if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
68 if ((fd_i = open(iname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
71 if ((fd_w = open(wname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Docfile.c176 n = open(tmpcf, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644); in set_cfdir()
569 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); in pkgWlock()
681 fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644); in vcfile()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c58 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo); in osa_adb_create_db()
65 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600); in osa_adb_create_db()
373 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL, in osa_adb_release_lock()
/illumos-gate/usr/src/cmd/mandoc/
H A Dterm_tag.c100 ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644); in term_tag_init()
119 tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644); in term_tag_init()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dcppath.c364 fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode); in write_file()
367 fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode); in write_file()
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_stable.c107 if ((fd = open(DUID_FILE, O_WRONLY | O_CREAT, 0644)) == -1) in write_stable_duid()
224 if ((fd = open(IAID_FILE, O_RDWR | O_CREAT, 0644)) == -1) in write_stable_iaid()
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmlog.c65 if ((fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0444)) != -1) in openttymonlog()
232 if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0) in opendebug()

12345678910>>...17