comparison src/os/unix/ngx_alloc.h @ 441:da8c5707af39

nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
author Igor Sysoev <igor@sysoev.ru>
date Tue, 28 Sep 2004 08:34:51 +0000
parents 55e496a8ece3
children 42d11f017717
comparison
equal deleted inserted replaced
440:f390d1775430 441:da8c5707af39
1
2 /*
3 * Copyright (C) 2002-2004 Igor Sysoev
4 */
5
6
1 #ifndef _NGX_ALLOC_H_INCLUDED_ 7 #ifndef _NGX_ALLOC_H_INCLUDED_
2 #define _NGX_ALLOC_H_INCLUDED_ 8 #define _NGX_ALLOC_H_INCLUDED_
3 9
4 10
5 #include <ngx_config.h> 11 #include <ngx_config.h>
14 20
15 /* 21 /*
16 * Linux has memalign() or posix_memalign() 22 * Linux has memalign() or posix_memalign()
17 * Solaris has memalign() 23 * Solaris has memalign()
18 * FreeBSD has not memalign() or posix_memalign() but its malloc() alignes 24 * FreeBSD has not memalign() or posix_memalign() but its malloc() alignes
19 * allocations bigger than page size at page boundary. 25 * allocations bigger than page size at the page boundary.
20 */ 26 */
21 27
22 #if (HAVE_POSIX_MEMALIGN || HAVE_MEMALIGN) 28 #if (HAVE_POSIX_MEMALIGN || HAVE_MEMALIGN)
23 29
24 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);