diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/tcgetattr.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/tcgetattr.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/tcgetattr.c b/sysdeps/unix/sysv/linux/powerpc/tcgetattr.c index 400539f387..d9b0efe59d 100644 --- a/sysdeps/unix/sysv/linux/powerpc/tcgetattr.c +++ b/sysdeps/unix/sysv/linux/powerpc/tcgetattr.c @@ -1,4 +1,19 @@ -/* We must use __syscall_ioctl since __ioctl does some extra work. */ -extern int __syscall_ioctl (int __fd, unsigned long int __request, ...); -#define __ioctl __syscall_ioctl +/* We must use the syscall directly since __ioctl does some extra work. */ + +#include <sys/ioctl.h> + +#include <sysdep.h> +#include <bp-checks.h> + +struct __kernel_termios; + +static inline int +tcgetattr_ioctl (int fd, unsigned long int request, + struct __kernel_termios *termios_p) +{ + return INLINE_SYSCALL (ioctl, 3, fd, request, CHECK_1 (termios_p)); +} + +#define __ioctl tcgetattr_ioctl + #include <sysdeps/unix/sysv/linux/tcgetattr.c> |