X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffd-tracker%2Futils.c;fp=src%2Fcommon%2Ffd-tracker%2Futils.c;h=ac4e882c7d3b3e818edb8e216ed8130d3456a07b;hp=0000000000000000000000000000000000000000;hb=df038819ef174fb8b0d5a76c293a3b94ce2a43b9;hpb=c04077180977834684b367f97afa22a79fcbd471 diff --git a/src/common/fd-tracker/utils.c b/src/common/fd-tracker/utils.c new file mode 100644 index 000000000..ac4e882c7 --- /dev/null +++ b/src/common/fd-tracker/utils.c @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2018 - Jérémie Galarneau + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2 only, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include +#include + +int fd_tracker_util_close_fd(void *unused, int *fd) +{ + return close(*fd); +}