doc/man: only mention `-llttng-ust-common` in synopses (conditionally)
[lttng-ust.git] / src / common / ust-fd.h
CommitLineData
6548fca4 1/*
c0c0989a 2 * SPDX-License-Identifier: LGPL-2.1-only
6548fca4 3 *
c0c0989a 4 * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6548fca4
MD
5 */
6
c0c0989a
MJ
7#ifndef _LTTNG_UST_FD_H
8#define _LTTNG_UST_FD_H
9
6548fca4 10/*
221309e3
MJ
11 * The fd tracker feature is part of the ABI and used by liblttng-ust-fd.
12 * However, some test code and documentation needs to be written before it is
13 * exposed to users with a public header.
df09bde5
MJ
14 *
15 * These symbols are provided by 'liblttng-ust-common'.
6548fca4
MD
16 */
17
52a20dc7
MD
18#include <stdio.h>
19
f5c453e9 20int lttng_ust_add_fd_to_tracker(int fd);
6548fca4
MD
21void lttng_ust_delete_fd_from_tracker(int fd);
22void lttng_ust_lock_fd_tracker(void);
23void lttng_ust_unlock_fd_tracker(void);
24
25int lttng_ust_safe_close_fd(int fd, int (*close_cb)(int));
52a20dc7 26int lttng_ust_safe_fclose_stream(FILE *stream, int (*fclose_cb)(FILE *stream));
6548fca4
MD
27int lttng_ust_safe_closefrom_fd(int lowfd, int (*close_cb)(int));
28
29#endif /* _LTTNG_UST_FD_H */
This page took 0.045804 seconds and 4 git commands to generate.