about summary refs log tree commit diff homepage
path: root/runtime/POSIX
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2019-07-30 12:34:27 +0100
committerMartinNowack <martin.nowack@gmail.com>2019-07-30 21:40:30 +0100
commit5732990c805948249bdc3d43a52cfe050ad66a95 (patch)
treed0869133c9a27f3478d3c08e13ff9593a32d9ea6 /runtime/POSIX
parent9b3c98850572f0729afe97ffde16d05a7e6e691b (diff)
downloadklee-5732990c805948249bdc3d43a52cfe050ad66a95.tar.gz
Use #include "klee/..." (instead of #include <klee/...>) consistently.
Diffstat (limited to 'runtime/POSIX')
-rw-r--r--runtime/POSIX/fd.c19
-rw-r--r--runtime/POSIX/fd_64.c22
-rw-r--r--runtime/POSIX/fd_init.c8
-rw-r--r--runtime/POSIX/illegal.c10
-rw-r--r--runtime/POSIX/misc.c7
5 files changed, 34 insertions, 32 deletions
diff --git a/runtime/POSIX/fd.c b/runtime/POSIX/fd.c
index 5a3faa16..a2cbe0ab 100644
--- a/runtime/POSIX/fd.c
+++ b/runtime/POSIX/fd.c
@@ -10,27 +10,28 @@
 #define _LARGEFILE64_SOURCE
 #include "fd.h"
 
-#include <string.h>
+#include "klee/klee.h"
+
+#include <assert.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <errno.h>
-#include <sys/syscall.h>
+#include <string.h>
 #include <sys/stat.h>
+#include <sys/syscall.h>
 #include <sys/types.h>
-#include <fcntl.h>
-#include <stdarg.h>
-#include <assert.h>
 #ifndef __FreeBSD__
 #include <sys/vfs.h>
 #endif
-#include <unistd.h>
 #include <dirent.h>
 #include <sys/ioctl.h>
 #include <sys/mtio.h>
-#include <termios.h>
 #include <sys/select.h>
-#include <klee/klee.h>
 #include <sys/time.h>
+#include <termios.h>
+#include <unistd.h>
 
 /* Returns pointer to the symbolic file structure fs the pathname is symbolic */
 static exe_disk_file_t *__get_sym_file(const char *pathname) {
diff --git a/runtime/POSIX/fd_64.c b/runtime/POSIX/fd_64.c
index 3bf48f5e..61d9dc6f 100644
--- a/runtime/POSIX/fd_64.c
+++ b/runtime/POSIX/fd_64.c
@@ -15,32 +15,32 @@
 #endif
 #endif
 
-
-#include "klee/Config/Version.h"
 #define _LARGEFILE64_SOURCE
 #define _FILE_OFFSET_BITS 64
 #include "fd.h"
 
-#include <string.h>
+#include "klee/Config/Version.h"
+#include "klee/klee.h"
+
+#include <assert.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <errno.h>
-#include <sys/syscall.h>
+#include <string.h>
 #include <sys/stat.h>
+#include <sys/syscall.h>
 #include <sys/types.h>
-#include <fcntl.h>
-#include <stdarg.h>
-#include <assert.h>
 #ifndef __FreeBSD__
 #include <sys/vfs.h>
 #endif
-#include <unistd.h>
 #include <dirent.h>
 #include <sys/ioctl.h>
 #include <sys/mtio.h>
-#include <termios.h>
 #include <sys/select.h>
-#include <klee/klee.h>
+#include <termios.h>
+#include <unistd.h>
 
 /*** Forward to actual implementations ***/
 
diff --git a/runtime/POSIX/fd_init.c b/runtime/POSIX/fd_init.c
index 327ddb53..8845fc9c 100644
--- a/runtime/POSIX/fd_init.c
+++ b/runtime/POSIX/fd_init.c
@@ -10,17 +10,17 @@
 #define _LARGEFILE64_SOURCE
 #define _FILE_OFFSET_BITS 64
 #include "fd.h"
-#include <klee/klee.h>
 
-#include <string.h>
+#include "klee/klee.h"
+
+#include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <assert.h>
+#include <string.h>
 #include <sys/stat.h>
 #include <sys/syscall.h>
 #include <unistd.h>
 
-
 exe_file_system_t __exe_fs;
 
 /* NOTE: It is important that these are statically initialized
diff --git a/runtime/POSIX/illegal.c b/runtime/POSIX/illegal.c
index 8b8c0134..8ded0987 100644
--- a/runtime/POSIX/illegal.c
+++ b/runtime/POSIX/illegal.c
@@ -7,14 +7,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <stdio.h>
+#include "klee/klee.h"
+
 #include <errno.h>
-#include <unistd.h>
-#include <signal.h>
 #include <setjmp.h>
+#include <signal.h>
+#include <stdio.h>
 #include <sys/types.h>
-
-#include <klee/klee.h>
+#include <unistd.h>
 
 void klee_warning(const char*);
 void klee_warning_once(const char*);
diff --git a/runtime/POSIX/misc.c b/runtime/POSIX/misc.c
index 7335dee2..94c495f5 100644
--- a/runtime/POSIX/misc.c
+++ b/runtime/POSIX/misc.c
@@ -7,13 +7,14 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "klee/klee.h"
+
 #include <assert.h>
-#include <unistd.h>
-#include <sys/syscall.h>
 #include <errno.h>
 #include <stdlib.h>
-#include <klee/klee.h>
 #include <string.h>
+#include <sys/syscall.h>
+#include <unistd.h>
 
 #if 0
 #define MAX_SYM_ENV_SIZE 32