summaryrefslogtreecommitdiff
path: root/src/win32/posix_w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/posix_w32.c')
-rw-r--r--src/win32/posix_w32.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index a7df424df..d9a68f284 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -17,7 +17,7 @@
int p_unlink(const char *path)
{
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
_wchmod(buf, 0666);
return _wunlink(buf);
}
@@ -63,7 +63,7 @@ static int do_lstat(
wchar_t lastch;
int flen;
- flen = git__utf8_to_16(fbuf, file_name);
+ flen = git__win32_path_utf8_to_16(fbuf, file_name);
/* truncate trailing slashes */
for (; flen > 0; --flen) {
@@ -189,7 +189,7 @@ int p_readlink(const char *link, char *target, size_t target_len)
}
}
- git__utf8_to_16(link_w, link);
+ git__win32_path_utf8_to_16(link_w, link);
hFile = CreateFileW(link_w, // file to open
GENERIC_READ, // open for reading
@@ -258,7 +258,7 @@ int p_open(const char *path, int flags, ...)
git_win32_path_utf16 buf;
mode_t mode = 0;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
if (flags & O_CREAT) {
va_list arg_list;
@@ -274,7 +274,7 @@ int p_open(const char *path, int flags, ...)
int p_creat(const char *path, mode_t mode)
{
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
return _wopen(buf, _O_WRONLY | _O_CREAT | _O_TRUNC | _O_BINARY, mode);
}
@@ -317,14 +317,14 @@ int p_stat(const char* path, struct stat* buf)
int p_chdir(const char* path)
{
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
return _wchdir(buf);
}
int p_chmod(const char* path, mode_t mode)
{
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
return _wchmod(buf, mode);
}
@@ -332,7 +332,7 @@ int p_rmdir(const char* path)
{
int error;
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
error = _wrmdir(buf);
@@ -349,7 +349,7 @@ int p_rmdir(const char* path)
int p_hide_directory__w32(const char *path)
{
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
return (SetFileAttributesW(buf, FILE_ATTRIBUTE_HIDDEN) != 0) ? 0 : -1;
}
@@ -359,7 +359,7 @@ char *p_realpath(const char *orig_path, char *buffer)
git_win32_path_utf16 orig_path_w;
git_win32_path_utf16 buffer_w;
- git__utf8_to_16(orig_path_w, orig_path);
+ git__win32_path_utf8_to_16(orig_path_w, orig_path);
/* Implicitly use GetCurrentDirectory which can be a threading issue */
ret = GetFullPathNameW(orig_path_w, GIT_WIN_PATH_UTF16, buffer_w, NULL);
@@ -450,7 +450,7 @@ int p_setenv(const char* name, const char* value, int overwrite)
int p_access(const char* path, mode_t mode)
{
git_win32_path_utf16 buf;
- git__utf8_to_16(buf, path);
+ git__win32_path_utf8_to_16(buf, path);
return _waccess(buf, mode);
}
@@ -459,8 +459,8 @@ int p_rename(const char *from, const char *to)
git_win32_path_utf16 wfrom;
git_win32_path_utf16 wto;
- git__utf8_to_16(wfrom, from);
- git__utf8_to_16(wto, to);
+ git__win32_path_utf8_to_16(wfrom, from);
+ git__win32_path_utf8_to_16(wto, to);
return MoveFileExW(wfrom, wto, MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED) ? 0 : -1;
}