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