From fa96aa8d70eb1dfd7b3550fab417a43b3a507a6d Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 5 Jan 2019 14:16:50 +0000 Subject: busybox: add --uninstall option Add an option to allow hard links to be removed. busybox --uninstall file removes all hard links to the given file (including the file itself.) Since Microsoft Windows refuses to delete a running executable a BusyBox binary is unable to remove links to itself. busybox --uninstall -n file displays the names of all hard links to the given file. Although this feature is couched in terms of uninstalling BusyBox it's actually quite general: it can be used to delete or display hard links to any file. --- include/mingw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index cef53a7c9..b712e4ec0 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -482,3 +482,4 @@ ULONGLONG CompatGetTickCount64(void); #define GetTickCount64 CompatGetTickCount64 ssize_t get_random_bytes(void *buf, ssize_t count); +int enumerate_links(const char *file, char *name); -- cgit v1.2.3-55-g6feb