/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm_event.c | 93 if ((service_door = open(door_name, O_RDONLY, 0)) == -1) { 336 fd = open(door_name, O_EXCL|O_CREAT, S_IREAD|S_IWRITE); 363 * reference the door file (via open/close/stat/
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | syslog.c | 217 if (((fd = open(sysmsg, O_WRONLY)) >= 0) || 218 (fd = open(ctty, O_WRONLY)) >= 0) { 237 * OPENLOG -- open system log
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | expreserve.c | 68 * and the standard input open on the temp file. Second with an argument 204 if (open(name, O_RDWR) < 0) 387 } while (((fd = open(path, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0) &&
|
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/ |
H A D | rpc.ypupdated.c | 187 tt = open("/dev/tty", O_RDWR, 0); 192 open("/dev/null", O_RDWR, 0);
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | server.c | 446 (void) open("/dev/null", O_RDWR, 0); 456 (me, "Cannot set open file limit: %s\n", strerror(errno)); 556 (void) open("/dev/null", O_RDWR, 0);
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_main.c | 138 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); 140 rcm_log_message(RCM_ERROR, gettext("open(%s) - %s\n"), 282 (void) open("/dev/null", O_RDWR, 0);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/ickey/ |
H A D | ickey.c | 173 fd = open("/dev/openprom", O_RDWR); 175 wbku_printerr("open: /dev/openprom"); 224 fd = open("/dev/openprom", O_RDWR); 226 wbku_printerr("open: /dev/openprom");
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devalloc.c | 87 if ((fd = open(p, O_RDONLY | O_NONBLOCK)) < 0) 113 else if ((action == DA_OFF) && (open(DEVALLOC, O_RDONLY) == -1))
|
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd.c | 106 /* open the drctl device */ 168 (void) open("/dev/null", O_RDWR); 186 /* open the drctl device */ 187 if ((drctl_fd = open(DRCTL_DEV, O_RDWR)) == -1) { 188 drd_output("open %s failed: %s", DRCTL_DEV, strerror(errno));
|
/illumos-gate/usr/src/cmd/script/ |
H A D | script.c | 265 if ((master = open(mptname, O_RDWR)) >= 0) { /* a pseudo-tty is free */ 284 slave = open(slavename, O_RDWR); /* open slave */
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | stdio.c | 44 ** SM_STDOPEN -- open a file with stdio behavior 49 ** fp -- file pointer to be associated with the open 56 ** Success: 0 or greater (fd of file from open(2)). 99 fp->f_file = open(path, oflags, 102 return -1; /* errno set by open() */ 255 ** SM_STDGETMODE -- for getinfo determine open mode 322 ** SM_GETINFO -- get information about the open file 388 ** SM_STDFDOPEN -- open file by primitive 'fd' rather than pathname 394 ** fp -- the file pointer to be associated with the open 456 ** SM_IO_FOPEN -- open [all...] |
/illumos-gate/usr/src/cmd/sf880drd/ |
H A D | sf880drd.c | 122 fds[i].fd = open(buf, O_RDWR); 339 fd = open(SSC050_LED_PORT, O_RDWR);
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 163 * obtain a unique file name and open a file descriptor 167 if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) { 168 perror("temp open"); 376 if ((fd = open(elf_fname, O_RDONLY)) == -1) { 377 perror("open"); 382 * Attempt to open an Elf descriptor Read/Write
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | file.cc | 71 // open input file and return ptr to AudioUnixFile object 119 Err(MGET("can't open pipe to %s, skipping...\n"), 127 if ((fd = open(path, O_RDONLY)) < 0) { 128 Err(MGET("can't open %s, skipping...\n"), path); 129 perror(MGET("open")); 181 Err(MGET("can't open %s, skipping...\n"), path); 260 // first open file, then attach pipe to it 261 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 263 perror(MGET("open"));
|
/illumos-gate/usr/src/cmd/boot/fiocompress/ |
H A D | fiocompress.c | 134 fd = open(srcfile, O_RDONLY, 0); 163 fd = open(dstfile, O_WRONLY | O_CREAT | O_TRUNC,
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfs4cbd/ |
H A D | nfs4cbd.c | 108 * Close existing file descriptors, open "/dev/null" as 113 (void) open("/dev/null", O_RDONLY); 114 (void) open("/dev/null", O_WRONLY);
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | debug.c | 122 dbg_fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0666); 259 if ((dbg_fd = open(file, (O_RDWR | O_APPEND),
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 131 if ((rc = open((char *)idf, mode, 0666)) < 0) 191 fd = open((char *)tmpout, O_RDWR|O_CREAT|O_EXCL, 0600);
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_device.c | 164 if ((fd = open(path, O_RDWR)) != -1) { 168 LDMA_DBG("VALIDATE_PATH(%s): open RDWR failed with error %d", 172 if ((fd = open(path, O_RDONLY)) != -1) { 176 LDMA_DBG("VALIDATE_PATH(%s): open RDONLY failed "
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | reqexec.c | 272 if ((fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) { 310 fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmexpress.c | 131 if (open(pmtab->p_device, O_RDWR) < 0) { 132 log("open %s failed: %s", pmtab->p_device, 150 if (Retry) /* open failed */ 213 ((cn_fd = open("/dev/console", O_RDONLY)) != -1)) {
|
/illumos-gate/usr/src/cmd/tzreload/ |
H A D | tzreload.c | 167 * Unplivileged apps may fail to open the file until the chmod 168 * below succeeds. However, it's okay as long as open() fails; 201 if ((fd = open(file, get ? O_RDONLY : O_RDWR)) < 0) { 203 gettext("Can't open file %s, %s\n"), 393 if ((msgfd = open(fifo, O_WRONLY|O_NDELAY)) < 0) {
|
/illumos-gate/usr/src/ucbcmd/install.d/ |
H A D | install.c | 233 /* open target, set mode, owner, group */ 234 if ((to_fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0)) < 0) { 276 if ((from_fd = open(from_name, O_RDONLY, 0)) < 0) { 277 fprintf(stderr, gettext("install: open: %s: %s\n"), from_name, strerror(errno));
|
/illumos-gate/usr/src/man/man2/ |
H A D | Makefile | 95 open.2 \ 351 openat.2 := LINKSRC = open.2
|
/illumos-gate/usr/src/stand/lib/fs/common/ |
H A D | fsswitch.c | 132 open(const char *filename, int flags) function 199 if ((fd = open(filename, O_RDONLY)) != -1) {
|