Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
windows: support junctions with uv_fs_synlink
based on @piscisaureus implementation
  • Loading branch information
Igor Zinkovsky committed May 17, 2012
1 parent 9efa8b3 commit 60af28a
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 39 deletions.
4 changes: 4 additions & 0 deletions include/uv-private/uv-win.h
Expand Up @@ -36,6 +36,10 @@

#define MAX_PIPENAME_LEN 256

#ifndef S_IFLNK
# define S_IFLNK 0xA000
#endif

/*
* Guids and typedefs for winsock extension functions
* Mingw32 doesn't have these :-(
Expand Down
6 changes: 6 additions & 0 deletions include/uv.h
Expand Up @@ -1441,6 +1441,12 @@ UV_EXTERN int uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char* path,
*/
#define UV_FS_SYMLINK_DIR 0x0001

/*
* This flag can be used with uv_fs_symlink on Windows
* to specify whether the symlink is to be created using junction points.
*/
#define UV_FS_SYMLINK_JUNCTION 0x0002

UV_EXTERN int uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char* path,
const char* new_path, int flags, uv_fs_cb cb);

Expand Down

0 comments on commit 60af28a

Please sign in to comment.