Searched refs:open (Results 376 - 400 of 1624) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm_event.c93 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 Dsyslog.c217 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 Dexpreserve.c68 * 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 Drpc.ypupdated.c187 tt = open("/dev/tty", O_RDWR, 0);
192 open("/dev/null", O_RDWR, 0);
/illumos-gate/usr/src/cmd/nscd/
H A Dserver.c446 (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 Drcm_main.c138 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 Dickey.c173 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 Ddevalloc.c87 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 Ddrd.c106 /* 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 Dscript.c265 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 Dstdio.c44 ** 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 Dsf880drd.c122 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 Ddcom.c163 * 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 Dfile.cc71 // 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 Dfiocompress.c134 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 Dnfs4cbd.c108 * 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 Ddebug.c122 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 Dio.c131 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 Dldma_device.c164 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 Dreqexec.c272 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 Dtmexpress.c131 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 Dtzreload.c167 * 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 Dinstall.c233 /* 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 DMakefile95 open.2 \
351 openat.2 := LINKSRC = open.2
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dfsswitch.c132 open(const char *filename, int flags) function
199 if ((fd = open(filename, O_RDONLY)) != -1) {

Completed in 193 milliseconds

<<11121314151617181920>>