Searched refs:size (Results 1 - 25 of 165) sorted by relevance

1234567

/tldk/app/nginx/src/os/win32/
H A Dngx_alloc.h16 void *ngx_alloc(size_t size, ngx_log_t *log);
17 void *ngx_calloc(size_t size, ngx_log_t *log);
20 #define ngx_memalign(alignment, size, log) ngx_alloc(size, log)
H A Dngx_alloc.c17 void *ngx_alloc(size_t size, ngx_log_t *log) argument
21 p = malloc(size);
24 "malloc(%uz) failed", size);
27 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size);
33 void *ngx_calloc(size_t size, ngx_log_t *log) argument
37 p = ngx_alloc(size, log);
40 ngx_memzero(p, size);
H A Dngx_errno.c13 ngx_strerror(ngx_err_t err, u_char *errstr, size_t size) argument
18 if (size == 0) {
23 NULL, err, lang, (char *) errstr, size, NULL);
37 NULL, err, lang, (char *) errstr, size, NULL);
41 return ngx_snprintf(errstr, size,
H A Dngx_os.h19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
22 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
42 ssize_t ngx_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
43 ssize_t ngx_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
44 ssize_t ngx_udp_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
46 size_t size);
48 ssize_t ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size);
49 ssize_t ngx_overlapped_wsasend(ngx_connection_t *c, u_char *buf, size_t size);
H A Dngx_wsarecv_chain.c22 size_t n, size; local
32 size = 0;
37 vec.size = sizeof(WSABUF);
47 if (size >= (size_t) limit) {
51 if (size + n > (size_t) limit) {
52 n = (size_t) limit - size;
69 size += n;
97 if (bytes < size) {
H A Dngx_shmem.c48 uint64_t size; local
60 size = shm->size;
63 (u_long) (size >> 32),
64 (u_long) (size & 0xffffffff),
70 shm->size, name);
85 base += ngx_align(size, ngx_allocation_granularity);
92 shm->size, base, &shm->name);
111 shm->size, &shm->name);
141 shm->size, add
[all...]
H A Dngx_wsasend.c14 ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size) argument
34 wsabuf.len = size;
41 "WSASend: fd:%d, %d, %ul of %uz", c->fd, n, sent, size);
44 if (sent < size) {
69 ngx_overlapped_wsasend(ngx_connection_t *c, u_char *buf, size_t size) argument
97 wsabuf.len = size;
107 "WSASend: fd:%d, %d, %ul of %uz", c->fd, n, sent, size);
124 if (sent < size) {
176 c->fd, sent, size);
178 if (sent < size) {
[all...]
/tldk/app/nginx/src/os/unix/
H A Dngx_alloc.h16 void *ngx_alloc(size_t size, ngx_log_t *log);
17 void *ngx_calloc(size_t size, ngx_log_t *log);
26 * aligns allocations bigger than page size at the page boundary
31 void *ngx_memalign(size_t alignment, size_t size, ngx_log_t *log);
35 #define ngx_memalign(alignment, size, log) ngx_alloc(size, log)
H A Dngx_alloc.c18 ngx_alloc(size_t size, ngx_log_t *log) argument
22 p = malloc(size);
25 "malloc(%uz) failed", size);
28 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size);
35 ngx_calloc(size_t size, ngx_log_t *log) argument
39 p = ngx_alloc(size, log);
42 ngx_memzero(p, size);
52 ngx_memalign(size_t alignment, size_t size, ngx_log_t *log) argument
57 err = posix_memalign(&p, alignment, size);
61 "posix_memalign(%uz, %uz) failed", alignment, size);
74 ngx_memalign(size_t alignment, size_t size, ngx_log_t *log) argument
[all...]
H A Dngx_setproctitle.c38 size_t size; local
41 size = 0;
44 size += ngx_strlen(environ[i]) + 1;
47 p = ngx_alloc(size, log);
63 size = ngx_strlen(environ[i]) + 1;
64 ngx_os_argv_last = environ[i] + size;
66 ngx_cpystrn(p, (u_char *) environ[i], size);
68 p += size;
86 size_t size; local
99 size
[all...]
H A Dngx_freebsd_init.c50 size_t size; member in struct:__anon382
105 size_t size; local
109 size = sizeof(ngx_freebsd_kern_ostype);
111 ngx_freebsd_kern_ostype, &size, NULL, 0) == -1) {
119 ngx_freebsd_kern_ostype[size - 1] = '\0';
122 size = sizeof(ngx_freebsd_kern_osrelease);
124 ngx_freebsd_kern_osrelease, &size, NULL, 0) == -1) {
132 ngx_freebsd_kern_osrelease[size - 1] = '\0';
136 size = sizeof(int);
138 &ngx_freebsd_kern_osreldate, &size, NUL
[all...]
H A Dngx_darwin_init.c41 size_t size; member in struct:__anon377
94 size_t size; local
98 size = sizeof(ngx_darwin_kern_ostype);
99 if (sysctlbyname("kern.ostype", ngx_darwin_kern_ostype, &size, NULL, 0)
113 ngx_darwin_kern_ostype[size - 1] = '\0';
117 size = sizeof(ngx_darwin_kern_osrelease);
118 if (sysctlbyname("kern.osrelease", ngx_darwin_kern_osrelease, &size,
133 ngx_darwin_kern_osrelease[size - 1] = '\0';
138 size = sysctls[i].size;
[all...]
H A Dngx_solaris_sendfilev_chain.c46 off_t size, send, prev_send, aligned, fprev; local
68 /* the maximum limit size is the maximum size_t value - the page size */
100 size = cl->buf->last - cl->buf->pos;
102 if (send + size > limit) {
103 size = limit - send;
107 sfv->sfv_len += (size_t) size;
119 sfv->sfv_len = (size_t) size;
122 prev = cl->buf->pos + (size_t) size;
123 send += size;
[all...]
H A Dngx_udp_send.c14 ngx_udp_unix_send(ngx_connection_t *c, u_char *buf, size_t size) argument
23 n = sendto(c->fd, buf, size, 0, c->sockaddr, c->socklen);
27 c->fd, n, size, &c->addr_text);
30 if ((size_t) n != size) {
H A Dngx_shmem.c17 shm->addr = (u_char *) mmap(NULL, shm->size,
23 "mmap(MAP_ANON|MAP_SHARED, %uz) failed", shm->size);
34 if (munmap((void *) shm->addr, shm->size) == -1) {
36 "munmap(%p, %uz) failed", shm->addr, shm->size);
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE,
60 "mmap(/dev/zero, MAP_SHARED, %uz) failed", shm->size);
75 if (munmap((void *) shm->addr, shm->size) == -1) {
77 "munmap(%p, %uz) failed", shm->addr, shm->size);
92 id = shmget(IPC_PRIVATE, shm->size, (SHM_R|SHM_W|IPC_CREAT));
96 "shmget(%uz) failed", shm->size);
[all...]
H A Dngx_udp_recv.c14 ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) argument
23 n = recv(c->fd, buf, size, 0);
26 "recv: fd:%d %z of %uz", c->fd, n, size);
H A Dngx_channel.h25 ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
27 ngx_int_t ngx_read_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
/tldk/app/nginx/src/core/
H A Dngx_array.c13 ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size) argument
22 if (ngx_array_init(a, p, n, size) != NGX_OK) {
37 if ((u_char *) a->elts + a->size * a->nalloc == p->d.last) {
38 p->d.last -= a->size * a->nalloc;
51 size_t size; local
58 size = a->size * a->nalloc;
62 if ((u_char *) a->elts + size == p->d.last
63 && p->d.last + a->size <= p->d.end)
70 p->d.last += a->size;
98 size_t size; local
[all...]
H A Dngx_array.h19 size_t size; member in struct:__anon1
25 ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size);
32 ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t size) argument
40 array->size = size;
44 array->elts = ngx_palloc(pool, n * size);
H A Dngx_list.h28 size_t size; member in struct:__anon36
34 ngx_list_t *ngx_list_create(ngx_pool_t *pool, ngx_uint_t n, size_t size);
37 ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, ngx_uint_t n, size_t size) argument
39 list->part.elts = ngx_palloc(pool, n * size);
47 list->size = size;
H A Dngx_palloc.h75 void *ngx_alloc(size_t size, ngx_log_t *log);
76 void *ngx_calloc(size_t size, ngx_log_t *log);
78 ngx_pool_t *ngx_create_pool(size_t size, ngx_log_t *log);
82 void *ngx_palloc(ngx_pool_t *pool, size_t size);
83 void *ngx_pnalloc(ngx_pool_t *pool, size_t size);
84 void *ngx_pcalloc(ngx_pool_t *pool, size_t size);
85 void *ngx_pmemalign(ngx_pool_t *pool, size_t size, size_t alignment);
89 ngx_pool_cleanup_t *ngx_pool_cleanup_add(ngx_pool_t *p, size_t size);
H A Dngx_palloc.c12 static ngx_inline void *ngx_palloc_small(ngx_pool_t *pool, size_t size,
14 static void *ngx_palloc_block(ngx_pool_t *pool, size_t size);
15 static void *ngx_palloc_large(ngx_pool_t *pool, size_t size);
19 ngx_create_pool(size_t size, ngx_log_t *log) argument
23 p = ngx_memalign(NGX_POOL_ALIGNMENT, size, log);
29 p->d.end = (u_char *) p + size;
33 size = size - sizeof(ngx_pool_t);
34 p->max = (size < NGX_MAX_ALLOC_FROM_POOL) ? size
123 ngx_palloc(ngx_pool_t *pool, size_t size) argument
136 ngx_pnalloc(ngx_pool_t *pool, size_t size) argument
149 ngx_palloc_small(ngx_pool_t *pool, size_t size, ngx_uint_t align) argument
178 ngx_palloc_block(ngx_pool_t *pool, size_t size) argument
214 ngx_palloc_large(ngx_pool_t *pool, size_t size) argument
253 ngx_pmemalign(ngx_pool_t *pool, size_t size, size_t alignment) argument
298 ngx_pcalloc(ngx_pool_t *pool, size_t size) argument
312 ngx_pool_cleanup_add(ngx_pool_t *p, size_t size) argument
[all...]
H A Dngx_buf.c13 ngx_create_temp_buf(ngx_pool_t *pool, size_t size) argument
22 b->start = ngx_palloc(pool, size);
40 b->end = b->last + size;
76 p = ngx_palloc(pool, bufs->num * bufs->size);
107 p += bufs->size;
228 off_t total, size, aligned, fprev; local
238 size = cl->buf->file_last - cl->buf->file_pos;
240 if (size > limit - total) {
241 size = limit - total;
243 aligned = (cl->buf->file_pos + size
273 off_t size; local
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_ssl_preread_module.c19 size_t size; member in struct:__anon463
178 size_t left, n, size; local
202 size = ctx->size;
208 n = ngx_min((size_t) (last - pos), size);
215 size -= n;
218 if (size != 0) {
227 size = 4;
228 left = size;
240 size
[all...]
/tldk/app/nginx/src/mail/
H A Dngx_mail_smtp_module.c147 size_t size; local
168 size = sizeof("220 ESMTP ready" CRLF) - 1 + cscf->server_name.len;
170 p = ngx_pnalloc(cf->pool, size);
175 conf->greeting.len = size;
183 size = sizeof("250 " CRLF) - 1 + cscf->server_name.len;
185 p = ngx_pnalloc(cf->pool, size);
190 conf->server_name.len = size;
202 size = sizeof("250-") - 1 + cscf->server_name.len + sizeof(CRLF) - 1;
206 size += sizeof("250 ") - 1 + c[i].len + sizeof(CRLF) - 1;
216 size
[all...]

Completed in 9 milliseconds

1234567