OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/klee?expand=0&rev=32
45 lines
1.2 KiB
Diff
45 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 | 2 ++
|
|
runtime/POSIX/fd.c | 6 ------
|
|
2 files changed, 2 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/include/klee/klee.h b/include/klee/klee.h
|
|
index bd3100b5007e..282670eebc91 100644
|
|
--- a/include/klee/klee.h
|
|
+++ b/include/klee/klee.h
|
|
@@ -152,6 +152,8 @@ extern "C" {
|
|
/* Print range for given argument and tagged with name */
|
|
void klee_print_range(const char * name, int arg );
|
|
|
|
+ /* 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.0
|
|
|