X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffs-handle.c;h=bed0010e76d9f850b5f88e40035f5ae0099ca59f;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=ff081235cb8d6d2c3ecebf505963ec02fcf9d40d;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/fs-handle.c b/src/common/fs-handle.c index ff081235c..bed0010e7 100644 --- a/src/common/fs-handle.c +++ b/src/common/fs-handle.c @@ -9,31 +9,26 @@ #include #include -LTTNG_HIDDEN int fs_handle_get_fd(struct fs_handle *handle) { return handle->get_fd(handle); } -LTTNG_HIDDEN void fs_handle_put_fd(struct fs_handle *handle) { return handle->put_fd(handle); } -LTTNG_HIDDEN int fs_handle_unlink(struct fs_handle *handle) { return handle->unlink(handle); } -LTTNG_HIDDEN int fs_handle_close(struct fs_handle *handle) { return handle->close(handle); } -LTTNG_HIDDEN ssize_t fs_handle_read(struct fs_handle *handle, void *buf, size_t count) { ssize_t ret; @@ -50,7 +45,6 @@ end: return ret; } -LTTNG_HIDDEN ssize_t fs_handle_write(struct fs_handle *handle, const void *buf, size_t count) { ssize_t ret; @@ -67,10 +61,9 @@ end: return ret; } -LTTNG_HIDDEN int fs_handle_truncate(struct fs_handle *handle, off_t offset) { - int ret; + int ret; const int fd = fs_handle_get_fd(handle); if (fd < 0) { @@ -84,10 +77,9 @@ end: return ret; } -LTTNG_HIDDEN -int fs_handle_seek(struct fs_handle *handle, off_t offset, int whence) +off_t fs_handle_seek(struct fs_handle *handle, off_t offset, int whence) { - int ret; + off_t ret; const int fd = fs_handle_get_fd(handle); if (fd < 0) {