ioctls.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
  2. The GNU C Library is free software; you can redistribute it and/or
  3. modify it under the terms of the GNU Lesser General Public
  4. License as published by the Free Software Foundation; either
  5. version 2.1 of the License, or (at your option) any later version.
  6. The GNU C Library is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9. Lesser General Public License for more details.
  10. You should have received a copy of the GNU Lesser General Public
  11. License along with the GNU C Library; if not, see
  12. <http://www.gnu.org/licenses/>. */
  13. #ifndef _SYS_IOCTL_H
  14. # error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
  15. #endif
  16. /* Use the definitions from the kernel header files. */
  17. #include <asm/ioctls.h>
  18. /* Oh well, this is necessary since the kernel data structure is
  19. different from the user-level version. */
  20. #undef TCGETS
  21. #undef TCSETS
  22. #undef TCSETSW
  23. #undef TCSETSF
  24. #define TCGETS _IOR ('T', 8, char[36])
  25. #define TCSETS _IOW ('T', 9, char[36])
  26. #define TCSETSW _IOW ('T', 10, char[36])
  27. #define TCSETSF _IOW ('T', 11, char[36])
  28. #include <linux/sockios.h>