Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 51 – 75 of 326) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/cmd/mdb/intel/modules/smbios/
H A Dsmbios.c71 if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) { in smbios_mdb_write()
/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/saf/
H A Dlog.c67 if ((fd = open("/dev/console", O_WRONLY|O_NOCTTY)) != -1) in cons_printf()
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_log.c105 if ((newlogfd = open(lf, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) { in _nscd_set_lf()
126 open(lf, O_APPEND|O_WRONLY, 0644)) < 0) { in _nscd_set_lf()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c68 red = open("/etc/ppp/prompt-errors", O_WRONLY | O_APPEND | O_CREAT, in promptpass()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_trace.c96 fd = open(val, O_WRONLY | O_CREAT, 0644); in set_option()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dmmap52 if ((fd = open(file, O_CREAT|O_TRUNC|O_WRONLY, 0666)) < 0)
145 if (!mktemp(file) || (fd = open64(file, O_CREAT|O_WRONLY, 0600)) < 0)
261 if ((fd = open(file, O_CREAT|O_TRUNC|O_WRONLY, 0666)) < 0)
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dchangepasswd.c234 if ((npwfd = open(newpasswdfile, O_WRONLY | O_CREAT | O_EXCL, in changepasswd()
257 if ((nspfd = open(newshadowfile, O_WRONLY | O_CREAT | O_EXCL, in changepasswd()
283 if ((nadjfd = open(newadjunctfile, O_WRONLY | O_CREAT | O_EXCL, in changepasswd()
/illumos-gate/usr/src/cmd/make/lib/mksh/
H A Ddosys.cc99 O_WRONLY | O_CREAT | O_TRUNC | O_DSYNC, in redirect_io()
117 O_WRONLY | O_CREAT | O_TRUNC | O_DSYNC, in redirect_io()
/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()
681 fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644); in vcfile()
/illumos-gate/usr/src/cmd/fm/modules/common/syslog-msgs/
H A Dsyslog.c349 if ((syslog_logfd = open("/dev/conslog", O_WRONLY | O_NOCTTY)) == -1) in _fmd_init()
352 if ((syslog_msgfd = open("/dev/sysmsg", O_WRONLY | O_NOCTTY)) == -1) in _fmd_init()
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Dacquire-lock.c153 fd = open(path, rdonly ? O_RDONLY : O_WRONLY); in main()
/illumos-gate/usr/src/ucbhead/sys/
H A Dfcntl.h55 #define O_WRONLY 1 macro
/illumos-gate/usr/src/uts/intel/sys/acpi/platform/
H A Dacwin.h193 #define O_WRONLY _O_WRONLY macro
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dcontracts.c171 return (contract_open(cid, "process", "ctl", O_WRONLY)); in open_contract_ctl_file()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/slpd/
H A Dslpd.c146 (void) open("/dev/null", O_WRONLY); in detachfromtty()
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmconnect.c97 if ((fd = Open(path, O_WRONLY, 0)) == -1)
/illumos-gate/usr/src/lib/libcontract/common/
H A Dlibcontract_priv.c115 fd = contract_open(ctid, "all", "ctl", O_WRONLY); in contract_abandon_id()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c527 if ((mode == O_RDWR) || (mode == O_WRONLY)) { in acquire_file_lock()
653 oflag = O_WRONLY; in lock_desc_file()
735 O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR); in create_updated_keystore_version()
978 oflag = O_WRONLY; in soft_keystore_lock_object()
1267 O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR); in reencrypt_obj()
2277 O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR); in soft_keystore_put_new_obj()
2532 O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK, S_IRUSR|S_IWUSR); in soft_keystore_modify_obj()
2740 if ((obj_fd = open_and_lock_object_file(ks_handle, O_WRONLY, in soft_keystore_del_obj()
/illumos-gate/usr/src/cmd/backup/restore/
H A Dutilities.c581 O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE, perms)) < 0) { in safe_open()
598 working_mode = mode & (O_WRONLY|O_RDWR|O_RDONLY); in safe_open()
692 if (mode & (O_WRONLY|O_TRUNC)) { in safe_open()
745 bmode = O_WRONLY; in safe_fopen()
/illumos-gate/usr/src/cmd/power/
H A Dsys-suspend.c600 (void) dup2(open("/dev/console", O_WRONLY), 1); in main()
601 (void) dup2(open("/dev/console", O_WRONLY), 2); in main()
/illumos-gate/usr/src/cmd/tcopy/
H A Dtcopy.c84 if ((outp = open(outf, O_WRONLY, 0666)) < 0) { in main()
/illumos-gate/usr/src/cmd/krb5/kwarn/
H A Dkwarnd.c253 (void) open("/dev/null", O_WRONLY); in detachfromtty()
/illumos-gate/usr/src/cmd/ldap/common/
H A Detest.c54 if (( sb.sb_sd = open( "lber-test", O_WRONLY|O_CREAT|O_TRUNC|O_BINARY )) in main()
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h74 #define O_WRONLY 0x0001 /* open for writing only */ macro

12345678910>>...14