Home
last modified time | relevance | path

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

12345678910>>...17

/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dstdio.c77 oflags = O_RDWR | O_CREAT | O_TRUNC;
83 oflags = O_WRONLY | O_CREAT | O_TRUNC;
86 oflags = O_APPEND | O_WRONLY | O_CREAT;
89 oflags = O_APPEND | O_RDWR | O_CREAT;
417 oflags = O_RDWR | O_CREAT;
423 oflags = O_WRONLY | O_CREAT | O_TRUNC;
426 oflags = O_APPEND | O_WRONLY | O_CREAT;
429 oflags = O_APPEND | O_RDWR | O_CREAT;
486 if (flags & O_CREAT)
/titanic_41/usr/src/lib/libast/common/sfio/
H A D_sfopen.c103 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) )
115 else if(oflags&O_CREAT)
159 oflags |= O_WRONLY | O_APPEND | O_CREAT;
184 oflags |= O_WRONLY | O_CREAT;
203 if(!(oflags&O_CREAT) )
/titanic_41/usr/src/lib/libast/common/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);
/titanic_41/usr/src/lib/libc/port/stdio/
H A D_endopen.c72 oflag = O_WRONLY | O_TRUNC | O_CREAT; in _endopen()
76 oflag = O_WRONLY | O_APPEND | O_CREAT; in _endopen()
136 if (oflag == (O_WRONLY | O_APPEND | O_CREAT)) { /* type == "a" */ in _endopen()
/titanic_41/usr/src/cmd/listen/
H A Dlsfiles.h37 #define LOGOFLAG (O_WRONLY | O_APPEND | O_CREAT)
40 #define PIDOFLAG (O_WRONLY | O_CREAT)
/titanic_41/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()
/titanic_41/usr/src/lib/libdscfg/common/
H A Dcfg_lockdlck.c49 local_lockfd = open(CFG_RDEV_LOCKFILE, O_RDWR|O_CREAT, 0644); in cfg_lfinit()
65 if ((flag&O_CREAT) == 0) in cfg_filelock()
124 if (cfg_filelock(i, O_CREAT) == CFG_LF_OKAY) { in cfg_enterpid()
/titanic_41/usr/src/lib/libast/common/features/
H A Dfcntl.c228 #ifndef O_CREAT in main()
231 if (O_CREAT > o_local) o_local = O_CREAT; in main()
282 #ifndef O_CREAT in main()
/titanic_41/usr/src/lib/libbc/libc/stdio/4.2/
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()
/titanic_41/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c58 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
61 oflag = (plus ? O_RDWR : O_WRONLY) | O_APPEND | O_CREAT; in _endopen()
/titanic_41/usr/src/lib/libbc/libc/sys/sys5/
H A Dfcntl.c61 #define FLAGS_MASK (O_SYNC|O_NONBLOCK|O_CREAT|O_TRUNC|O_EXCL \
120 if (arg & O_CREAT)
162 narg |= O_CREAT;
/titanic_41/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 \
123 if (arg & O_CREAT)
167 narg |= O_CREAT;
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libshell/common/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libc/port/rt/
H A Dpos4obj.c306 if (!(oflag & O_CREAT)) { in __pos4obj_open()
327 fd = __open_nc(dfile, oflag & ~O_CREAT, mode); in __pos4obj_open()
379 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666)) in __pos4obj_lock()
/titanic_41/usr/src/test/zfs-tests/cmd/mktree/
H A Dmktree.c166 if ((fd = open(pname, O_CREAT|O_RDWR, 0777)) < 0) { in crtfile()
177 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) { in crtfile()
/titanic_41/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()
/titanic_41/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c61 if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
64 if ((fd_i = open(iname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
67 if ((fd_w = open(wname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dmkstemp.c29 while ((fd = open(as, O_CREAT|O_EXCL|O_RDWR, 0600)) == -1) { in mkstemp()
/titanic_41/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()
/titanic_41/usr/src/lib/libuutil/common/
H A Duu_open.c58 f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600); in uu_open_tmp()

12345678910>>...17