projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: compile libhashtable as C++
[lttng-tools.git]
/
src
/
common
/
fs-handle.c
diff --git
a/src/common/fs-handle.c
b/src/common/fs-handle.c
index ff081235cb8d6d2c3ecebf505963ec02fcf9d40d..bed0010e76d9f850b5f88e40035f5ae0099ca59f 100644
(file)
--- a/
src/common/fs-handle.c
+++ b/
src/common/fs-handle.c
@@
-9,31
+9,26
@@
#include <common/fs-handle.h>
#include <common/readwrite.h>
#include <common/fs-handle.h>
#include <common/readwrite.h>
-LTTNG_HIDDEN
int fs_handle_get_fd(struct fs_handle *handle)
{
return handle->get_fd(handle);
}
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);
}
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);
}
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);
}
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;
ssize_t fs_handle_read(struct fs_handle *handle, void *buf, size_t count)
{
ssize_t ret;
@@
-50,7
+45,6
@@
end:
return ret;
}
return ret;
}
-LTTNG_HIDDEN
ssize_t fs_handle_write(struct fs_handle *handle, const void *buf, size_t count)
{
ssize_t ret;
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;
}
return ret;
}
-LTTNG_HIDDEN
int fs_handle_truncate(struct fs_handle *handle, off_t offset)
{
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) {
const int fd = fs_handle_get_fd(handle);
if (fd < 0) {
@@
-84,10
+77,9
@@
end:
return ret;
}
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)
{
{
-
in
t ret;
+
off_
t ret;
const int fd = fs_handle_get_fd(handle);
if (fd < 0) {
const int fd = fs_handle_get_fd(handle);
if (fd < 0) {
This page took
0.025293 seconds
and
4
git commands to generate.