Macros | Typedefs | Functions | Variables
win/fs.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <direct.h>
#include <errno.h>
#include <fcntl.h>
#include <io.h>
#include <limits.h>
#include <sys/stat.h>
#include <sys/utime.h>
#include <stdio.h>
#include "uv.h"
#include "internal.h"
#include "req-inl.h"
#include "handle-inl.h"
#include "fs-fd-hash-inl.h"
Include dependency graph for win/fs.c:

Go to the source code of this file.

Macros

#define BILLIONu   (1000U * 1000U * 1000U)
 
#define FILETIME_TO_TIME_NS(filetime, secs)   ((FILETIME_TO_UINT(filetime) - (secs * (uint64_t) 10 * MILLIONu)) * 100U)
 
#define FILETIME_TO_TIME_T(filetime)   (FILETIME_TO_UINT(filetime) / (10u * MILLIONu))
 
#define FILETIME_TO_TIMESPEC(ts, filetime)
 
#define FILETIME_TO_UINT(filetime)   (*((uint64_t*) &(filetime)) - (uint64_t) 116444736 * BILLIONu)
 
#define INIT(subtype)
 
#define IS_LETTER(c)
 
#define IS_SLASH(c)   ((c) == L'\\' || (c) == L'/')
 
#define MILLIONu   (1000U * 1000U)
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define POST
 
#define SET_REQ_RESULT(req, result_value)
 
#define SET_REQ_UV_ERROR(req, uv_errno, sys_errno)
 
#define SET_REQ_WIN32_ERROR(req, sys_errno)
 
#define TIME_T_TO_FILETIME(time, filetime_ptr)
 
#define UV_FS_CLEANEDUP   0x0010
 
#define UV_FS_FREE_PATHS   0x0002
 
#define UV_FS_FREE_PTR   0x0008
 
#define VERIFY_FD(fd, req)
 
#define XX(uc, lc)   case UV_FS_##uc: fs__##lc(req); break;
 

Typedefs

typedef int(* uv__fs_mktemp_func) (uv_fs_t *req)
 

Functions

static void fs__access (uv_fs_t *req)
 
static INLINE int fs__capture_path (uv_fs_t *req, const char *path, const char *new_path, const int copy_path)
 
static void fs__chmod (uv_fs_t *req)
 
static void fs__chown (uv_fs_t *req)
 
void fs__close (uv_fs_t *req)
 
void fs__closedir (uv_fs_t *req)
 
static void fs__copyfile (uv_fs_t *req)
 
static void fs__create_junction (uv_fs_t *req, const WCHAR *path, const WCHAR *new_path)
 
static void fs__fchmod (uv_fs_t *req)
 
static void fs__fchown (uv_fs_t *req)
 
static void fs__fdatasync (uv_fs_t *req)
 
LONG fs__filemap_ex_filter (LONG excode, PEXCEPTION_POINTERS pep, int *perror)
 
static void fs__fstat (uv_fs_t *req)
 
static void fs__fsync (uv_fs_t *req)
 
static void fs__ftruncate (uv_fs_t *req)
 
static void fs__futime (uv_fs_t *req)
 
static void fs__lchown (uv_fs_t *req)
 
static void fs__link (uv_fs_t *req)
 
static void fs__lstat (uv_fs_t *req)
 
static void fs__lutime (uv_fs_t *req)
 
void fs__mkdir (uv_fs_t *req)
 
void fs__mkdtemp (uv_fs_t *req)
 
static int fs__mkdtemp_func (uv_fs_t *req)
 
void fs__mkstemp (uv_fs_t *req)
 
static int fs__mkstemp_func (uv_fs_t *req)
 
void fs__mktemp (uv_fs_t *req, uv__fs_mktemp_func func)
 
void fs__open (uv_fs_t *req)
 
void fs__opendir (uv_fs_t *req)
 
void fs__read (uv_fs_t *req)
 
void fs__read_filemap (uv_fs_t *req, struct uv__fd_info_s *fd_info)
 
void fs__readdir (uv_fs_t *req)
 
static void fs__readlink (uv_fs_t *req)
 
static INLINE int fs__readlink_handle (HANDLE handle, char **target_ptr, uint64_t *target_len_ptr)
 
static void fs__realpath (uv_fs_t *req)
 
static ssize_t fs__realpath_handle (HANDLE handle, char **realpath_ptr)
 
static void fs__rename (uv_fs_t *req)
 
void fs__rmdir (uv_fs_t *req)
 
void fs__scandir (uv_fs_t *req)
 
static void fs__sendfile (uv_fs_t *req)
 
static void fs__stat (uv_fs_t *req)
 
static INLINE int fs__stat_handle (HANDLE handle, uv_stat_t *statbuf, int do_lstat)
 
static INLINE void fs__stat_impl (uv_fs_t *req, int do_lstat)
 
static INLINE DWORD fs__stat_impl_from_path (WCHAR *path, int do_lstat, uv_stat_t *statbuf)
 
static INLINE void fs__stat_prepare_path (WCHAR *pathw)
 
static void fs__statfs (uv_fs_t *req)
 
static void fs__symlink (uv_fs_t *req)
 
static INLINE void fs__sync_impl (uv_fs_t *req)
 
void fs__unlink (uv_fs_t *req)
 
static void fs__utime (uv_fs_t *req)
 
static INLINE int fs__utime_handle (HANDLE handle, double atime, double mtime)
 
static INLINE void fs__utime_impl (uv_fs_t *req, int do_lutime)
 
static INLINE DWORD fs__utime_impl_from_path (WCHAR *path, double atime, double mtime, int do_lutime)
 
static int fs__wide_to_utf8 (WCHAR *w_source_ptr, DWORD w_source_len, char **target_ptr, uint64_t *target_len_ptr)
 
void fs__write (uv_fs_t *req)
 
void fs__write_filemap (uv_fs_t *req, HANDLE file, struct uv__fd_info_s *fd_info)
 
static void uv__fs_done (struct uv__work *w, int status)
 
static void uv__fs_work (struct uv__work *w)
 
int uv_fs_access (uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, uv_fs_cb cb)
 
int uv_fs_chmod (uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
 
int uv_fs_chown (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
 
int uv_fs_close (uv_loop_t *loop, uv_fs_t *req, uv_file fd, uv_fs_cb cb)
 
int uv_fs_closedir (uv_loop_t *loop, uv_fs_t *req, uv_dir_t *dir, uv_fs_cb cb)
 
int uv_fs_copyfile (uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, int flags, uv_fs_cb cb)
 
int uv_fs_fchmod (uv_loop_t *loop, uv_fs_t *req, uv_file fd, int mode, uv_fs_cb cb)
 
int uv_fs_fchown (uv_loop_t *loop, uv_fs_t *req, uv_file fd, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
 
int uv_fs_fdatasync (uv_loop_t *loop, uv_fs_t *req, uv_file fd, uv_fs_cb cb)
 
int uv_fs_fstat (uv_loop_t *loop, uv_fs_t *req, uv_file fd, uv_fs_cb cb)
 
int uv_fs_fsync (uv_loop_t *loop, uv_fs_t *req, uv_file fd, uv_fs_cb cb)
 
int uv_fs_ftruncate (uv_loop_t *loop, uv_fs_t *req, uv_file fd, int64_t offset, uv_fs_cb cb)
 
int uv_fs_futime (uv_loop_t *loop, uv_fs_t *req, uv_file fd, double atime, double mtime, uv_fs_cb cb)
 
void uv_fs_init (void)
 
int uv_fs_lchown (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
 
int uv_fs_link (uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
 
int uv_fs_lstat (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_lutime (uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
 
int uv_fs_mkdir (uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
 
int uv_fs_mkdtemp (uv_loop_t *loop, uv_fs_t *req, const char *tpl, uv_fs_cb cb)
 
int uv_fs_mkstemp (uv_loop_t *loop, uv_fs_t *req, const char *tpl, uv_fs_cb cb)
 
int uv_fs_open (uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, int mode, uv_fs_cb cb)
 
int uv_fs_opendir (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_read (uv_loop_t *loop, uv_fs_t *req, uv_file fd, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
 
int uv_fs_readdir (uv_loop_t *loop, uv_fs_t *req, uv_dir_t *dir, uv_fs_cb cb)
 
int uv_fs_readlink (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_realpath (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_rename (uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
 
void uv_fs_req_cleanup (uv_fs_t *req)
 
static INLINE void uv_fs_req_init (uv_loop_t *loop, uv_fs_t *req, uv_fs_type fs_type, const uv_fs_cb cb)
 
int uv_fs_rmdir (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_scandir (uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, uv_fs_cb cb)
 
int uv_fs_sendfile (uv_loop_t *loop, uv_fs_t *req, uv_file fd_out, uv_file fd_in, int64_t in_offset, size_t length, uv_fs_cb cb)
 
int uv_fs_stat (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_statfs (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
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)
 
int uv_fs_unlink (uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
 
int uv_fs_utime (uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
 
int uv_fs_write (uv_loop_t *loop, uv_fs_t *req, uv_file fd, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
 

Variables

const WCHAR JUNCTION_PREFIX [] = L"\\??\\"
 
const WCHAR JUNCTION_PREFIX_LEN = 4
 
const WCHAR LONG_PATH_PREFIX [] = L"\\\\?\\"
 
const WCHAR LONG_PATH_PREFIX_LEN = 4
 
const WCHAR UNC_PATH_PREFIX [] = L"\\\\?\\UNC\\"
 
const WCHAR UNC_PATH_PREFIX_LEN = 8
 
static DWORD uv__allocation_granularity
 
static int uv__file_symlink_usermode_flag = SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE
 

Macro Definition Documentation

◆ BILLIONu

#define BILLIONu   (1000U * 1000U * 1000U)

Definition at line 99 of file win/fs.c.

◆ FILETIME_TO_TIME_NS

#define FILETIME_TO_TIME_NS (   filetime,
  secs 
)    ((FILETIME_TO_UINT(filetime) - (secs * (uint64_t) 10 * MILLIONu)) * 100U)

Definition at line 107 of file win/fs.c.

◆ FILETIME_TO_TIME_T

#define FILETIME_TO_TIME_T (   filetime)    (FILETIME_TO_UINT(filetime) / (10u * MILLIONu))

Definition at line 104 of file win/fs.c.

◆ FILETIME_TO_TIMESPEC

#define FILETIME_TO_TIMESPEC (   ts,
  filetime 
)
Value:
do { \
(ts).tv_sec = (long) FILETIME_TO_TIME_T(filetime); \
(ts).tv_nsec = (long) FILETIME_TO_TIME_NS(filetime, (ts).tv_sec); \
} while(0)

Definition at line 110 of file win/fs.c.

◆ FILETIME_TO_UINT

#define FILETIME_TO_UINT (   filetime)    (*((uint64_t*) &(filetime)) - (uint64_t) 116444736 * BILLIONu)

Definition at line 101 of file win/fs.c.

◆ INIT

#define INIT (   subtype)
Value:
do { \
if (req == NULL) \
return UV_EINVAL; \
uv_fs_req_init(loop, req, subtype, cb); \
} \
while (0)

Definition at line 45 of file win/fs.c.

◆ IS_LETTER

#define IS_LETTER (   c)
Value:
(((c) >= L'a' && (c) <= L'z') || \
((c) >= L'A' && (c) <= L'Z'))

Definition at line 125 of file win/fs.c.

◆ IS_SLASH

#define IS_SLASH (   c)    ((c) == L'\\' || (c) == L'/')

Definition at line 124 of file win/fs.c.

◆ MILLIONu

#define MILLIONu   (1000U * 1000U)

Definition at line 98 of file win/fs.c.

◆ MIN

#define MIN (   a,
  b 
)    (((a) < (b)) ? (a) : (b))

Definition at line 128 of file win/fs.c.

◆ POST

#define POST
Value:
do { \
if (cb != NULL) { \
uv__req_register(loop, req); \
uv__work_submit(loop, \
&req->work_req, \
return 0; \
} else { \
uv__fs_work(&req->work_req); \
return req->result; \
} \
} \
while (0)

Definition at line 53 of file win/fs.c.

◆ SET_REQ_RESULT

#define SET_REQ_RESULT (   req,
  result_value 
)
Value:
do { \
req->result = (result_value); \
if (req->result == -1) { \
req->sys_errno_ = _doserrno; \
req->result = uv_translate_sys_error(req->sys_errno_); \
} \
} while (0)

Definition at line 70 of file win/fs.c.

◆ SET_REQ_UV_ERROR

#define SET_REQ_UV_ERROR (   req,
  uv_errno,
  sys_errno 
)
Value:
do { \
req->result = (uv_errno); \
req->sys_errno_ = (sys_errno); \
} while (0)

Definition at line 85 of file win/fs.c.

◆ SET_REQ_WIN32_ERROR

#define SET_REQ_WIN32_ERROR (   req,
  sys_errno 
)
Value:
do { \
req->sys_errno_ = (sys_errno); \
req->result = uv_translate_sys_error(req->sys_errno_); \
} while (0)

Definition at line 79 of file win/fs.c.

◆ TIME_T_TO_FILETIME

#define TIME_T_TO_FILETIME (   time,
  filetime_ptr 
)
Value:
do { \
uint64_t bigtime = ((uint64_t) ((time) * (uint64_t) 10 * MILLIONu)) + \
(uint64_t) 116444736 * BILLIONu; \
(filetime_ptr)->dwLowDateTime = bigtime & 0xFFFFFFFF; \
(filetime_ptr)->dwHighDateTime = bigtime >> 32; \
} while(0)

Definition at line 116 of file win/fs.c.

◆ UV_FS_CLEANEDUP

#define UV_FS_CLEANEDUP   0x0010

Definition at line 42 of file win/fs.c.

◆ UV_FS_FREE_PATHS

#define UV_FS_FREE_PATHS   0x0002

Definition at line 40 of file win/fs.c.

◆ UV_FS_FREE_PTR

#define UV_FS_FREE_PTR   0x0008

Definition at line 41 of file win/fs.c.

◆ VERIFY_FD

#define VERIFY_FD (   fd,
  req 
)
Value:
if (fd == -1) { \
req->result = UV_EBADF; \
req->sys_errno_ = ERROR_INVALID_HANDLE; \
return; \
}

Definition at line 91 of file win/fs.c.

◆ XX

#define XX (   uc,
  lc 
)    case UV_FS_##uc: fs__##lc(req); break;

Typedef Documentation

◆ uv__fs_mktemp_func

typedef int(* uv__fs_mktemp_func) (uv_fs_t *req)

Definition at line 1198 of file win/fs.c.

Function Documentation

◆ fs__access()

static void fs__access ( uv_fs_t req)
static

Definition at line 2097 of file win/fs.c.

◆ fs__capture_path()

static INLINE int fs__capture_path ( uv_fs_t req,
const char *  path,
const char *  new_path,
const int  copy_path 
)
static

Definition at line 154 of file win/fs.c.

◆ fs__chmod()

static void fs__chmod ( uv_fs_t req)
static

Definition at line 2123 of file win/fs.c.

◆ fs__chown()

static void fs__chown ( uv_fs_t req)
static

Definition at line 2641 of file win/fs.c.

◆ fs__close()

void fs__close ( uv_fs_t req)

Definition at line 673 of file win/fs.c.

◆ fs__closedir()

void fs__closedir ( uv_fs_t req)

Definition at line 1652 of file win/fs.c.

◆ fs__copyfile()

static void fs__copyfile ( uv_fs_t req)
static

Definition at line 2013 of file win/fs.c.

◆ fs__create_junction()

static void fs__create_junction ( uv_fs_t req,
const WCHAR *  path,
const WCHAR *  new_path 
)
static

Definition at line 2326 of file win/fs.c.

◆ fs__fchmod()

static void fs__fchmod ( uv_fs_t req)
static

Definition at line 2129 of file win/fs.c.

◆ fs__fchown()

static void fs__fchown ( uv_fs_t req)
static

Definition at line 2646 of file win/fs.c.

◆ fs__fdatasync()

static void fs__fdatasync ( uv_fs_t req)
static

Definition at line 1932 of file win/fs.c.

◆ fs__filemap_ex_filter()

LONG fs__filemap_ex_filter ( LONG  excode,
PEXCEPTION_POINTERS  pep,
int perror 
)

Definition at line 703 of file win/fs.c.

◆ fs__fstat()

static void fs__fstat ( uv_fs_t req)
static

Definition at line 1879 of file win/fs.c.

◆ fs__fsync()

static void fs__fsync ( uv_fs_t req)
static

Definition at line 1927 of file win/fs.c.

◆ fs__ftruncate()

static void fs__ftruncate ( uv_fs_t req)
static

Definition at line 1937 of file win/fs.c.

◆ fs__futime()

static void fs__futime ( uv_fs_t req)
static

Definition at line 2291 of file win/fs.c.

◆ fs__lchown()

static void fs__lchown ( uv_fs_t req)
static

Definition at line 2651 of file win/fs.c.

◆ fs__link()

static void fs__link ( uv_fs_t req)
static

Definition at line 2316 of file win/fs.c.

◆ fs__lstat()

static void fs__lstat ( uv_fs_t req)
static

Definition at line 1873 of file win/fs.c.

◆ fs__lutime()

static void fs__lutime ( uv_fs_t req)
static

Definition at line 2311 of file win/fs.c.

◆ fs__mkdir()

void fs__mkdir ( uv_fs_t req)

Definition at line 1187 of file win/fs.c.

◆ fs__mkdtemp()

void fs__mkdtemp ( uv_fs_t req)

Definition at line 1259 of file win/fs.c.

◆ fs__mkdtemp_func()

static int fs__mkdtemp_func ( uv_fs_t req)
static

Definition at line 1246 of file win/fs.c.

◆ fs__mkstemp()

void fs__mkstemp ( uv_fs_t req)

Definition at line 1312 of file win/fs.c.

◆ fs__mkstemp_func()

static int fs__mkstemp_func ( uv_fs_t req)
static

Definition at line 1264 of file win/fs.c.

◆ fs__mktemp()

void fs__mktemp ( uv_fs_t req,
uv__fs_mktemp_func  func 
)

Definition at line 1201 of file win/fs.c.

◆ fs__open()

void fs__open ( uv_fs_t req)

Definition at line 418 of file win/fs.c.

◆ fs__opendir()

void fs__opendir ( uv_fs_t req)

Definition at line 1529 of file win/fs.c.

◆ fs__read()

void fs__read ( uv_fs_t req)

Definition at line 820 of file win/fs.c.

◆ fs__read_filemap()

void fs__read_filemap ( uv_fs_t req,
struct uv__fd_info_s fd_info 
)

Definition at line 723 of file win/fs.c.

◆ fs__readdir()

void fs__readdir ( uv_fs_t req)

Definition at line 1588 of file win/fs.c.

◆ fs__readlink()

static void fs__readlink ( uv_fs_t req)
static

Definition at line 2537 of file win/fs.c.

◆ fs__readlink_handle()

static INLINE int fs__readlink_handle ( HANDLE  handle,
char **  target_ptr,
uint64_t target_len_ptr 
)
static

Definition at line 317 of file win/fs.c.

◆ fs__realpath()

static void fs__realpath ( uv_fs_t req)
static

Definition at line 2614 of file win/fs.c.

◆ fs__realpath_handle()

static ssize_t fs__realpath_handle ( HANDLE  handle,
char **  realpath_ptr 
)
static

Definition at line 2566 of file win/fs.c.

◆ fs__rename()

static void fs__rename ( uv_fs_t req)
static

Definition at line 1902 of file win/fs.c.

◆ fs__rmdir()

void fs__rmdir ( uv_fs_t req)

Definition at line 1094 of file win/fs.c.

◆ fs__scandir()

void fs__scandir ( uv_fs_t req)

Definition at line 1317 of file win/fs.c.

◆ fs__sendfile()

static void fs__sendfile ( uv_fs_t req)
static

Definition at line 2050 of file win/fs.c.

◆ fs__stat()

static void fs__stat ( uv_fs_t req)
static

Definition at line 1867 of file win/fs.c.

◆ fs__stat_handle()

static INLINE int fs__stat_handle ( HANDLE  handle,
uv_stat_t statbuf,
int  do_lstat 
)
static

Definition at line 1661 of file win/fs.c.

◆ fs__stat_impl()

static INLINE void fs__stat_impl ( uv_fs_t req,
int  do_lstat 
)
static

Definition at line 1844 of file win/fs.c.

◆ fs__stat_impl_from_path()

static INLINE DWORD fs__stat_impl_from_path ( WCHAR *  path,
int  do_lstat,
uv_stat_t statbuf 
)
static

Definition at line 1813 of file win/fs.c.

◆ fs__stat_prepare_path()

static INLINE void fs__stat_prepare_path ( WCHAR *  pathw)
static

Definition at line 1802 of file win/fs.c.

◆ fs__statfs()

static void fs__statfs ( uv_fs_t req)
static

Definition at line 2656 of file win/fs.c.

◆ fs__symlink()

static void fs__symlink ( uv_fs_t req)
static

Definition at line 2496 of file win/fs.c.

◆ fs__sync_impl()

static INLINE void fs__sync_impl ( uv_fs_t req)
static

Definition at line 1912 of file win/fs.c.

◆ fs__unlink()

void fs__unlink ( uv_fs_t req)

Definition at line 1100 of file win/fs.c.

◆ fs__utime()

static void fs__utime ( uv_fs_t req)
static

Definition at line 2286 of file win/fs.c.

◆ fs__utime_handle()

static INLINE int fs__utime_handle ( HANDLE  handle,
double  atime,
double  mtime 
)
static

Definition at line 2215 of file win/fs.c.

◆ fs__utime_impl()

static INLINE void fs__utime_impl ( uv_fs_t req,
int  do_lutime 
)
static

Definition at line 2261 of file win/fs.c.

◆ fs__utime_impl_from_path()

static INLINE DWORD fs__utime_impl_from_path ( WCHAR *  path,
double  atime,
double  mtime,
int  do_lutime 
)
static

Definition at line 2228 of file win/fs.c.

◆ fs__wide_to_utf8()

static int fs__wide_to_utf8 ( WCHAR *  w_source_ptr,
DWORD  w_source_len,
char **  target_ptr,
uint64_t target_len_ptr 
)
static

Definition at line 268 of file win/fs.c.

◆ fs__write()

void fs__write ( uv_fs_t req)

Definition at line 1023 of file win/fs.c.

◆ fs__write_filemap()

void fs__write_filemap ( uv_fs_t req,
HANDLE  file,
struct uv__fd_info_s fd_info 
)

Definition at line 898 of file win/fs.c.

◆ uv__fs_done()

static void uv__fs_done ( struct uv__work w,
int  status 
)
static

Definition at line 2789 of file win/fs.c.

◆ uv__fs_work()

static void uv__fs_work ( struct uv__work w)
static

Definition at line 2739 of file win/fs.c.

◆ uv_fs_access()

int uv_fs_access ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
int  flags,
uv_fs_cb  cb 
)

Definition at line 3246 of file win/fs.c.

◆ uv_fs_chmod()

int uv_fs_chmod ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
int  mode,
uv_fs_cb  cb 
)

Definition at line 3263 of file win/fs.c.

◆ uv_fs_chown()

int uv_fs_chown ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_uid_t  uid,
uv_gid_t  gid,
uv_fs_cb  cb 
)

Definition at line 3105 of file win/fs.c.

◆ uv_fs_close()

int uv_fs_close ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
uv_fs_cb  cb 
)

Definition at line 2852 of file win/fs.c.

◆ uv_fs_closedir()

int uv_fs_closedir ( uv_loop_t loop,
uv_fs_t req,
uv_dir_t dir,
uv_fs_cb  cb 
)

Definition at line 3032 of file win/fs.c.

◆ uv_fs_copyfile()

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

Definition at line 3209 of file win/fs.c.

◆ uv_fs_fchmod()

int uv_fs_fchmod ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
int  mode,
uv_fs_cb  cb 
)

Definition at line 3278 of file win/fs.c.

◆ uv_fs_fchown()

int uv_fs_fchown ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
uv_uid_t  uid,
uv_gid_t  gid,
uv_fs_cb  cb 
)

Definition at line 3119 of file win/fs.c.

◆ uv_fs_fdatasync()

int uv_fs_fdatasync ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
uv_fs_cb  cb 
)

Definition at line 3193 of file win/fs.c.

◆ uv_fs_fstat()

int uv_fs_fstat ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
uv_fs_cb  cb 
)

Definition at line 3165 of file win/fs.c.

◆ uv_fs_fsync()

int uv_fs_fsync ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
uv_fs_cb  cb 
)

Definition at line 3186 of file win/fs.c.

◆ uv_fs_ftruncate()

int uv_fs_ftruncate ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
int64_t  offset,
uv_fs_cb  cb 
)

Definition at line 3200 of file win/fs.c.

◆ uv_fs_futime()

int uv_fs_futime ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
double  atime,
double  mtime,
uv_fs_cb  cb 
)

Definition at line 3303 of file win/fs.c.

◆ uv_fs_init()

void uv_fs_init ( void  )

Definition at line 144 of file win/fs.c.

◆ uv_fs_lchown()

int uv_fs_lchown ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_uid_t  uid,
uv_gid_t  gid,
uv_fs_cb  cb 
)

Definition at line 3126 of file win/fs.c.

◆ uv_fs_link()

int uv_fs_link ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
const char *  new_path,
uv_fs_cb  cb 
)

Definition at line 3043 of file win/fs.c.

◆ uv_fs_lstat()

int uv_fs_lstat ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 3152 of file win/fs.c.

◆ uv_fs_lutime()

int uv_fs_lutime ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
double  atime,
double  mtime,
uv_fs_cb  cb 
)

Definition at line 3312 of file win/fs.c.

◆ uv_fs_mkdir()

int uv_fs_mkdir ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
int  mode,
uv_fs_cb  cb 
)

Definition at line 2931 of file win/fs.c.

◆ uv_fs_mkdtemp()

int uv_fs_mkdtemp ( uv_loop_t loop,
uv_fs_t req,
const char *  tpl,
uv_fs_cb  cb 
)

Definition at line 2946 of file win/fs.c.

◆ uv_fs_mkstemp()

int uv_fs_mkstemp ( uv_loop_t loop,
uv_fs_t req,
const char *  tpl,
uv_fs_cb  cb 
)

Definition at line 2961 of file win/fs.c.

◆ uv_fs_open()

int uv_fs_open ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
int  flags,
int  mode,
uv_fs_cb  cb 
)

Definition at line 2836 of file win/fs.c.

◆ uv_fs_opendir()

int uv_fs_opendir ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 3003 of file win/fs.c.

◆ uv_fs_read()

int uv_fs_read ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
const uv_buf_t  bufs[],
unsigned int  nbufs,
int64_t  offset,
uv_fs_cb  cb 
)

Definition at line 2859 of file win/fs.c.

◆ uv_fs_readdir()

int uv_fs_readdir ( uv_loop_t loop,
uv_fs_t req,
uv_dir_t dir,
uv_fs_cb  cb 
)

Definition at line 3016 of file win/fs.c.

◆ uv_fs_readlink()

int uv_fs_readlink ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 3072 of file win/fs.c.

◆ uv_fs_realpath()

int uv_fs_realpath ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 3086 of file win/fs.c.

◆ uv_fs_rename()

int uv_fs_rename ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
const char *  new_path,
uv_fs_cb  cb 
)

Definition at line 3172 of file win/fs.c.

◆ uv_fs_req_cleanup()

void uv_fs_req_cleanup ( uv_fs_t req)

Definition at line 2804 of file win/fs.c.

◆ uv_fs_req_init()

static INLINE void uv_fs_req_init ( uv_loop_t loop,
uv_fs_t req,
uv_fs_type  fs_type,
const uv_fs_cb  cb 
)
static

Definition at line 253 of file win/fs.c.

◆ uv_fs_rmdir()

int uv_fs_rmdir ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 2976 of file win/fs.c.

◆ uv_fs_scandir()

int uv_fs_scandir ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
int  flags,
uv_fs_cb  cb 
)

Definition at line 2989 of file win/fs.c.

◆ uv_fs_sendfile()

int uv_fs_sendfile ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd_out,
uv_file  fd_in,
int64_t  in_offset,
size_t  length,
uv_fs_cb  cb 
)

Definition at line 3235 of file win/fs.c.

◆ uv_fs_stat()

int uv_fs_stat ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 3139 of file win/fs.c.

◆ uv_fs_statfs()

int uv_fs_statfs ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 3328 of file win/fs.c.

◆ uv_fs_symlink()

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 
)

Definition at line 3057 of file win/fs.c.

◆ uv_fs_unlink()

int uv_fs_unlink ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
uv_fs_cb  cb 
)

Definition at line 2917 of file win/fs.c.

◆ uv_fs_utime()

int uv_fs_utime ( uv_loop_t loop,
uv_fs_t req,
const char *  path,
double  atime,
double  mtime,
uv_fs_cb  cb 
)

Definition at line 3287 of file win/fs.c.

◆ uv_fs_write()

int uv_fs_write ( uv_loop_t loop,
uv_fs_t req,
uv_file  fd,
const uv_buf_t  bufs[],
unsigned int  nbufs,
int64_t  offset,
uv_fs_cb  cb 
)

Definition at line 2888 of file win/fs.c.

Variable Documentation

◆ JUNCTION_PREFIX

const WCHAR JUNCTION_PREFIX[] = L"\\??\\"

Definition at line 130 of file win/fs.c.

◆ JUNCTION_PREFIX_LEN

const WCHAR JUNCTION_PREFIX_LEN = 4

Definition at line 131 of file win/fs.c.

◆ LONG_PATH_PREFIX

const WCHAR LONG_PATH_PREFIX[] = L"\\\\?\\"

Definition at line 133 of file win/fs.c.

◆ LONG_PATH_PREFIX_LEN

const WCHAR LONG_PATH_PREFIX_LEN = 4

Definition at line 134 of file win/fs.c.

◆ UNC_PATH_PREFIX

const WCHAR UNC_PATH_PREFIX[] = L"\\\\?\\UNC\\"

Definition at line 136 of file win/fs.c.

◆ UNC_PATH_PREFIX_LEN

const WCHAR UNC_PATH_PREFIX_LEN = 8

Definition at line 137 of file win/fs.c.

◆ uv__allocation_granularity

DWORD uv__allocation_granularity
static

Definition at line 141 of file win/fs.c.

◆ uv__file_symlink_usermode_flag

int uv__file_symlink_usermode_flag = SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE
static

Definition at line 139 of file win/fs.c.

async_greeter_server_with_graceful_shutdown.loop
loop
Definition: async_greeter_server_with_graceful_shutdown.py:59
FILETIME_TO_TIME_NS
#define FILETIME_TO_TIME_NS(filetime, secs)
Definition: win/fs.c:107
BILLIONu
#define BILLIONu
Definition: win/fs.c:99
uv__fs_work
static void uv__fs_work(struct uv__work *w)
Definition: win/fs.c:2739
MILLIONu
#define MILLIONu
Definition: win/fs.c:98
FILETIME_TO_TIME_T
#define FILETIME_TO_TIME_T(filetime)
Definition: win/fs.c:104
uv__fs_done
static void uv__fs_done(struct uv__work *w, int status)
Definition: win/fs.c:2789
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
req
static uv_connect_t req
Definition: test-connection-fail.c:30
uv_translate_sys_error
UV_EXTERN int uv_translate_sys_error(int sys_errno)
Definition: unix/core.c:1244
uint64_t
unsigned __int64 uint64_t
Definition: stdint-msvc2008.h:90
filetime
uLong filetime(char *f, tm_zip *tmzip, uLong *dt)
Definition: bloaty/third_party/zlib/contrib/minizip/minizip.c:140
L
lua_State * L
Definition: upb/upb/bindings/lua/main.c:35
UV__WORK_FAST_IO
@ UV__WORK_FAST_IO
Definition: uv-common.h:180
cb
OPENSSL_EXPORT pem_password_cb * cb
Definition: pem.h:351


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:13