xref: /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h (revision bb722a7d0f1642bff6487f943ad0427799a6e5bf)
1*bb722a7dSDimitry Andric //===-- Definition of macros from sys/ioctl.h -----------------------------===//
2*bb722a7dSDimitry Andric //
3*bb722a7dSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*bb722a7dSDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*bb722a7dSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*bb722a7dSDimitry Andric //
7*bb722a7dSDimitry Andric //===----------------------------------------------------------------------===//
8*bb722a7dSDimitry Andric 
9*bb722a7dSDimitry Andric #ifndef LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
10*bb722a7dSDimitry Andric #define LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
11*bb722a7dSDimitry Andric 
12*bb722a7dSDimitry Andric // TODO (michaelrj): Finish defining these macros.
13*bb722a7dSDimitry Andric // Just defining this macro for the moment since it's all that we need right
14*bb722a7dSDimitry Andric // now. The other macros are mostly just constants, but there's some complexity
15*bb722a7dSDimitry Andric // around the definitions of macros like _IO, _IOR, _IOW, and _IOWR that I don't
16*bb722a7dSDimitry Andric // think is worth digging into right now.
17*bb722a7dSDimitry Andric #define TIOCGETD 0x5424
18*bb722a7dSDimitry Andric #define FIONREAD 0x541B
19*bb722a7dSDimitry Andric 
20*bb722a7dSDimitry Andric #endif // LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
21