3 @@ -206,6 +206,30 @@ INVL_DATA:
10 +getline(char **line, size_t *len, FILE *fd)
15 + tmp = fgetln(fd, &tmplen);
19 + if (!*line || tmplen > *len) {
21 + *line = realloc(*line, *len);
24 + strncpy(*line, tmp, tmplen);
32 * this function sets the kwbimage header by-
33 * 1. Abstracting input command line arguments data
38 #endif /* USE_HOSTCC */
41 +#define ulong unsigned long
44 #if defined(CONFIG_FIT)