Lines Matching refs:fd1
1797 int fd0, fd1; in test_open_simul() local
1862 fd1 = OPEN(devaudio, mode1); in test_open_simul()
1865 REQUIRED_SYS_OK(fd1); in test_open_simul()
1866 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); in test_open_simul()
1874 XP_SYS_NG(ENODEV, fd1); in test_open_simul()
1875 if (fd1 == -1) { in test_open_simul()
1878 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); in test_open_simul()
1887 if (fd1 >= 0) { in test_open_simul()
1888 r = CLOSE(fd1); in test_open_simul()
1912 int fd1; in try_open_multiuser() local
1929 fd1 = OPEN(devaudio, openable_mode()); in try_open_multiuser()
1932 XP_SYS_OK(fd1); in try_open_multiuser()
1935 XP_SYS_NG(EPERM, fd1); in try_open_multiuser()
1937 if (fd1 != -1) { in try_open_multiuser()
1938 r = CLOSE(fd1); in try_open_multiuser()
1965 fd1 = OPEN(devaudio, openable_mode()); in try_open_multiuser()
1966 XP_SYS_OK(fd1); in try_open_multiuser()
1967 if (fd1 != -1) { in try_open_multiuser()
1968 r = CLOSE(fd1); in try_open_multiuser()
2328 int fd1; in test_rdwr_two() local
2385 fd1 = OPEN(devaudio, mode1); in test_rdwr_two()
2386 REQUIRED_SYS_OK(fd1); in test_rdwr_two()
2397 r = WRITE(fd1, wbuf, sizeof(wbuf)); in test_rdwr_two()
2405 r = READ(fd1, rbuf, sizeof(rbuf)); in test_rdwr_two()
2414 r = CLOSE(fd1); in test_rdwr_two()
2436 int fd1; in DEF() local
2456 fd1 = OPEN(devaudio, O_RDONLY); in DEF()
2457 REQUIRED_SYS_OK(fd1); in DEF()
2468 r = READ(fd1, rbuf, sizeof(rbuf)); in DEF()
2484 CLOSE(fd1); in DEF()
2851 int fd1; in DEF() local
2880 fd1 = OPEN(devaudio, O_WRONLY); in DEF()
2881 REQUIRED_SYS_OK(fd1); in DEF()
2886 ptr1 = MMAP(NULL, len, PROT_WRITE, MAP_FILE, fd1, 0); in DEF()
2894 r = CLOSE(fd1); in DEF()
4178 int fd0, fd1; in DEF() local
4193 fd1 = OPEN(devaudio, O_WRONLY); in DEF()
4194 REQUIRED_SYS_OK(fd1); in DEF()
4196 r = IOCTL(fd1, FIOASYNC, &val, "on"); in DEF()
4198 r = CLOSE(fd1); in DEF()
4202 fd1 = OPEN(devaudio, O_WRONLY); in DEF()
4203 REQUIRED_SYS_OK(fd1); in DEF()
4205 r = IOCTL(fd1, FIOASYNC, &val, "on"); in DEF()
4207 r = CLOSE(fd1); in DEF()
4322 int fd1; in DEF() local
4343 fd1 = OPEN(devaudio, O_WRONLY); in DEF()
4344 REQUIRED_SYS_OK(fd1); in DEF()
4355 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); in DEF()
4361 r = WRITE(fd1, buf, ai.blocksize); in DEF()
4375 close(fd1); in DEF()
4405 r = IOCTL(fd1, FIOASYNC, &val, "on"); in DEF()
4426 r = CLOSE(fd1); in DEF()
4722 int fd, fd1; in DEF() local
4785 fd1 = OPEN(devaudio, O_RDWR); in DEF()
4786 REQUIRED_SYS_OK(fd1); in DEF()
4788 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); in DEF()
4792 r = CLOSE(fd1); in DEF()
5117 int fd1; in DEF() local
5135 fd1 = OPEN(devaudio, O_RDWR); in DEF()
5136 REQUIRED_SYS_OK(fd1); in DEF()
5142 r = IOCTL(fd1, AUDIO_SETINFO, &ai, ""); in DEF()
5169 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); in DEF()
5180 r = CLOSE(fd1); in DEF()
6951 int fd1; in try_audioctl_open_multiuser() local
6961 fd1 = OPEN(dev1, O_RDWR); in try_audioctl_open_multiuser()
6962 REQUIRED_SYS_OK(fd1); in try_audioctl_open_multiuser()
6978 r = CLOSE(fd1); in try_audioctl_open_multiuser()