Searched refs:open (Results 651 - 675 of 1624) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_events.c205 if ((fd = open(eventmsgfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_open.c35 * open() system call -- executed by subject process.
46 return (open(filename, flags, mode));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c101 fd = open(path, O_RDONLY);
180 * If set[ug]id process, open for the untrusted file should fail.
H A Dwalkstack.c239 if ((fd = open("/proc/self/as", O_RDONLY)) < 0)
/illumos-gate/usr/src/lib/libc/port/locale/
H A Drune.c69 if ((fd = open(fname, O_RDONLY)) < 0) {
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dpopen.c125 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 Dlibipd.c111 fd = open(path, O_RDWR);
114 "unable to open %s: %s", path, strerror(errno)));
/illumos-gate/usr/src/cmd/priocntl/
H A Dpriocntl.c548 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 Dmain.c320 ctl_fd = open(rd_ctl, openflag);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Druptime.c162 f = open(dp->d_name, 0);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dmain.c154 (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 Dwait.c43 /* 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 Dlogging.c306 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 Dkeymgmt.c119 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 Din.rarpd.c198 (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 Dannounce.c139 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 Daudio_link.c140 if ((fd = open(buf, O_RDWR)) < 0)
/illumos-gate/usr/src/cmd/diskscan/
H A Ddiskscan.c129 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 Dmdmn_commd_service.c369 i = open("/dev/null", 2);
/illumos-gate/usr/src/cmd/mailx/
H A Dcollect.c76 * 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 Dfmd_main.c211 if ((fd = open("/dev/null", O_RDWR)) >= 0) {
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_mem.c201 if ((fd = open("/dev/mem", O_RDONLY)) < 0)
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddispsyms.c29 * 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 Ddminfo.c250 * 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 Daudioctl.c264 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"),

Completed in 104 milliseconds

<<21222324252627282930>>