diff options
author | Martin Nowack <martin@se.inf.tu-dresden.de> | 2013-11-02 00:09:36 +0100 |
---|---|---|
committer | Martin Nowack <martin@se.inf.tu-dresden.de> | 2013-11-02 00:09:36 +0100 |
commit | f0a0ae4d437d7c5bae9e42e0c693da26a87f64d6 (patch) | |
tree | a456ce31ac7631275b2a878184a9fa564a586ba3 /runtime | |
parent | b2070cfe978396aad21f22c8aae4910d45295bee (diff) | |
download | klee-f0a0ae4d437d7c5bae9e42e0c693da26a87f64d6.tar.gz |
Fix build of POSIX file descriptor functions
Build Large File System functions for 32bit and 64bit correctly
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/POSIX/fd_32.c | 19 | ||||
-rw-r--r-- | runtime/POSIX/fd_64.c | 3 |
2 files changed, 0 insertions, 22 deletions
diff --git a/runtime/POSIX/fd_32.c b/runtime/POSIX/fd_32.c index 389d7ae8..36c5d41f 100644 --- a/runtime/POSIX/fd_32.c +++ b/runtime/POSIX/fd_32.c @@ -18,7 +18,6 @@ #endif #include "klee/Config/Version.h" -#if defined(ENV32) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 2)) #define _LARGEFILE64_SOURCE #include "fd.h" @@ -205,21 +204,3 @@ __attribute__((weak)) int open64(const char *pathname, int flags, ...) { return __fd_open(pathname, flags, mode); } - -__attribute__((weak)) off64_t lseek64(int fd, off64_t off, int whence) { - return __fd_lseek(fd, off, whence); -} - -__attribute__((weak)) int stat64(const char *path, struct stat64 *buf) { - return __fd_stat(path, buf); -} - -__attribute__((weak)) int lstat64(const char *path, struct stat64 *buf) { - return __fd_lstat(path, buf); -} - -__attribute__((weak)) int fstat64(int fd, struct stat64 *buf) { - return __fd_fstat(fd, buf); -} - -#endif diff --git a/runtime/POSIX/fd_64.c b/runtime/POSIX/fd_64.c index 21a986aa..03fccc49 100644 --- a/runtime/POSIX/fd_64.c +++ b/runtime/POSIX/fd_64.c @@ -17,7 +17,6 @@ #include "klee/Config/Version.h" -#if defined(ENV64) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 2)) #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include "fd.h" @@ -113,5 +112,3 @@ int getdents64(unsigned int fd, struct dirent *dirp, unsigned int count) { } int __getdents64(unsigned int fd, struct dirent *dirp, unsigned int count) __attribute__((alias("getdents64"))); - -#endif |