Elliott Hughes | 13da600 | 2025-02-03 10:42:13 -0800 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // SPDX-License-Identifier: BSD-2-Clause |
Elliott Hughes | 21b56eb | 2017-10-20 17:57:17 -0700 | [diff] [blame] | 3 | |
| 4 | #include <libgen.h> |
| 5 | |
| 6 | #include "header_checks.h" |
| 7 | |
| 8 | static void libgen_h() { |
| 9 | #if defined(__BIONIC__) // bionic doesn't modify its argument, and admits as much. |
| 10 | FUNCTION(basename, char* (*f)(const char*)); |
| 11 | FUNCTION(dirname, char* (*f)(const char*)); |
| 12 | #else |
| 13 | FUNCTION(basename, char* (*f)(char*)); |
| 14 | FUNCTION(dirname, char* (*f)(char*)); |
| 15 | #endif |
| 16 | } |