aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-02-12 14:11:01 +0000
committerRon Yorston <rmy@pobox.com>2021-02-12 14:11:01 +0000
commit7587b56c10a4d11fe434e3eaa51212113f09ec10 (patch)
tree219264f8c4079d13ab8c29d9d90f04b22e6470bc /include
parent1b61a02b5139a47e2e3ac8be5afca325d7b3cea7 (diff)
downloadbusybox-w32-7587b56c10a4d11fe434e3eaa51212113f09ec10.tar.gz
busybox-w32-7587b56c10a4d11fe434e3eaa51212113f09ec10.tar.bz2
busybox-w32-7587b56c10a4d11fe434e3eaa51212113f09ec10.zip
win32: implement symlink(2)
Provide an implementation of symlink(2). Calls to symlink(2) will fail in default Windows installations unless running with elevated privileges. Failure to create a symlink when extracting files from an archive is therefore treated as a non-fatal error. There are two ways to permit the creation of symlinks: - Edit security policy to give users the 'Create symbolic links' privilege. Unfortunately this doesn't work for users who are an Administrator. - Enable developer mode, which is available in later versions of Windows 10. The ability to create symlinks is not available in Windows XP or ReactOS.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 713205ef9..e2c02babf 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -440,7 +440,7 @@ NOIMPL(setsid,void);
440NOIMPL(setuid,uid_t gid UNUSED_PARAM); 440NOIMPL(setuid,uid_t gid UNUSED_PARAM);
441NOIMPL(seteuid,uid_t gid UNUSED_PARAM); 441NOIMPL(seteuid,uid_t gid UNUSED_PARAM);
442unsigned int sleep(unsigned int seconds); 442unsigned int sleep(unsigned int seconds);
443NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); 443int symlink(const char *target, const char *linkpath);
444static inline void sync(void) {} 444static inline void sync(void) {}
445long sysconf(int name); 445long sysconf(int name);
446IMPL(getpagesize,int,4096,void); 446IMPL(getpagesize,int,4096,void);