Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-fd / lttng-ust-fd.c
index 4818e02ed81436a524d1f39c4af59594e538b230..02a6f33c48da383969b9cfa97bc63438498d3d6d 100644 (file)
@@ -1,22 +1,9 @@
 /*
- * Copyright (C) 2016  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+ * Copyright (C) 2016  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <limits.h>
 #include <stdio.h>
@@ -77,13 +64,13 @@ int fclose(FILE *stream)
 /* Solaris and FreeBSD. */
 void closefrom(int lowfd)
 {
-       (void) lttng_ust_safe_closefrom(lowfd, __lttng_ust_fd_plibc_close);
+       (void) lttng_ust_safe_closefrom_fd(lowfd, __lttng_ust_fd_plibc_close);
 }
 #elif defined(__NetBSD__) || defined(__OpenBSD__)
 /* NetBSD and OpenBSD. */
 int closefrom(int lowfd)
 {
-       return lttng_ust_safe_closefrom(lowfd, __lttng_ust_fd_plibc_close);
+       return lttng_ust_safe_closefrom_fd(lowfd, __lttng_ust_fd_plibc_close);
 }
 #else
 /* As far as we know, this OS does not implement closefrom. */
This page took 0.023906 seconds and 4 git commands to generate.