[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH 2/6] libc: lio_seek in lio_compat_seek umbenannt
* libc: lio_compat_seek() ist konsistenter mit den anderen
lio_compat_*-Funktionen und lässt lio_seek() für Syscall frei
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
src/modules/include/lostio.h | 2 +-
src/modules/lib/lostio/client/seek.c | 2 +-
src/modules/lib/stdlibc/directory.c | 2 +-
src/modules/lib/stdlibc/file.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/modules/include/lostio.h b/src/modules/include/lostio.h
index f67e7ab..4df497f 100644
--- a/src/modules/include/lostio.h
+++ b/src/modules/include/lostio.h
@@ -207,7 +207,7 @@ size_t lio_compat_write(const void* src, size_t blocksize, size_t blockcount,
int lio_compat_eof(io_resource_t* io_res);
/// Stream-Position setzen
-bool lio_seek(io_resource_t* io_res, uint64_t offset, int origin);
+bool lio_compat_seek(io_resource_t* io_res, uint64_t offset, int origin);
/** @} */
diff --git a/src/modules/lib/lostio/client/seek.c b/src/modules/lib/lostio/client/seek.c
index 3cfcd6b..8564486 100644
--- a/src/modules/lib/lostio/client/seek.c
+++ b/src/modules/lib/lostio/client/seek.c
@@ -43,7 +43,7 @@
*
* @return true wenn die Position erfolgreich gesetzt wurde, sonst false
*/
-bool lio_seek(io_resource_t* io_res, uint64_t offset, int origin)
+bool lio_compat_seek(io_resource_t* io_res, uint64_t offset, int origin)
{
io_seek_request_t seek_request;
diff --git a/src/modules/lib/stdlibc/directory.c b/src/modules/lib/stdlibc/directory.c
index a08474d..216df40 100644
--- a/src/modules/lib/stdlibc/directory.c
+++ b/src/modules/lib/stdlibc/directory.c
@@ -82,7 +82,7 @@ io_direntry_t* directory_read(struct dir_handle* io_res)
int directory_seek(struct dir_handle* handle, long int offset, int origin)
{
- return lio_seek(handle->lio1_handle, offset, origin);
+ return lio_compat_seek(handle->lio1_handle, offset, origin);
}
bool directory_create(const char* dirname)
diff --git a/src/modules/lib/stdlibc/file.c b/src/modules/lib/stdlibc/file.c
index 8a50f0f..088f7bd 100644
--- a/src/modules/lib/stdlibc/file.c
+++ b/src/modules/lib/stdlibc/file.c
@@ -487,7 +487,7 @@ int fseek (FILE* io_res, long int offset, int origin)
free(io_res->ungetc_buffer);
}
- return (lio_seek(io_res->res, offset, origin) ? 0 : -1);
+ return (lio_compat_seek(io_res->res, offset, origin) ? 0 : -1);
}
--
1.6.0.2