diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-09-27 15:53:41 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-09-27 15:53:41 +0400 |
commit | 67366142750f08752d1b3fb2e9500e6d1c2831fb (patch) | |
tree | e4823f9677549777f2fd4a273b8ec4a3859ed76e /src/os | |
parent | 0100cbc5f355478646c9c0c4a7d0a6ccd0e5aca3 (diff) |
$realpath_root
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/unix/ngx_files.h | 2 | ||||
-rw-r--r-- | src/os/win32/ngx_files.c | 8 | ||||
-rw-r--r-- | src/os/win32/ngx_files.h | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index d7a38d95a..d8182b4b6 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -145,6 +145,8 @@ ngx_int_t ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s); #endif +#define ngx_realpath(p, r) realpath((char *) p, (char *) r) +#define ngx_realpath_n "realpath()" #define ngx_getcwd(buf, size) (getcwd(buf, size) != NULL) #define ngx_getcwd_n "getcwd()" #define NGX_MAX_PATH PATH_MAX diff --git a/src/os/win32/ngx_files.c b/src/os/win32/ngx_files.c index cbba0bbfb..c2dda2ae3 100644 --- a/src/os/win32/ngx_files.c +++ b/src/os/win32/ngx_files.c @@ -318,6 +318,14 @@ ngx_file_info(u_char *file, ngx_file_info_t *sb) } +char * +ngx_realpath(u_char *path, u_char *resolved) +{ + /* STUB */ + return (char *) path; +} + + ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir) { diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index 95ea65b67..174c6f574 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -156,6 +156,8 @@ ngx_int_t ngx_file_info(u_char *filename, ngx_file_info_t *fi); #define ngx_filename_cmp(s1, s2, n) _strnicmp((char *) s1, (char *) s2, n) +char *ngx_realpath(u_char *path, u_char *resolved); +#define ngx_realpath_n "" #define ngx_getcwd(buf, size) GetCurrentDirectory(size, buf) #define ngx_getcwd_n "GetCurrentDirectory()" #define NGX_MAX_PATH MAX_PATH |