/* SPDX-License-Identifier: LGPL-2.1 OR MIT */1/*2* Ioctl definitions for NOLIBC3* Copyright (C) 2017-2021 Willy Tarreau <[email protected]>4*/56/* make sure to include all global symbols */7#include "../nolibc.h"89#ifndef _NOLIBC_SYS_IOCTL_H10#define _NOLIBC_SYS_IOCTL_H1112#include "../sys.h"1314#include <linux/ioctl.h>1516/*17* int ioctl(int fd, unsigned long cmd, ... arg);18*/1920static __attribute__((unused))21long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)22{23return my_syscall3(__NR_ioctl, fd, cmd, arg);24}2526#define ioctl(fd, cmd, arg) __sysret(sys_ioctl(fd, cmd, (unsigned long)(arg)))2728#endif /* _NOLIBC_SYS_IOCTL_H */293031