diff options
author | Ron Yorston <rmy@pobox.com> | 2022-05-16 13:56:05 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-05-16 14:03:51 +0100 |
commit | 7eff2ff404f2a4961be927de6bd23b7fb702080e (patch) | |
tree | 04d0e0252e904733a723bb536e9aef3504f0325f /include | |
parent | 7fb95a2a569ca6d68dad4cef5b7b299e9fe68e2b (diff) | |
download | busybox-w32-7eff2ff404f2a4961be927de6bd23b7fb702080e.tar.gz busybox-w32-7eff2ff404f2a4961be927de6bd23b7fb702080e.tar.bz2 busybox-w32-7eff2ff404f2a4961be927de6bd23b7fb702080e.zip |
jn: new applet
Add a Windows-specific applet to create a directory junction.
Usage: jn DIR JUNC
where DIR must be an existing directory on a local drive and JUNC
must not currently exist.
There isn't a simple WIN32 API to create directory junctions.
The implementation of mklink in ReactOS provided useful inspiration.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 5e01b874e..b91fbb531 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -479,6 +479,7 @@ NOIMPL(setuid,uid_t gid UNUSED_PARAM); | |||
479 | NOIMPL(seteuid,uid_t gid UNUSED_PARAM); | 479 | NOIMPL(seteuid,uid_t gid UNUSED_PARAM); |
480 | unsigned int sleep(unsigned int seconds); | 480 | unsigned int sleep(unsigned int seconds); |
481 | int symlink(const char *target, const char *linkpath); | 481 | int symlink(const char *target, const char *linkpath); |
482 | int create_junction(const char *oldpath, const char *newpath); | ||
482 | long sysconf(int name); | 483 | long sysconf(int name); |
483 | IMPL(getpagesize,int,4096,void); | 484 | IMPL(getpagesize,int,4096,void); |
484 | NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); | 485 | NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); |