MCPcopy Create free account
hub / github.com/F-Stack/f-stack / linker_basename

Function linker_basename

freebsd/kern/kern_linker.c:2015–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2013}
2014
2015static const char *
2016linker_basename(const char *path)
2017{
2018 const char *filename;
2019
2020 filename = strrchr(path, '/');
2021 if (filename == NULL)
2022 return path;
2023 if (filename[1])
2024 filename++;
2025 return (filename);
2026}
2027
2028#ifdef HWPMC_HOOKS
2029/*

Callers 3

linker_make_fileFunction · 0.85
sys_kldfindFunction · 0.85
linker_load_moduleFunction · 0.85

Calls 1

strrchrFunction · 0.85

Tested by

no test coverage detected