summaryrefslogtreecommitdiff
path: root/utils/utils.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-02 16:37:04 +0100
committerVincent Sanders <vince@kyllikki.org>2015-04-02 16:37:04 +0100
commit47d08b6506a16b1d8a806d9dfa971398553a250e (patch)
tree272460f379e880230a7e01ae8ac00c013a23e952 /utils/utils.c
parent576b1c55bf5a8b37983e1581a6c0cc1a9d7158f5 (diff)
downloadnetsurf-47d08b6506a16b1d8a806d9dfa971398553a250e.tar.gz
netsurf-47d08b6506a16b1d8a806d9dfa971398553a250e.tar.bz2
Revert "Fix RISC OS not having a pread/pwrite implementation."
This reverts commit 82c7a7a4baf4a7a15381ee720799dc41c3d54909. Conflicts: content/fs_backing_store.c
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/utils/utils.c b/utils/utils.c
index 722e32302..5c8acd6f0 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -32,7 +32,6 @@
#include <regex.h>
#include <time.h>
#include <errno.h>
-#include <unistd.h>
#include "utils/config.h"
#include "utils/log.h"
@@ -629,34 +628,3 @@ nserror nsc_snptimet(char *str, size_t size, time_t *timep)
return NSERROR_OK;
}
-
-#ifndef HAVE_PREAD
-
-ssize_t pread(int fd, void *buf, size_t count, off_t offset)
-{
- off_t sk;
-
- sk = lseek(fd, offset, SEEK_SET);
- if (sk == -1) {
- return (off_t)-1;
- }
- return read(fd, buf, count);
-}
-
-#endif
-
-
-#ifndef HAVE_PWRITE
-
-ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset)
-{
- off_t sk;
-
- sk = lseek(fd, offset, SEEK_SET);
- if (sk == (off_t)-1) {
- return -1;
- }
- return write(fd, buf, count);
-}
-
-#endif