/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 310 (void) fprintf(stderr, gettext("%s: could not open %s: %s\n"), 323 if ((procfd = open(pname, O_RDONLY)) < 0) 354 procfd = open(pname, O_RDONLY); 356 /* drop proc_owner privilege after open */ 386 procfd = open(pname, O_RDONLY); 388 /* drop proc_owner privilege after open */
|
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | changepasswd.c | 192 /* Lock, then open the passwd and shadow files */ 203 syslog(LOG_ERR, "yppasswdd: Could not open %s\n", passwd_file); 212 "yppasswdd: Could not open %s\n", shadow_file); 222 "yppasswdd: Could not open %s\n", 232 * first with open and then create a FILE * with fdopen() 234 if ((npwfd = open(newpasswdfile, O_WRONLY | O_CREAT | O_EXCL, 257 if ((nspfd = open(newshadowfile, O_WRONLY | O_CREAT | O_EXCL, 283 if ((nadjfd = open(newadjunctfile, O_WRONLY | O_CREAT | O_EXCL,
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | utils.c | 878 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 885 fd = open(lock_file, O_RDONLY, 0); 889 error("Can't open existing lock file %s: %m", lock_file); 964 fd = open(lock_file, O_WRONLY, 0);
|
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 268 /* handle lack of carrier on open */ 281 * port open. We catch the signal here, but process it 348 if ((lckfd = open(CONSADMLOCK, O_CREAT | O_EXCL | O_WRONLY, 353 die(gettext("cannot open %s"), CONSADMLOCK); 592 if ((fd = open(MSGLOG, O_RDWR)) < 0) 593 die(gettext("cannot open %s"), MSGLOG); 602 die(gettext("cannot open %s"), SETCONSOLEPID); 720 warn(gettext("cannot open %s, continuing"), 748 warn(gettext("cannot open %s, continuing"), ptr); 943 if ((fd = open(dev [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | names.c | 234 fd = open(tempEdit, O_CREAT|O_EXCL|O_APPEND|O_WRONLY, 237 if ((fd = open(tempEdit, O_APPEND|O_WRONLY, 249 image = open(tempEdit, O_RDWR);
|
/illumos-gate/usr/src/cmd/rmvolmgr/ |
H A D | vold.c | 806 * Then open the file O_CREAT|O_EXCL, which doesn't follow 819 open(notify_file, O_CREAT|O_EXCL|O_WRONLY, 0644); 934 if ((fd = open(namebuf, O_WRONLY|O_NDELAY)) < 0) { 935 dprintf("%s[%d]: open failed for %s; %m\n", 1000 * If open() fails on the current working directory 1020 if ((current_working_dir_fd = open(".", O_RDONLY)) < 0) { 1021 dprintf("%s[%d]: push_dir_and_check(): can't open %s.\n",
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.c | 237 * defopen of NULL closes the open defaults file. 332 * Close existing file descriptors, open "/dev/null" as 338 (void) open("/dev/null", O_RDONLY); 339 (void) open("/dev/null", O_WRONLY); 827 if ((fd = open(PidFile, open_flags, 0600)) < 0) { 837 "cannot open or create pid file %s\n"), PidFile); 897 * Forces a timeout on all open transactions.
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 176 if ((pfd = open(proc, O_RDONLY)) == -1) { 222 if ((fd = open(ipath, O_RDONLY, 0)) == -1) { 253 if ((fd = open(opath, (O_RDWR | O_CREAT | O_TRUNC), 0777)) == -1) {
|
/illumos-gate/usr/src/cmd/sort/common/ |
H A D | utility.c | 58 * sort protects against "open-through-link" security attacks by verifying 445 * an exit condition based on the receipt of EMFILE from an open() call; once we 453 if ((held_fd = open("/dev/null", O_RDONLY)) == -1) 692 if ((fd_in = open(src, O_RDONLY)) < 0) 694 if ((fd_out = open(dst, O_RDWR | O_CREAT | O_TRUNC, OUTPUT_MODE)) < 0)
|
/illumos-gate/usr/src/cmd/sulogin/ |
H A D | sulogin.c | 152 if ((fd = open(SYSMSG, 0)) < 0) 466 if ((fd = open(devname, O_RDWR)) < 0) 488 if ((fb = open("/dev/fb", O_RDONLY)) >= 0) {
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dryrun.c | 46 #define ERR_NOOPEN "cannot open %s." 374 if ((fd_drb = open(dryrun_bin, 522 if ((fd_cnb = open(continue_bin, O_RDONLY)) == -1) { 690 n = open(targ_file, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
|
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | main.c | 800 fd = open(path, O_RDONLY); 826 fd = open(fname, O_RDONLY); 839 fd = open(path, O_RDONLY);
|
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 34 #include <sys/open.h> 60 int (*open)(dev_t *, int, int, cred_t *); member in struct:raw_maj 207 maj->open = ops->devo_cb_ops->cb_open; 345 cmn_err(CE_WARN, "_raw_open: too many open devices");
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 93 if ((ibnex_fd = open(IBNEX_DEVCTL_DEV, O_RDONLY)) < 0) { 96 "init_hca: could not open ib nexus (%s)\n", 234 fd = open(path_buf, O_RDWR); 237 "process_tavor: cannot open %s: %s\n", 491 fd = open(DEVDAPLT, O_RDONLY);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_check.c | 249 if ((dump_fd = open("/dev/dump", O_RDONLY)) < 0) 630 * The process here is open each disk, get the devid for each 635 if ((fd1 = open(name1, O_RDONLY | O_NDELAY)) < 0) { 646 if ((fd2 = open(name2, O_RDONLY | O_NDELAY)) < 0) {
|
H A D | meta_setup.c | 147 * open lock 158 /* check for already open */ 163 /* open and/or create lock file */ 164 if ((lockfd = open(lockname, O_WRONLY, 0)) < 0) { 173 if ((lockfd = open(lockname, (O_WRONLY|O_CREAT), 261 /* open lock file */ 314 /* open lock file */ 363 /* open lock file */ 745 /* open syslog */ 763 /* make sure we can open th [all...] |
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 780 grub_printf ("Attempt to open drive 0x%x (%s)\n", 785 disks[drive].flags = open (devname, O_RDWR); 791 disks[drive].flags = open (devname, O_RDONLY); 1123 serial_fd = open (serial_device,
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | validate_pkg.py | 512 plist = open(protolist) 514 raise IOError("cannot open proto list: %s" % str(exc)) 584 mfest.set_content(open(os.path.join(root, mfile)).read()) 711 excfile = open(efile)
|
/illumos-gate/usr/src/test/os-tests/tests/file-locking/ |
H A D | runtests.c | 212 if ((dst->lf_fd = open(src->lf_path, O_RDWR)) == -1) { 213 warn("Failed to open %s", src->lf_path); 229 if ((lf->lf_fd = open(lf->lf_path, O_RDWR|O_CREAT, 0600)) == -1) { 230 warn("Failed to open %s", lf->lf_path); 251 if ((lf->lf_fd = open(lf->lf_path, O_RDONLY)) == -1) { 252 warn("Failed to open %s", lf->lf_path);
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 339 if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) { 382 * We must open the slave side before zoning this pty; otherwise 383 * the kernel would refuse us the open-- zoning a pty makes it 384 * inaccessible to the global zone. Note we are trying to open 398 if ((slavefd = open(zoneslavename, O_RDWR)) < 0) { 399 zerror(gettext("failed to open %s: %s"), zoneslavename, 1421 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) { 1422 zerror(gettext("could not open %s: %s"), pathbuf, 1461 if ((doorfd = open(doorpath, O_RDONLY)) < 0) { 1463 zerror("failed to open [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/volcopy/ |
H A D | volcopy.c | 412 if ((In.f_des = open(In.f_dev_p, O_RDONLY)) < 1) 413 perr(10, "%s: cannot open\n", In.f_dev_p); 414 if ((Out.f_des = open(Out.f_dev_p, O_RDONLY)) < 1) 415 perr(10, "%s: cannot open\n", Out.f_dev_p); 554 In.f_des = open(In.f_dev_p, O_RDONLY); 555 Out.f_des = open(Out.f_dev_p, O_WRONLY); 1482 perr(1, "volcopy: cannot open /var/adm/filesave.log\n"); 1544 f_p->f_des = open(f_p->f_dev_p, 0); 1583 f_p->f_des = open(f_p->f_dev_p, 1);
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 631 * open the device and fill the various members of ig_device_t. 914 device->disk_fd = open(device->path, O_RDONLY); 916 device->disk_fd = open(device->path, O_RDWR); 932 perror("open"); 1090 fd = open(path, O_RDONLY); 1112 fd = open(path, O_RDONLY); 1540 device->part_fd = open(raw, O_RDONLY); 1542 device->part_fd = open(raw, O_RDWR);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_door.c | 94 if ((did = open(rendezvous, O_RDONLY, 0)) < 0) { 471 if ((cu->cu_fd = open(rendezvous, O_RDONLY, 0)) < 0) {
|
H A D | ti_opts.c | 357 if ((s = open("/dev/udp", O_RDONLY)) < 0) { 360 "dev udp open failed"); 413 if ((s = open("/dev/udp6", O_RDONLY)) < 0) { 416 "dev udp6 open failed");
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Plwpregs.c | 68 * Utility function to open and read the contents of a per-lwp /proc file. 81 if ((fd = open(fname, O_RDONLY)) >= 0) { 175 * open the ctl file for that specific lwp. 180 if ((fd = open(fname, O_WRONLY)) >= 0) {
|