projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: apply clang-format to the newly added fd-tracker
[lttng-tools.git]
/
src
/
common
/
fd-tracker
/
utils.c
diff --git
a/src/common/fd-tracker/utils.c
b/src/common/fd-tracker/utils.c
index 21ca6752deb3875aa656d6dd2bab605172364672..b3df040c2088b22fce9d5cd10b3b05f8dfc02634 100644
(file)
--- a/
src/common/fd-tracker/utils.c
+++ b/
src/common/fd-tracker/utils.c
@@
-15,20
+15,18
@@
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <common/fd-tracker/utils.h>
#include <common/utils.h>
#include <common/fd-tracker/utils.h>
#include <common/utils.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
-static
-int open_pipe_cloexec(void *data, int *fds)
+static int open_pipe_cloexec(void *data, int *fds)
{
return utils_create_pipe_cloexec(fds);
}
{
return utils_create_pipe_cloexec(fds);
}
-static
-int close_pipe(void *data, int *pipe)
+static int close_pipe(void *data, int *pipe)
{
utils_close_pipe(pipe);
pipe[0] = pipe[1] = -1;
{
utils_close_pipe(pipe);
pipe[0] = pipe[1] = -1;
@@
-40,8
+38,8
@@
int fd_tracker_util_close_fd(void *unused, int *fd)
return close(*fd);
}
return close(*fd);
}
-int fd_tracker_util_pipe_open_cloexec(
struct fd_tracker *tracker,
- const char *name, int *pipe)
+int fd_tracker_util_pipe_open_cloexec(
+
struct fd_tracker *tracker,
const char *name, int *pipe)
{
int ret;
const char *name_prefix;
{
int ret;
const char *name_prefix;
@@
-57,7
+55,7
@@
int fd_tracker_util_pipe_open_cloexec(struct fd_tracker *tracker,
goto end;
}
goto end;
}
-
ret = fd_tracker_open_unsuspendable_fd(tracker, pipe,
+ ret = fd_tracker_open_unsuspendable_fd(tracker, pipe,
(const char **) names, 2, open_pipe_cloexec, NULL);
free(names[0]);
free(names[1]);
(const char **) names, 2, open_pipe_cloexec, NULL);
free(names[0]);
free(names[1]);
@@
-67,6
+65,6
@@
end:
int fd_tracker_util_pipe_close(struct fd_tracker *tracker, int *pipe)
{
int fd_tracker_util_pipe_close(struct fd_tracker *tracker, int *pipe)
{
- return fd_tracker_close_unsuspendable_fd(tracker,
- pipe, 2, close_pipe, NULL);
+ return fd_tracker_close_unsuspendable_fd(
+
tracker,
pipe, 2, close_pipe, NULL);
}
}
This page took
0.027138 seconds
and
5
git commands to generate.