| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef _@GUARD_PREFIX@_SYS_IOCTL_H |
| 18 |
|
| 19 |
#if __GNUC__ >= 3 |
| 20 |
@PRAGMA_SYSTEM_HEADER@ |
| 21 |
#endif |
| 22 |
@PRAGMA_COLUMNS@ |
| 23 |
|
| 24 |
|
| 25 |
#if @HAVE_SYS_IOCTL_H@ |
| 26 |
# @INCLUDE_NEXT@ @NEXT_SYS_IOCTL_H@ |
| 27 |
#endif |
| 28 |
|
| 29 |
#ifndef _@GUARD_PREFIX@_SYS_IOCTL_H |
| 30 |
#define _@GUARD_PREFIX@_SYS_IOCTL_H |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
#ifndef __GLIBC__ |
| 37 |
# include <unistd.h> |
| 38 |
#endif |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
#if @GNULIB_IOCTL@ |
| 48 |
# if @REPLACE_IOCTL@ |
| 49 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 50 |
# undef ioctl |
| 51 |
# define ioctl rpl_ioctl |
| 52 |
# endif |
| 53 |
_GL_FUNCDECL_RPL (ioctl, int, |
| 54 |
(int fd, int request, ... )); |
| 55 |
_GL_CXXALIAS_RPL (ioctl, int, |
| 56 |
(int fd, int request, ... )); |
| 57 |
# else |
| 58 |
# if @SYS_IOCTL_H_HAVE_WINSOCK2_H@ || 1 |
| 59 |
_GL_FUNCDECL_SYS (ioctl, int, |
| 60 |
(int fd, int request, ... )); |
| 61 |
# endif |
| 62 |
_GL_CXXALIAS_SYS (ioctl, int, |
| 63 |
(int fd, int request, ... )); |
| 64 |
# endif |
| 65 |
_GL_CXXALIASWARN (ioctl); |
| 66 |
#elif @SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ |
| 67 |
# undef ioctl |
| 68 |
# define ioctl ioctl_used_without_requesting_gnulib_module_ioctl |
| 69 |
#elif defined GNULIB_POSIXCHECK |
| 70 |
# undef ioctl |
| 71 |
# if HAVE_RAW_DECL_IOCTL |
| 72 |
_GL_WARN_ON_USE (ioctl, "ioctl does not portably work on sockets - " |
| 73 |
"use gnulib module ioctl for portability"); |
| 74 |
# endif |
| 75 |
#endif |
| 76 |
|
| 77 |
|
| 78 |
#endif |
| 79 |
#endif |