Mercurial > hg > nginx
comparison src/os/unix/ngx_files.h @ 4485:f7d131008e9c
Disable symlinks: added explicit cast of AT_FDCWD (ticket #111).
Solaris has AT_FDCWD defined to unsigned value, and comparison of a file
descriptor with it causes warnings in modern versions of gcc. Explicitly
cast AT_FDCWD to ngx_fd_t to resolve these warnings.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 20 Feb 2012 19:14:35 +0000 |
parents | 0b05acc045eb |
children | d33ce8cd0d70 |
comparison
equal
deleted
inserted
replaced
4484:f78a29a2f9e6 | 4485:f7d131008e9c |
---|---|
338 #define ngx_file_at_info(fd, name, sb, flag) \ | 338 #define ngx_file_at_info(fd, name, sb, flag) \ |
339 fstatat(fd, (const char *) name, sb, flag) | 339 fstatat(fd, (const char *) name, sb, flag) |
340 | 340 |
341 #define ngx_file_at_info_n "fstatat()" | 341 #define ngx_file_at_info_n "fstatat()" |
342 | 342 |
343 #define NGX_AT_FDCWD (ngx_fd_t) AT_FDCWD | |
344 | |
343 #endif | 345 #endif |
344 | 346 |
345 | 347 |
346 #define ngx_stderr STDERR_FILENO | 348 #define ngx_stderr STDERR_FILENO |
347 #define ngx_set_stderr(fd) dup2(fd, STDERR_FILENO) | 349 #define ngx_set_stderr(fd) dup2(fd, STDERR_FILENO) |