/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_events.c | 205 if ((fd = open(eventmsgfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_open.c | 35 * open() system call -- executed by subject process. 46 return (open(filename, flags, mode));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 101 fd = open(path, O_RDONLY); 180 * If set[ug]id process, open for the untrusted file should fail.
|
H A D | walkstack.c | 239 if ((fd = open("/proc/self/as", O_RDONLY)) < 0)
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | rune.c | 69 if ((fd = open(fname, O_RDONLY)) < 0) {
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 125 myfd = open("/dev/null", O_RDWR); 150 * The fd may no longer be open if an iob previously returned 153 * if the fd is still open, so that these programming errors
|
/illumos-gate/usr/src/lib/libipd/common/ |
H A D | libipd.c | 111 fd = open(path, O_RDWR); 114 "unable to open %s: %s", path, strerror(errno)));
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | priocntl.c | 548 fatalerr("%s: Can't open PROC directory %s\n", 567 if ((procfd = open(pname, O_RDONLY)) < 0) 587 if ((procfd = open(pname, O_RDONLY)) < 0 || 814 fatalerr("%s: Can't open PROC directory %s\n", 833 if ((procfd = open(pname, O_RDONLY)) < 0) 851 if ((procfd = open(pname, O_RDONLY)) < 0 ||
|
/illumos-gate/usr/src/cmd/ramdiskadm/ |
H A D | main.c | 320 ctl_fd = open(rd_ctl, openflag);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | ruptime.c | 162 f = open(dp->d_name, 0);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | main.c | 154 (void) open("/", 0); 162 (void) fprintf(stderr, "%s: unable to open " PATH_PID ": %s\n",
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | wait.c | 43 /* inetd's open file limit, set in method_init() */ 84 * all the /proc file handles we could have open. 178 * Returns -1 if either it failed to open the /proc psinfo file which is used 190 /* open /proc psinfo file of process to listen for POLLHUP events on */ 193 if ((fd = open(path, O_RDONLY)) >= 0) { 202 error_msg(gettext("Failed to open %s: %s"), 333 * open psinfo file from /proc when the method terminates.
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | logging.c | 306 curlogfd = open(fname, O_WRONLY|O_APPEND|O_CREAT, 0600); 327 * Close any open log file. This is used for SIGHUP (to support log
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keymgmt/ |
H A D | keymgmt.c | 119 wbku_printerr("Cannot open %s", keystore_name); 143 wbku_printerr("Cannot open %s", name); 260 * If the file already exists, then open the file for update. 261 * Otherwise, create it and open it for writing. 263 fd = open(keystore_name, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR); 276 wbku_printerr("Cannot open %s", keystore_name); 285 wbku_printerr("Cannot open %s", name); 340 * stream and open a stream to the new keystore. 345 wbku_printerr("Cannot open %s", keystore_name);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rarpd.c | 198 (void) open("/", O_RDONLY, 0); 311 if ((fd = open(DEVIP, 0)) < 0) 416 error("cannot open link %s: %s", linkname, 680 if ((fd = open(DEVARP, 0)) < 0) 868 if ((fd = open(DEVIP, 0)) < 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | announce.c | 139 if ((fd = open(full_tty, O_WRONLY|O_NONBLOCK)) == -1) { 149 * open gratuitously attaches the talkd to any tty it opens, so
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | audio_link.c | 140 if ((fd = open(buf, O_RDWR)) < 0)
|
/illumos-gate/usr/src/cmd/diskscan/ |
H A D | diskscan.c | 129 if ((devfd = open(device, O_RDWR)) == -1) { 131 "%s: open of %s failed\n", progname, device);
|
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/ |
H A D | mdmn_commd_service.c | 369 i = open("/dev/null", 2);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | collect.c | 76 * and the input to read. Several open files could be saved all through 109 if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 || 500 * then open it and copy the contents to obuf. 854 if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 || 959 if ((fd = open(tempMail, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 || 1006 if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_main.c | 211 if ((fd = open("/dev/null", O_RDWR)) >= 0) {
|
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_mem.c | 201 if ((fd = open("/dev/mem", O_RDONLY)) < 0)
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dispsyms.c | 29 * read an ELF file. dispsyms will open an ELF file using 354 if ((fd = open(elf_fname, O_RDONLY)) == -1) { 355 perror("open"); 360 * Attempt to open an Elf descriptor Read-Only
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | dminfo.c | 250 * open the device maps file for read/ write. We are not 255 if ((des = open(filename, O_RDWR)) < 0) { 258 gettext("dmapinfo: Cannot open %s\n"),
|
/illumos-gate/usr/src/cmd/audio/audioctl/ |
H A D | audioctl.c | 264 if ((fd = open(d->mixer.devnode, O_RDWR)) < 0) { 319 if ((fd = open("/dev/mixer", O_RDWR)) < 0) { 1043 if ((fd = open(fname, mode, 0666)) < 0) { 1049 perror(_("Unable to open file\n")); 1119 perror(_("Unable to open file")); 1186 if ((fd = open(link, O_RDWR)) < 0) { 1191 msg(_("Unable to open device %s: %s\n"),
|