comparison src/os/unix/ngx_alloc.h @ 2129:25add486e7aa

directio
author Igor Sysoev <igor@sysoev.ru>
date Wed, 30 Jul 2008 12:34:04 +0000
parents 201d017ea470
children d620f497c50f
comparison
equal deleted inserted replaced
2128:345a014436d4 2129:25add486e7aa
19 19
20 20
21 /* 21 /*
22 * Linux has memalign() or posix_memalign() 22 * Linux has memalign() or posix_memalign()
23 * Solaris has memalign() 23 * Solaris has memalign()
24 * FreeBSD has not memalign() or posix_memalign() but its malloc() alignes 24 * FreeBSD 7.0 has posix_memalign(), besides, early version's malloc()
25 * allocations bigger than page size at the page boundary. 25 * aligns allocations bigger than page size at the page boundary
26 */ 26 */
27 27
28 #if (NGX_HAVE_POSIX_MEMALIGN || NGX_HAVE_MEMALIGN) 28 #if (NGX_HAVE_POSIX_MEMALIGN || NGX_HAVE_MEMALIGN)
29 29
30 void *ngx_memalign(size_t alignment, size_t size, ngx_log_t *log); 30 void *ngx_memalign(size_t alignment, size_t size, ngx_log_t *log);