ust-fd: Add close_range declaration stable-2.12
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 May 2024 19:09:17 +0000 (15:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 May 2024 19:10:23 +0000 (15:10 -0400)
Old libc headers do not contain a declaration of close_range(). Emit our
own declaration to prevent compiler warnings.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: If6ca8193895efbb6ce1ba46e092939b8099bcff6

liblttng-ust-fd/lttng-ust-fd.c

index ffa72903900ef7b7f675bd983016b395e0b9c0dc..5a422103511d60c1221adae2aa8d519a30783153 100644 (file)
@@ -158,6 +158,9 @@ int fclose(FILE *stream)
                        __lttng_ust_fd_plibc_fclose);
 }
 
+/* Old libc headers don't contain a close_range() declaration. */
+int close_range(unsigned int first, unsigned int last, int flags);
+
 /*
  * Override the libc close_range() symbol with our own, allowing
  * applications to close arbitrary file descriptors. If the fd is owned
This page took 0.025726 seconds and 4 git commands to generate.