]> granicus.if.org Git - strace/blobdiff - ioctlsort.c
travis: add build environment information to the travis log
[strace] / ioctlsort.c
index c81c949c4c179fe00d57f3c017bea20050dc1f86..932c66713028524f4c398f680774a5974473c951 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * 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;
@@ -67,7 +56,7 @@ is_prefix(const char *s1, const char *s2)
 }
 
 static int
-compare_name_info(const void* a, const void* b)
+compare_name_info(const void *a, const void *b)
 {
        int rc;
 
@@ -104,7 +93,7 @@ code(const struct ioctlent *e)
 }
 
 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);