| H A D | audiotest.c | 1413 #define DEF(name) \ macro 1440 DEF(open_mode_RDONLY) { test_open_mode(O_RDONLY); } function 1441 DEF(open_mode_WRONLY) { test_open_mode(O_WRONLY); } function 1442 DEF(open_mode_RDWR) { test_open_mode(O_RDWR); } function 1671 DEF(open_audio_RDONLY) { test_open("audio", O_RDONLY); } function 1672 DEF(open_audio_WRONLY) { test_open("audio", O_WRONLY); } function 1673 DEF(open_audio_RDWR) { test_open("audio", O_RDWR); } function 1674 DEF(open_sound_RDONLY) { test_open("sound", O_RDONLY); } function 1675 DEF(open_sound_WRONLY) { test_open("sound", O_WRONLY); } function 1676 DEF(open_sound_RDW function 1677 DEF(open_audioctl_RDONLY) { test_open("audioctl", O_RDONLY); } function 1678 DEF(open_audioctl_WRONLY) { test_open("audioctl", O_WRONLY); } function 1679 DEF(open_audioctl_RDWR) { test_open("audioctl", O_RDWR); } function 1687 DEF(open_sound_sticky) function 1730 DEF(open_audioctl_sticky) function 1895 DEF(open_simul_RDONLY_RDONLY) { test_open_simul(O_RDONLY, O_RDONLY); } function 1896 DEF(open_simul_RDONLY_WRONLY) { test_open_simul(O_RDONLY, O_WRONLY); } function 1897 DEF(open_simul_RDONLY_RDWR) { test_open_simul(O_RDONLY, O_RDWR); } function 1898 DEF(open_simul_WRONLY_RDONLY) { test_open_simul(O_WRONLY, O_RDONLY); } function 1899 DEF(open_simul_WRONLY_WRONLY) { test_open_simul(O_WRONLY, O_WRONLY); } function 1900 DEF(open_simul_WRONLY_RDWR) { test_open_simul(O_WRONLY, O_RDWR); } function 1901 DEF(open_simul_RDWR_RDONLY) { test_open_simul(O_RDWR, O_RDONLY); } function 1902 DEF(open_simul_RDWR_WRONLY) { test_open_simul(O_RDWR, O_WRONLY); } function 1903 DEF(open_simul_RDWR_RDWR) { test_open_simul(O_RDWR, O_RDWR); } function 2032 DEF(open_multiuser_0) { test_open_multiuser(false); } function 2033 DEF(open_multiuser_1) { test_open_multiuser(true); } function 2039 DEF(write_PLAY_ALL) function 2068 DEF(write_PLAY) function 2132 DEF(read) function 2159 DEF(rept_write) function 2205 DEF(rept_read) function 2296 DEF(rdwr_fallback_RDONLY) { test_rdwr_fallback(O_RDONLY, false, true); } function 2297 DEF(rdwr_fallback_WRONLY) { test_rdwr_fallback(O_WRONLY, true, false); } function 2298 DEF(rdwr_fallback_RDWR) { function 2417 DEF(rdwr_two_RDONLY_RDONLY) { test_rdwr_two(O_RDONLY, O_RDONLY); } function 2418 DEF(rdwr_two_RDONLY_WRONLY) { test_rdwr_two(O_RDONLY, O_WRONLY); } function 2419 DEF(rdwr_two_RDONLY_RDWR) { test_rdwr_two(O_RDONLY, O_RDWR); } function 2420 DEF(rdwr_two_WRONLY_RDONLY) { test_rdwr_two(O_WRONLY, O_RDONLY); } function 2421 DEF(rdwr_two_WRONLY_WRONLY) { test_rdwr_two(O_WRONLY, O_WRONLY); } function 2422 DEF(rdwr_two_WRONLY_RDWR) { test_rdwr_two(O_WRONLY, O_RDWR); } function 2423 DEF(rdwr_two_RDWR_RDONLY) { test_rdwr_two(O_RDWR, O_RDONLY); } function 2424 DEF(rdwr_two_RDWR_WRONLY) { test_rdwr_two(O_RDWR, O_WRONLY); } function 2425 DEF(rdwr_two_RDWR_RDWR) { test_rdwr_two(O_RDWR, O_RDWR); } function 2431 DEF(rdwr_simul) function 2492 DEF(drain_incomplete) function 2525 DEF(drain_pause) function 2556 DEF(drain_onrec) function 2680 DEF(mmap_mode_RDONLY_NONE) { test_mmap_mode(O_RDONLY, PROT_NONE); } function 2681 DEF(mmap_mode_RDONLY_READ) { test_mmap_mode(O_RDONLY, PROT_READ); } function 2682 DEF(mmap_mode_RDONLY_WRITE) { test_mmap_mode(O_RDONLY, PROT_WRITE); } function 2683 DEF(mmap_mode_RDONLY_READWRITE) { test_mmap_mode(O_RDONLY, PROT_READWRITE); } function 2684 DEF(mmap_mode_WRONLY_NONE) { test_mmap_mode(O_WRONLY, PROT_NONE); } function 2685 DEF(mmap_mode_WRONLY_READ) { test_mmap_mode(O_WRONLY, PROT_READ); } function 2686 DEF(mmap_mode_WRONLY_WRITE) { test_mmap_mode(O_WRONLY, PROT_WRITE); } function 2687 DEF(mmap_mode_WRONLY_READWRITE) { test_mmap_mode(O_WRONLY, PROT_READWRITE); } function 2688 DEF(mmap_mode_RDWR_NONE) { test_mmap_mode(O_RDWR, PROT_NONE); } function 2689 DEF(mmap_mode_RDWR_READ) { test_mmap_mode(O_RDWR, PROT_READ); } function 2690 DEF(mmap_mode_RDWR_WRITE) { test_mmap_mode(O_RDWR, PROT_WRITE); } function 2691 DEF(mmap_mode_RDWR_READWRITE) { test_mmap_mode(O_RDWR, PROT_READWRITE); } function 2776 DEF(mmap_len_0) { f(0, 0, EINVAL); } /* len is 0 */ function 2777 DEF(mmap_len_1) { f(1, 0, 0); } /* len is smaller than lsize */ function 2778 DEF(mmap_len_2) { f(LS, 0, 0); } /* len is the same as lsize */ function 2779 DEF(mmap_len_3) { f(LS1, 0, EOVERFLOW); } /* len is larger */ function 2780 DEF(mmap_len_4) { f(0, -1, EINVAL); } /* offset is negative */ function 2781 DEF(mmap_len_5) { f(0, LS, EINVAL); } /* len is 0 */ function 2782 DEF(mmap_len_6) { f(0, LS1, EINVAL); } /* len is 0 */ function 2783 DEF(mmap_len_7) { f(1, LS, EOVERFLOW); } /* exceed */ function 2788 DEF(mmap_len_8) { f(LS, 1ULL << 32, EOVERFLOW); } function 2794 DEF(mmap_twice) function 2847 DEF(mmap_multi) function 2972 DEF(poll_mode_RDONLY_IN) { test_poll_mode(O_RDONLY, IN, IN); } function 2973 DEF(poll_mode_RDONLY_OUT) { test_poll_mode(O_RDONLY, OUT, 0); } function 2974 DEF(poll_mode_RDONLY_INOUT) { test_poll_mode(O_RDONLY, IN|OUT, IN); } function 2975 DEF(poll_mode_WRONLY_IN) { test_poll_mode(O_WRONLY, IN, 0); } function 2976 DEF(poll_mode_WRONLY_OUT) { test_poll_mode(O_WRONLY, OUT, OUT); } function 2977 DEF(poll_mode_WRONLY_INOUT) { test_poll_mode(O_WRONLY, IN|OUT, OUT); } function 2978 DEF(poll_mode_RDWR_IN) { function 2983 DEF(poll_mode_RDWR_OUT) { test_poll_mode(O_RDWR, OUT, OUT); } function 2984 DEF(poll_mode_RDWR_INOUT) { function 2993 DEF(poll_out_empty) function 3020 DEF(poll_out_full) function 3072 DEF(poll_out_hiwat) function 3133 DEF(poll_out_unpause) function 3254 DEF(poll_out_simul) function 3458 DEF(poll_in_open_audio) { test_poll_in_open("audio"); } function 3459 DEF(poll_in_open_sound) { test_poll_in_open("sound"); } function 3460 DEF(poll_in_open_audioctl) { test_poll_in_open("audioctl"); } function 3467 DEF(poll_in_simul) function 3596 DEF(kqueue_mode_RDONLY_READ) { function 3600 DEF(kqueue_mode_RDONLY_WRITE) { function 3605 DEF(kqueue_mode_WRONLY_READ) { function 3609 DEF(kqueue_mode_WRONLY_WRITE) { function 3613 DEF(kqueue_mode_RDWR_READ) { function 3618 DEF(kqueue_mode_RDWR_WRITE) { function 3626 DEF(kqueue_empty) function 3672 DEF(kqueue_full) function 3737 DEF(kqueue_hiwat) function 3810 DEF(kqueue_unpause) function 3927 DEF(kqueue_simul) function 4116 DEF(ioctl_while_write) function 4176 DEF(FIOASYNC_reset) function 4217 DEF(FIOASYNC_play_signal) function 4270 DEF(FIOASYNC_rec_signal) function 4315 DEF(FIOASYNC_multi) function 4439 DEF(AUDIO_WSEEK) function 4605 DEF(AUDIO_SETFD_RDONLY) { test_AUDIO_SETFD_xxONLY(O_RDONLY); } function 4606 DEF(AUDIO_SETFD_WRONLY) { test_AUDIO_SETFD_xxONLY(O_WRONLY); } function 4611 DEF(AUDIO_SETFD_RDWR) function 4717 DEF(AUDIO_GETINFO_eof) function 4957 DEF(AUDIO_SETINFO_mode_RDONLY_0) { f(O_RDONLY, 0); } function 4958 DEF(AUDIO_SETINFO_mode_RDONLY_1) { f(O_RDONLY, 1); } function 4959 DEF(AUDIO_SETINFO_mode_RDONLY_2) { f(O_RDONLY, 2); } function 4960 DEF(AUDIO_SETINFO_mode_RDONLY_3) { f(O_RDONLY, 3); } function 4961 DEF(AUDIO_SETINFO_mode_RDONLY_4) { f(O_RDONLY, 4); } function 4962 DEF(AUDIO_SETINFO_mode_RDONLY_5) { f(O_RDONLY, 5); } function 4963 DEF(AUDIO_SETINFO_mode_RDONLY_6) { f(O_RDONLY, 6); } function 4964 DEF(AUDIO_SETINFO_mode_RDONLY_7) { f(O_RDONLY, 7); } function 4965 DEF(AUDIO_SETINFO_mode_RDONLY_8) { f(O_RDONLY, 8); } function 4966 DEF(AUDIO_SETINFO_mode_WRONLY_0) { f(O_WRONLY, 0); } function 4967 DEF(AUDIO_SETINFO_mode_WRONLY_1) { f(O_WRONLY, 1); } function 4968 DEF(AUDIO_SETINFO_mode_WRONLY_2) { f(O_WRONLY, 2); } function 4969 DEF(AUDIO_SETINFO_mode_WRONLY_3) { f(O_WRONLY, 3); } function 4970 DEF(AUDIO_SETINFO_mode_WRONLY_4) { f(O_WRONLY, 4); } function 4971 DEF(AUDIO_SETINFO_mode_WRONLY_5) { f(O_WRONLY, 5); } function 4972 DEF(AUDIO_SETINFO_mode_WRONLY_6) { f(O_WRONLY, 6); } function 4973 DEF(AUDIO_SETINFO_mode_WRONLY_7) { f(O_WRONLY, 7); } function 4974 DEF(AUDIO_SETINFO_mode_WRONLY_8) { f(O_WRONLY, 8); } function 5014 DEF(AUDIO_SETINFO_mode_RDWR_0) { f(0); } function 5015 DEF(AUDIO_SETINFO_mode_RDWR_1) { f(1); } function 5016 DEF(AUDIO_SETINFO_mode_RDWR_2) { f(2); } function 5017 DEF(AUDIO_SETINFO_mode_RDWR_3) { f(3); } function 5018 DEF(AUDIO_SETINFO_mode_RDWR_4) { f(4); } function 5019 DEF(AUDIO_SETINFO_mode_RDWR_5) { f(5); } function 5020 DEF(AUDIO_SETINFO_mode_RDWR_6) { f(6); } function 5021 DEF(AUDIO_SETINFO_mode_RDWR_7) { f(7); } function 5022 DEF(AUDIO_SETINFO_mode_RDWR_8) { f(8); } function 5091 DEF(AUDIO_SETINFO_params_set_RDONLY_0) { f(O_RDONLY, 0, 0); } function 5092 DEF(AUDIO_SETINFO_params_set_RDONLY_1) { f(O_RDONLY, 0, 1); } function 5097 DEF(AUDIO_SETINFO_params_set_WRONLY_0) { f(O_WRONLY, 0, 0); } function 5098 DEF(AUDIO_SETINFO_params_set_WRONLY_1) { f(O_WRONLY, 0, 1); } function 5099 DEF(AUDIO_SETINFO_params_set_WRONLY_2) { f(O_WRONLY, 1, 0); } function 5100 DEF(AUDIO_SETINFO_params_set_WRONLY_3) { f(O_WRONLY, 1, 1); } function 5101 DEF(AUDIO_SETINFO_params_set_RDWR_0) { f(O_RDWR, 0, 0); } function 5102 DEF(AUDIO_SETINFO_params_set_RDWR_1) { f(O_RDWR, 0, 1); } function 5103 DEF(AUDIO_SETINFO_params_set_RDWR_2) { f(O_RDWR, 1, 0); } function 5104 DEF(AUDIO_SETINFO_params_set_RDWR_3) { f(O_RDWR, 1, 1); } function 5113 DEF(AUDIO_SETINFO_params_simul) function 5191 DEF(AUDIO_SETINFO_channels) function 5306 DEF(AUDIO_SETINFO_sample_rate) function 5371 DEF(AUDIO_SETINFO_sample_rate_0) function 5487 DEF(AUDIO_SETINFO_pause_RDONLY_0) { test_AUDIO_SETINFO_pause(O_RDONLY, 0, 0); } function 5488 DEF(AUDIO_SETINFO_pause_RDONLY_1) { test_AUDIO_SETINFO_pause(O_RDONLY, 0, 1); } function 5493 DEF(AUDIO_SETINFO_pause_WRONLY_0) { test_AUDIO_SETINFO_pause(O_WRONLY, 0, 0); } function 5494 DEF(AUDIO_SETINFO_pause_WRONLY_1) { test_AUDIO_SETINFO_pause(O_WRONLY, 0, 1); } function 5495 DEF(AUDIO_SETINFO_pause_WRONLY_2) { test_AUDIO_SETINFO_pause(O_WRONLY, 1, 0); } function 5496 DEF(AUDIO_SETINFO_pause_WRONLY_3) { test_AUDIO_SETINFO_pause(O_WRONLY, 1, 1); } function 5497 DEF(AUDIO_SETINFO_pause_RDWR_0) { test_AUDIO_SETINFO_pause(O_RDWR, 0, 0); } function 5498 DEF(AUDIO_SETINFO_pause_RDWR_1) { test_AUDIO_SETINFO_pause(O_RDWR, 0, 1); } function 5499 DEF(AUDIO_SETINFO_pause_RDWR_2) { test_AUDIO_SETINFO_pause(O_RDWR, 1, 0); } function 5500 DEF(AUDIO_SETINFO_pause_RDWR_3) { test_AUDIO_SETINFO_pause(O_RDWR, 1, 1); } function 5507 DEF(AUDIO_SETINFO_gain) function 5716 DEF(AUDIO_SETINFO_gain_balance) function 5879 DEF(AUDIO_SETINFO_mmap_enc) function 5923 DEF(AUDIO_SETINFO_mmap_pause) function 6167 DEF(AUDIO_GETENC_range) function 6225 DEF(AUDIO_GETENC_error) function 6281 DEF(AUDIO_ERROR_RDONLY) { test_AUDIO_ERROR(O_RDONLY); } function 6282 DEF(AUDIO_ERROR_WRONLY) { test_AUDIO_ERROR(O_WRONLY); } function 6283 DEF(AUDIO_ERROR_RDWR) { test_AUDIO_ERROR(O_RDWR); } function 6368 DEF(AUDIO_GETIOFFS_one_RDONLY) { test_AUDIO_GETIOFFS_one(O_RDONLY); } function 6369 DEF(AUDIO_GETIOFFS_one_WRONLY) { test_AUDIO_GETIOFFS_one(O_WRONLY); } function 6370 DEF(AUDIO_GETIOFFS_one_RDWR) { test_AUDIO_GETIOFFS_one(O_RDWR); } function 6490 DEF(AUDIO_GETOOFFS_one_RDONLY) { test_AUDIO_GETOOFFS_one(O_RDONLY); } function 6491 DEF(AUDIO_GETOOFFS_one_WRONLY) { test_AUDIO_GETOOFFS_one(O_WRONLY); } function 6492 DEF(AUDIO_GETOOFFS_one_RDWR) { test_AUDIO_GETOOFFS_one(O_RDWR); } function 6614 DEF(AUDIO_GETOOFFS_wrap_RDONLY) { test_AUDIO_GETOOFFS_wrap(O_RDONLY); } function 6615 DEF(AUDIO_GETOOFFS_wrap_WRONLY) { test_AUDIO_GETOOFFS_wrap(O_WRONLY); } function 6616 DEF(AUDIO_GETOOFFS_wrap_RDWR) { test_AUDIO_GETOOFFS_wrap(O_RDWR); } function 6741 DEF(AUDIO_GETOOFFS_flush_RDONLY) { test_AUDIO_GETOOFFS_flush(O_RDONLY); } function 6742 DEF(AUDIO_GETOOFFS_flush_WRONLY) { test_AUDIO_GETOOFFS_flush(O_WRONLY); } function 6743 DEF(AUDIO_GETOOFFS_flush_RDWR) { test_AUDIO_GETOOFFS_flush(O_RDWR); } function 6828 DEF(AUDIO_GETOOFFS_set_RDONLY) { test_AUDIO_GETOOFFS_set(O_RDONLY); } function 6829 DEF(AUDIO_GETOOFFS_set_WRONLY) { test_AUDIO_GETOOFFS_set(O_WRONLY); } function 6830 DEF(AUDIO_GETOOFFS_set_RDWR) { test_AUDIO_GETOOFFS_set(O_RDWR); } function 6865 DEF(audioctl_open_1_RDONLY_RDONLY) { test_audioctl_open_1(O_RDONLY, O_RDONLY); } function 6866 DEF(audioctl_open_1_RDONLY_RWONLY) { test_audioctl_open_1(O_RDONLY, O_WRONLY); } function 6867 DEF(audioctl_open_1_RDONLY_RDWR) { test_audioctl_open_1(O_RDONLY, O_RDWR); } function 6868 DEF(audioctl_open_1_WRONLY_RDONLY) { test_audioctl_open_1(O_WRONLY, O_RDONLY); } function 6869 DEF(audioctl_open_1_WRONLY_RWONLY) { test_audioctl_open_1(O_WRONLY, O_WRONLY); } function 6870 DEF(audioctl_open_1_WRONLY_RDWR) { test_audioctl_open_1(O_WRONLY, O_RDWR); } function 6871 DEF(audioctl_open_1_RDWR_RDONLY) { test_audioctl_open_1(O_RDWR, O_RDONLY); } function 6872 DEF(audioctl_open_1_RDWR_RWONLY) { test_audioctl_open_1(O_RDWR, O_WRONLY); } function 6873 DEF(audioctl_open_1_RDWR_RDWR) { test_audioctl_open_1(O_RDWR, O_RDWR); } function 6908 DEF(audioctl_open_2_RDONLY_RDONLY) { test_audioctl_open_2(O_RDONLY, O_RDONLY); } function 6909 DEF(audioctl_open_2_RDONLY_RWONLY) { test_audioctl_open_2(O_RDONLY, O_WRONLY); } function 6910 DEF(audioctl_open_2_RDONLY_RDWR) { test_audioctl_open_2(O_RDONLY, O_RDWR); } function 6911 DEF(audioctl_open_2_WRONLY_RDONLY) { test_audioctl_open_2(O_WRONLY, O_RDONLY); } function 6912 DEF(audioctl_open_2_WRONLY_RWONLY) { test_audioctl_open_2(O_WRONLY, O_WRONLY); } function 6913 DEF(audioctl_open_2_WRONLY_RDWR) { test_audioctl_open_2(O_WRONLY, O_RDWR); } function 6914 DEF(audioctl_open_2_RDWR_RDONLY) { test_audioctl_open_2(O_RDWR, O_RDONLY); } function 6915 DEF(audioctl_open_2_RDWR_RWONLY) { test_audioctl_open_2(O_RDWR, O_WRONLY); } function 6916 DEF(audioctl_open_2_RDWR_RDWR) { test_audioctl_open_2(O_RDWR, O_RDWR); } function 6921 DEF(audioctl_open_simul) function 7033 DEF(audioctl_open_multiuser0_audio1) { function 7037 DEF(audioctl_open_multiuser1_audio1) { function 7041 DEF(audioctl_open_multiuser0_audio2) { function 7045 DEF(audioctl_open_multiuser1_audio2) { function 7049 DEF(audioctl_open_multiuser0_audioctl) { function 7053 DEF(audioctl_open_multiuser1_audioctl) { function 7086 DEF(audioctl_rw_RDONLY) { test_audioctl_rw(O_RDONLY); } function 7087 DEF(audioctl_rw_WRONLY) { test_audioctl_rw(O_WRONLY); } function 7088 DEF(audioctl_rw_RDWR) { test_audioctl_rw(O_RDWR); } function 7096 DEF(audioctl_poll) function 7123 DEF(audioctl_kqueue) function [all...] |