| … | |
… | |
| 6 | * Copyright 1999-2008 Gentoo Foundation |
6 | * Copyright 1999-2008 Gentoo Foundation |
| 7 | * Copyright 2004-2007 Martin Schlemmer <azarah@nosferatu.za.org> |
7 | * Copyright 2004-2007 Martin Schlemmer <azarah@nosferatu.za.org> |
| 8 | * Licensed under the GPL-2 |
8 | * Licensed under the GPL-2 |
| 9 | */ |
9 | */ |
| 10 | |
10 | |
| 11 | #include <stdarg.h> |
11 | #include "headers.h" |
| 12 | #include <stdio.h> |
|
|
| 13 | #include <stdlib.h> |
|
|
| 14 | #include <string.h> |
|
|
| 15 | #include <unistd.h> |
|
|
| 16 | |
|
|
| 17 | #include "rcscripts/rcutil.h" |
12 | #include "rcscripts/rcutil.h" |
| 18 | |
13 | |
| 19 | #define DYNAMIC_BUFFER_SIZE (sizeof (char) * 2 * 1024) |
14 | #define DYNAMIC_BUFFER_SIZE (sizeof (char) * 2 * 1024) |
| 20 | |
15 | |
| 21 | static rc_dynbuf_t *rc_dynbuf_reallocate (rc_dynbuf_t *dynbuf, size_t needed); |
16 | static rc_dynbuf_t *rc_dynbuf_reallocate (rc_dynbuf_t *dynbuf, size_t needed); |