OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/klee?expand=0&rev=37
46 lines
1.2 KiB
Diff
46 lines
1.2 KiB
Diff
From: Martin Nowack <martin_nowack@tu-dresden.de>
|
|
Date: Thu, 12 Oct 2017 17:58:00 +0200
|
|
Subject: Declare klee_get_errno and remove local declarations
|
|
Patch-mainline: no
|
|
|
|
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
|
|
---
|
|
include/klee/klee.h | 3 +++
|
|
runtime/POSIX/fd.c | 6 ------
|
|
2 files changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/include/klee/klee.h b/include/klee/klee.h
|
|
index 644c498e94ab..8b9cd2e266d3 100644
|
|
--- a/include/klee/klee.h
|
|
+++ b/include/klee/klee.h
|
|
@@ -157,6 +157,9 @@ extern "C" {
|
|
|
|
/* Merge all paths of the state that went through klee_open_merge */
|
|
void klee_close_merge();
|
|
+
|
|
+ /* Get errno value of the current state */
|
|
+ int klee_get_errno(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
diff --git a/runtime/POSIX/fd.c b/runtime/POSIX/fd.c
|
|
index 6f78c7475000..cf07d1380ef8 100644
|
|
--- a/runtime/POSIX/fd.c
|
|
+++ b/runtime/POSIX/fd.c
|
|
@@ -29,12 +29,6 @@
|
|
#include <sys/select.h>
|
|
#include <klee/klee.h>
|
|
|
|
-/* #define DEBUG */
|
|
-
|
|
-void klee_warning(const char*);
|
|
-void klee_warning_once(const char*);
|
|
-int klee_get_errno(void);
|
|
-
|
|
/* Returns pointer to the symbolic file structure fs the pathname is symbolic */
|
|
static exe_disk_file_t *__get_sym_file(const char *pathname) {
|
|
if (!pathname)
|
|
--
|
|
2.15.1
|
|
|