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 libconsumer, libust-consumer, libkernel-consumer as C++
[lttng-tools.git]
/
src
/
common
/
fd-handle.c
diff --git
a/src/common/fd-handle.c
b/src/common/fd-handle.c
index ddf70afadea98fa9a1aa4414bcee74a73e4c7c1a..b2b7efd2369dae22ba3c62d4c32fa5e071713408 100644
(file)
--- a/
src/common/fd-handle.c
+++ b/
src/common/fd-handle.c
@@
-21,7
+21,7
@@
static void fd_handle_release(struct urcu_ref *ref)
int ret;
struct fd_handle *handle = container_of(ref, struct fd_handle, ref);
int ret;
struct fd_handle *handle = container_of(ref, struct fd_handle, ref);
-
assert
(handle->fd >= 0);
+
LTTNG_ASSERT
(handle->fd >= 0);
ret = close(handle->fd);
if (ret == -1) {
PERROR("Failed to close file descriptor of fd_handle upon release: fd = %d",
ret = close(handle->fd);
if (ret == -1) {
PERROR("Failed to close file descriptor of fd_handle upon release: fd = %d",
@@
-31,7
+31,6
@@
static void fd_handle_release(struct urcu_ref *ref)
free(handle);
}
free(handle);
}
-LTTNG_HIDDEN
struct fd_handle *fd_handle_create(int fd)
{
struct fd_handle *handle = NULL;
struct fd_handle *fd_handle_create(int fd)
{
struct fd_handle *handle = NULL;
@@
-55,7
+54,6
@@
end:
return handle;
}
return handle;
}
-LTTNG_HIDDEN
void fd_handle_get(struct fd_handle *handle)
{
if (!handle) {
void fd_handle_get(struct fd_handle *handle)
{
if (!handle) {
@@
-65,7
+63,6
@@
void fd_handle_get(struct fd_handle *handle)
urcu_ref_get(&handle->ref);
}
urcu_ref_get(&handle->ref);
}
-LTTNG_HIDDEN
void fd_handle_put(struct fd_handle *handle)
{
if (!handle) {
void fd_handle_put(struct fd_handle *handle)
{
if (!handle) {
@@
-75,14
+72,12
@@
void fd_handle_put(struct fd_handle *handle)
urcu_ref_put(&handle->ref, fd_handle_release);
}
urcu_ref_put(&handle->ref, fd_handle_release);
}
-LTTNG_HIDDEN
int fd_handle_get_fd(struct fd_handle *handle)
{
int fd_handle_get_fd(struct fd_handle *handle)
{
-
assert
(handle);
+
LTTNG_ASSERT
(handle);
return handle->fd;
}
return handle->fd;
}
-LTTNG_HIDDEN
struct fd_handle *fd_handle_copy(const struct fd_handle *handle)
{
struct fd_handle *new_handle = NULL;
struct fd_handle *fd_handle_copy(const struct fd_handle *handle)
{
struct fd_handle *new_handle = NULL;
This page took
0.025218 seconds
and
4
git commands to generate.