about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/tcgetattr.c
blob: d9b0efe59dc7d36f03091eb950b8cd6fc54876fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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>