1 /* 2 * Copyright (c) 2022 Meta 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "_common.h" 8 9 #ifdef CONFIG_POSIX_API 10 #include <sys/ioctl.h> 11 #else 12 #include <zephyr/posix/sys/ioctl.h> 13 #endif 14 15 /** 16 * @brief existence test for `<sys/ioctl.h>` 17 * 18 * @see <a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/ioctl.html">ioctl</a> 19 * @see <a href="https://man7.org/linux/man-pages/man2/ioctl.2.html">ioctl(2)</a> 20 */ ZTEST(posix_headers,test_sys_ioctl_h)21ZTEST(posix_headers, test_sys_ioctl_h) 22 { 23 if (IS_ENABLED(CONFIG_POSIX_API)) { 24 zassert_not_null(ioctl); 25 } 26 } 27