Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_files.h @ 292:a472bfb778b3
nginx-0.0.3-2004-03-17-00:26:01 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Mar 2004 21:26:01 +0000 |
parents | 87e73f067470 |
children | ca9a7f8c86da |
comparison
equal
deleted
inserted
replaced
291:117ccc7c4055 | 292:a472bfb778b3 |
---|---|
57 | 57 |
58 #define ngx_close_file CloseHandle | 58 #define ngx_close_file CloseHandle |
59 #define ngx_close_file_n "CloseHandle()" | 59 #define ngx_close_file_n "CloseHandle()" |
60 | 60 |
61 | 61 |
62 #define ngx_delete_file DeleteFile | 62 #define ngx_delete_file(name) DeleteFile((const char *) name) |
63 #define ngx_delete_file_n "DeleteFile()" | 63 #define ngx_delete_file_n "DeleteFile()" |
64 | 64 |
65 | 65 |
66 #define ngx_rename_file MoveFile | 66 #define ngx_rename_file MoveFile |
67 #define ngx_rename_file_n "MoveFile()" | 67 #define ngx_rename_file_n "MoveFile()" |
68 int ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, ngx_pool_t *pool); | 68 int ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, ngx_pool_t *pool); |
69 | 69 |
70 | 70 |
71 int ngx_file_info(char *filename, ngx_file_info_t *fi); | 71 int ngx_file_info(u_char *filename, ngx_file_info_t *fi); |
72 #define ngx_file_info_n "GetFileAttributesEx()" | 72 #define ngx_file_info_n "GetFileAttributesEx()" |
73 | 73 |
74 | 74 |
75 #define ngx_fd_info(fd, fi) GetFileInformationByHandle(fd, fi) | 75 #define ngx_fd_info(fd, fi) GetFileInformationByHandle(fd, fi) |
76 #define ngx_fd_info_n "GetFileInformationByHandle" | 76 #define ngx_fd_info_n "GetFileInformationByHandle" |
92 (time_t) (((((unsigned __int64) (fi)->ftLastWriteTime.dwHighDateTime << 32) \ | 92 (time_t) (((((unsigned __int64) (fi)->ftLastWriteTime.dwHighDateTime << 32) \ |
93 | (fi)->ftLastWriteTime.dwLowDateTime) \ | 93 | (fi)->ftLastWriteTime.dwLowDateTime) \ |
94 - 116444736000000000) / 10000000) | 94 - 116444736000000000) / 10000000) |
95 | 95 |
96 | 96 |
97 #define NGX_DIR_MASK "/*" | 97 #define NGX_DIR_MASK (u_char *) "/*" |
98 #define NGX_DIR_MASK_LEN 2 | 98 #define NGX_DIR_MASK_LEN 2 |
99 | 99 |
100 | 100 |
101 int ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir); | 101 int ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir); |
102 #define ngx_open_dir_n "FindFirstFile()" | 102 #define ngx_open_dir_n "FindFirstFile()" |
108 | 108 |
109 #define ngx_close_dir(d) FindClose((d)->dir) | 109 #define ngx_close_dir(d) FindClose((d)->dir) |
110 #define ngx_close_dir_n "FindClose()" | 110 #define ngx_close_dir_n "FindClose()" |
111 | 111 |
112 | 112 |
113 #define ngx_create_dir(name) CreateDirectory(name, NULL) | 113 #define ngx_create_dir(name) CreateDirectory((const char *) name, NULL) |
114 #define ngx_create_dir_n "CreateDirectory()" | 114 #define ngx_create_dir_n "CreateDirectory()" |
115 | 115 |
116 | 116 |
117 #define ngx_delete_dir RemoveDirectory | 117 #define ngx_delete_dir(name) RemoveDirectory((const char *) name) |
118 #define ngx_delete_dir_n "RemoveDirectory()" | 118 #define ngx_delete_dir_n "RemoveDirectory()" |
119 | 119 |
120 | 120 |
121 #define ngx_de_name(dir) (dir)->fd.cFileName | 121 #define ngx_de_name(dir) (dir)->fd.cFileName |
122 #define ngx_de_namelen(dir) ngx_strlen((dir)->fd.cFileName) | 122 #define ngx_de_namelen(dir) ngx_strlen((dir)->fd.cFileName) |