/*
* Copyright (c) 2001 Wichert Akkerman <wichert@cistron.nl>
* Copyright (c) 2004-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 1999-2017 The strace developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
# include "config.h"
#endif
-#ifdef MIPS
-# include <sgidefs.h>
-# if _MIPS_SIM == _MIPS_SIM_ABI64
-# define LINUX_MIPSN64
-# elif _MIPS_SIM == _MIPS_SIM_NABI32
-# define LINUX_MIPSN32
-# elif _MIPS_SIM == _MIPS_SIM_ABI32
-# define LINUX_MIPSO32
-# else
-# error Unsupported _MIPS_SIM
-# endif
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <asm/ioctl.h>
+
+#include "ioctl_iocdef.h"
struct ioctlent {
const char *info;
}
static int
-compare_name_info(const void* a, const void* b)
+compare_name_info(const void *a, const void *b)
{
int rc;
}
static int
-compare_code_name(const void* a, const void* b)
+compare_code_name(const void *a, const void *b)
{
unsigned int code1 = code((struct ioctlent *) a);
unsigned int code2 = code((struct ioctlent *) b);