Lines Matching defs:buffer
23 char *buffer;
41 buf = safe_realloc(file, lineno, ctx->buffer, size);
47 offset = ((char *)ctx->curmsg) - ctx->buffer;
48 ctx->buffer = buf;
59 free(ctx->buffer);
76 ctx->buffer = NULL;
94 ctx->buffer = safe_malloc(file, lineno, NULL, ctx->bufsize);
96 if (!ctx->buffer) {
101 memset(ctx->buffer, 0, ctx->bufsize);
111 // all ptr->header and ptr->info pointers point to the same buffer
112 // msg->header is the start of the buffer
146 iov.iov_base = ctx->buffer;
169 char tmp, *tmpbuf, *buffer = NULL;
191 tmpbuf = safe_realloc(file, lineno, buffer, bufsize + size);
196 buffer = tmpbuf;
198 buffer + bufsize, size, 0);
207 free(buffer);
211 ptr = (struct nlmsghdr *)buffer;
222 free(buffer);
227 ptr = (struct nlmsghdr *)buffer;
258 ctx->curmsg = (struct nlmsghdr *)ctx->buffer;
347 attr = (struct rtattr *)(ctx->buffer + offset);
365 struct nlmsghdr *msg = (struct nlmsghdr *)ctx->buffer;