diff options
author | Mattias Andrée <maandree@kth.se> | 2021-12-10 20:54:46 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-12-10 20:54:46 +0100 |
commit | 823808c2c1cdfa244a6af1491d57192b79af8818 (patch) | |
tree | b79c5a43998ebf1e7fe6367b82d3a6ce81831162 /liberror-libc.h | |
parent | recv: fix types in check (diff) | |
download | liberror-libc-823808c2c1cdfa244a6af1491d57192b79af8818.tar.gz liberror-libc-823808c2c1cdfa244a6af1491d57192b79af8818.tar.bz2 liberror-libc-823808c2c1cdfa244a6af1491d57192b79af8818.tar.xz |
Add lseek
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'liberror-libc.h')
-rw-r--r-- | liberror-libc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/liberror-libc.h b/liberror-libc.h index 3ca2b67..ffdc127 100644 --- a/liberror-libc.h +++ b/liberror-libc.h @@ -8,6 +8,11 @@ #define LIBERROR_LIBC_ERRROR_SHORT_READ -1 +#define LIBERROR_LIBC_ERRROR_SHORT_SEEK -2 + + +typedef int64_t _liberror_off_t; +typedef uint64_t _liberror_uoff_t; int liberror_abs(int); @@ -23,6 +28,11 @@ long int liberror_labs(long int); void liberror_labs_failed(long int); long long int liberror_llabs(long long int); void liberror_llabs_failed(long long int); +_liberror_off_t liberror_lseek(int, _liberror_off_t, int, const char *); +_liberror_off_t liberror_lseek_require(int, _liberror_off_t, int, _liberror_uoff_t min, _liberror_uoff_t max, const char *); +void liberror_lseek_failed(int, _liberror_off_t, int, const char *); +void liberror_lseek_short(int, _liberror_off_t, int, _liberror_uoff_t min, _liberror_uoff_t max, + _liberror_off_t returned, const char *); void *liberror_malloc(size_t); void liberror_malloc_failed(size_t); int liberror_pipe(int[2]); |