Searched refs:open (Results 176 - 200 of 1624) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/test/zfs-tests/cmd/largest_file/
H A Dlargest_file.c73 fd = open(testfile, O_CREAT | O_RDWR, mode);
/illumos-gate/usr/src/test/zfs-tests/cmd/randfree_file/
H A Drandfree_file.c85 if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0) {
86 perror("open");
/illumos-gate/usr/src/uts/common/sys/
H A Dkiconv.h51 * have corresponding module id and internal function pointers to open(),
58 void *(*open)(void); member in struct:__anon8027
105 void *handle; /* Handle from the actual open(). */
/illumos-gate/usr/src/lib/krb5/ss/
H A Dpager.c69 fd = open("/dev/tty", O_WRONLY, 0);
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A DMakefile28 open.o \
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtimerfd.c39 if ((fd = open("/dev/timerfd", oflags)) < 0)
/illumos-gate/usr/src/tools/scripts/
H A Dhdrchk.py62 fh = open(filename, 'r')
64 sys.stderr.write("failed to open '%s': %s\n" %
/illumos-gate/usr/src/boot/lib/libstand/
H A Dpager.c43 * 'open' the pager
138 if ((fd = open(fname, O_RDONLY)) == -1) {
139 printf("can't open '%s': %s\n", fname, strerror(errno));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsyslog.c219 if ((procfd = open(procfile, O_RDONLY)) >= 0) {
370 if (((fd = open(sysmsg, O_WRONLY)) >= 0) ||
371 (fd = open(ctty, O_WRONLY)) >= 0) {
395 if ((d = open(DOORFILE, O_RDONLY)) < 0)
424 * OPENLOG -- open system log
441 * then we must open the file
448 LogFile = open(logname, O_WRONLY);
/illumos-gate/usr/src/cmd/power/
H A Dconf.c172 if ((fd = open("/dev/tod", O_RDONLY)) != -1) {
179 * Read in the cpr conf file. If any open or read error occurs,
184 if ((fd = open(cpr_conf, O_RDONLY)) == -1) {
186 mesg(MEXIT, err_fmt, gettext("cannot open"),
205 * Unconfigure and reset PM, device is left open for later use.
212 if ((pm_fd = open("/dev/pm", O_RDWR)) == -1)
213 err_fmt = "cannot open \"/dev/pm\": %s\n";
227 if ((fd = open(PIDPATH, O_RDONLY)) == -1)
273 if ((fd = open(cpr_conf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
274 err_fmt = "cannot open/creat
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dcallers.c281 /* We do locking (file and advisory) after open */
291 /* take care of the possible partial open fd */
292 (void) close(nullfd = open("/", O_RDONLY));
295 DEBUG(1, "generic open timeout\n%s", "");
296 logent("generic open", "TIMEOUT");
304 dcf = open(dcname, (O_RDWR | O_NDELAY) );
307 dcf = open(dcname, O_RDWR );
313 DEBUG(1, "generic open failed, errno = %d\n", errno);
315 logent("generic open", "FAILED");
422 if ((ndcf = open(saved_dcnam
[all...]
H A Dcpmv.c52 if ((fd1 = open(f1, O_RDONLY)) == -1)
71 /* open of temp may fail if called from uidxcp() */
74 if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY,
76 DEBUG(5, "open of file returned errno %d\n", errno);
/illumos-gate/usr/src/cmd/luxadm/
H A Dfcalupdate.c151 if ((fd1 = open(file, O_RDONLY)) == -1) {
154 "Error: open() failed on file "
215 if ((fd = open(socal, O_RDWR)) < 0) {
217 if ((fd = open(socal, O_RDWR)) < 0) {
219 MSGSTR(4505, "Could not open %s\n"),
237 fd = open(slotname, O_RDWR);
240 perror(MSGSTR(4507, "open of slotname"));
320 if ((fd = open(socal, O_RDWR)) < 0) {
322 if ((fd = open(socal, O_RDWR)) < 0) {
324 MSGSTR(4511, "Could not open
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_thread.c90 /* Make sure taskq is open for business */
91 if (!taskq->open) {
149 /* If taskq is already open then quit */
150 if (taskq->open) {
183 taskq->open = 1;
199 if (!taskq->open) {
206 if (!taskq->open) {
211 taskq->open = 0;
/illumos-gate/usr/src/lib/lvm/libsvm/common/
H A Dstart_svm.c244 if ((fromfd = open(from, O_RDONLY | O_NDELAY)) < 0)
252 if ((tofd = open(to, O_CREAT | O_WRONLY | O_TRUNC,
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Ddict.c69 if ((lockfd = open(dblock, O_WRONLY|O_CREAT|O_EXCL, 0400)) == -1) {
71 lockfd = open(dblock, O_WRONLY);
75 "can't open lockfile: %s", strerror(errno));
141 /* verify database version number by trying to open it */
/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_vartree003.sh119 fox-gate/XW_NV/open-src/tarballs/xorg-server-1.3.0.0/hw/xprint/config/C/print/models/PSdefault/fonts/AvantGarde-Demi.pmf
142 fox-gate/XW_NV/open-src/tarballs/xorg-server-1.3.0.0/hw/xprint/config/C/print/models/PSdefault/fonts/AvantGarde-DemiOblique.pmf
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c97 fd = open(path, O_RDONLY, 0);
138 fd = open(svc_door, O_RDONLY, 0);
141 DPRINT("%s: open failed, err %d", svc_door, err);
/illumos-gate/usr/src/lib/libnsctl/common/
H A Dmachdep.c67 if ((fd = open("/dev/ncall", O_RDONLY)) < 0) {
114 fd = open("/dev/ncall", O_RDONLY);
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_prom.c78 prom_fd = open(PROMDEV, O_RDONLY);
94 prom_fd = open(PROMDEV, O_RDWR);
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/
H A DIntrs.xs50 return (open(intrpath, O_RDWR));
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/
H A Dmddoors.c59 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644);
226 i = open("/dev/null", 2);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/java_api/src/
H A DTestGetAggregate.java177 consumer.open();
211 consumer.open();
/illumos-gate/usr/src/cmd/rpcbind/
H A Dwarmstart.c66 * Use open O_CREAT|O_EXCL so file is not created
67 * between unlink() and open() operation.
73 fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0600);
100 "cannot open file = %s for writing", filename);
126 fd = open(filename, O_RDONLY, 0600);
129 "rpcbind: cannot open file = %s for reading\n", filename);
136 "rpcbind: cannot open file = %s for reading\n", filename);
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c193 /* Return if already open */
198 Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK);
210 /* Now hang until it's open */
211 Audio_fd = open(Audio_dev, O_WRONLY);
213 Error(stderr, (Audio_fd < 0) ? "\n" : MGET("open\n"));
221 /* Clear the non-blocking flag (in System V it persists after open) */
322 /* Validate and open the audio device */
342 Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK);
353 /* Try to open the control device and save the current format */
355 Audio_ctlfd = open(ctlde
[all...]

Completed in 162 milliseconds

1234567891011>>