Home
last modified time | relevance | path

Searched refs:mfd (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/cmd/format/
H A Dcheckdev.c143 int mfd; local
161 if ((mfd = open(raw_device, O_RDWR | O_NDELAY)) < 0) {
167 if (fstat(mfd, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) {
168 (void) close(mfd);
174 if (ioctl(mfd, DKIOCINFO, &dkinfo) < 0) {
175 (void) close(mfd);
181 (void) close(mfd);
/titanic_50/usr/src/cmd/audio/audioctl/
H A Daudioctl.c147 int mfd; member
195 if (d->mfd >= 0) in free_device()
196 (void) close(d->mfd); in free_device()
225 d->mfd = -1; in alloc_device()
268 d->mfd = fd; in get_device_info()
453 int mfd = d->mfd; in print_control() local
468 if (ioctl(mfd, SNDCTL_MIX_READ, &cval) < 0) { in print_control()
606 int mfd = d->mfd; in set_device_control() local
676 if (ioctl(mfd, SNDCTL_MIX_WRITE, &cval) < 0) { in set_device_control()
/titanic_50/usr/src/cmd/fdformat/
H A Dfdformat.c1075 int mfd; in check_mount() local
1101 if ((mfd = open(raw_device, O_RDWR | O_NDELAY)) < 0) { in check_mount()
1108 if (fstat(mfd, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) { in check_mount()
1109 (void) close(mfd); in check_mount()
1115 if (ioctl(mfd, DKIOCINFO, &dkinfo_tmp) < 0) { in check_mount()
1116 (void) close(mfd); in check_mount()
1122 (void) close(mfd); in check_mount()
/titanic_50/usr/src/cmd/rmformat/
H A Drmf_misc.c489 int32_t mfd; in check_and_unmount_floppy() local
526 mfd = open(raw_device, O_RDWR | O_NDELAY); in check_and_unmount_floppy()
531 if (mfd < 0) { in check_and_unmount_floppy()
538 if (fstat(mfd, &stbuf) < 0 || !S_ISCHR(stbuf.st_mode)) { in check_and_unmount_floppy()
539 (void) close(mfd); in check_and_unmount_floppy()
545 if (ioctl(mfd, DKIOCINFO, &dkinfo_tmp) < 0) { in check_and_unmount_floppy()
546 (void) close(mfd); in check_and_unmount_floppy()
552 (void) close(mfd); in check_and_unmount_floppy()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c3062 int mfd; local
3066 mfd = open("/dev/ptmx", O_NOCTTY | O_RDWR);
3067 if (mfd < 0) {
3071 pty_name = ptsname(mfd);
3076 pty_name = ptsname(mfd);
3080 (void) close(mfd);
3089 if (unlockpt(mfd) < 0) {
3095 (void) close(mfd);
3101 dbglog("Using %s; master fd %d, slave fd %d", pty_name, mfd, sfd);
3105 *master_fdp = mfd;
/titanic_50/usr/src/uts/common/io/skd/
H A Dskd.c2530 uint32_t mfd; in skd_isr_msg_from_dev() local
2535 mfd = SKD_READL(skdev, FIT_MSG_FROM_DEVICE); in skd_isr_msg_from_dev()
2537 Dcmn_err(CE_NOTE, "mfd=0x%x last_mtd=0x%x\n", mfd, skdev->last_mtd); in skd_isr_msg_from_dev()
2542 if (FIT_MXD_TYPE(mfd) != FIT_MXD_TYPE(skdev->last_mtd)) { in skd_isr_msg_from_dev()
2546 switch (FIT_MXD_TYPE(mfd)) { in skd_isr_msg_from_dev()
2548 skdev->proto_ver = FIT_PROTOCOL_MAJOR_VER(mfd); in skd_isr_msg_from_dev()
2568 skdev->hard_queue_depth_limit = FIT_MXD_DATA(mfd); in skd_isr_msg_from_dev()
/titanic_50/usr/src/lib/libproc/common/
H A DPcontrol.c387 int mfd; in dupfd() local
395 if ((mfd = minfd) == 0) in dupfd()
396 mfd = set_minfd(); in dupfd()
397 if (dfd > 0 || (0 <= fd && fd < mfd)) { in dupfd()
399 dfd = mfd; in dupfd()