aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-01-05 14:16:50 +0000
committerRon Yorston <rmy@pobox.com>2019-01-05 14:16:50 +0000
commitfa96aa8d70eb1dfd7b3550fab417a43b3a507a6d (patch)
tree2b7d4c0a4a56175018f28e7e116a3dcdfb78e06a /include
parentda7d205446459dfa1ba7bb46206955383dc6a420 (diff)
downloadbusybox-w32-fa96aa8d70eb1dfd7b3550fab417a43b3a507a6d.tar.gz
busybox-w32-fa96aa8d70eb1dfd7b3550fab417a43b3a507a6d.tar.bz2
busybox-w32-fa96aa8d70eb1dfd7b3550fab417a43b3a507a6d.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
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);
482#define GetTickCount64 CompatGetTickCount64 482#define GetTickCount64 CompatGetTickCount64
483 483
484ssize_t get_random_bytes(void *buf, ssize_t count); 484ssize_t get_random_bytes(void *buf, ssize_t count);
485int enumerate_links(const char *file, char *name);