about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/tcsetattr.c
blob: c3d5b93334f49f23083fc61242c21d5ea76cb08c (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
tcsetattr_ioctl (int fd, unsigned long int request,
		 const struct __kernel_termios *termios_p)
{
  return INLINE_SYSCALL (ioctl, 3, fd, request, CHECK_1 (termios_p));
}

#define __ioctl tcsetattr_ioctl

#include <sysdeps/unix/sysv/linux/tcsetattr.c>