| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_PROCESS_PATH_H |
| 4 | #define NETDATA_PROCESS_PATH_H |
| 5 | |
| 6 | #include "libnetdata/libnetdata.h" |
| 7 | |
| 8 | // Get the full path of the current process executable |
| 9 | // Returns a malloced string that must be freed by the caller |
| 10 | // Returns NULL on error |
| 11 | char *os_get_process_path(void); |
| 12 | |
| 13 | #endif //NETDATA_PROCESS_PATH_H |