Home
last modified time | relevance | path

Searched full:lineptr (Results 1 – 6 of 6) sorted by relevance

/openbmc/u-boot/tools/
H A Dgetline.c15 /* Read up to (and including) a TERMINATOR from STREAM into *LINEPTR
16 + OFFSET (and null-terminate it). *LINEPTR is a pointer returned from
21 static int getstr(char **lineptr, size_t *n, FILE *stream, in getstr() argument
24 int nchars_avail; /* Allocated but unused chars in *LINEPTR. */ in getstr()
25 char *read_pos; /* Where we're reading into *LINEPTR. */ in getstr()
28 if (!lineptr || !n || !stream) in getstr()
31 if (!*lineptr) { in getstr()
33 *lineptr = malloc(*n); in getstr()
34 if (!*lineptr) in getstr()
39 read_pos = *lineptr + offset; in getstr()
[all …]
H A Dgetline.h1 int getline(char **lineptr, size_t *n, FILE *stream);
/openbmc/phosphor-host-ipmid/user_channel/
H A Dpasswd_mgr.cpp251 char* linePtr = strtok_r(outPtr, "\n", &nToken); in initPasswordMap() local
253 while (linePtr != nullptr) in initPasswordMap()
256 SecureString lineStr(linePtr); in initPasswordMap()
264 linePtr = strtok_r(nullptr, "\n", &nToken); in initPasswordMap()
393 char* linePtr = strtok_r(outPtr, "\n", &nToken); in updatePasswdSpecialFile() local
394 while (linePtr != nullptr) in updatePasswdSpecialFile()
398 SecureString lineStr(linePtr); in updatePasswdSpecialFile()
420 linePtr = strtok_r(nullptr, "\n", &nToken); in updatePasswdSpecialFile()
/openbmc/u-boot/drivers/video/
H A Dbus_vcxk.c329 unsigned char *lineptr; in vcxk_draw_mono() local
333 lineptr = dataptr; in vcxk_draw_mono()
335 if ((*lineptr << (xcnt % 8)) & 0x80) in vcxk_draw_mono()
341 lineptr++; in vcxk_draw_mono()
/openbmc/openbmc/poky/meta/recipes-extended/gperf/gperf/
H A D0001-Make-the-code-C-17-compliant.patch18 @@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset)
/openbmc/u-boot/scripts/kconfig/
H A Dconfdata.c193 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument
200 nline = xrealloc(*lineptr, new_size); in add_byte()
204 *lineptr = nline; in add_byte()
208 (*lineptr)[slen] = c; in add_byte()
213 static ssize_t compat_getline(char **lineptr, size_t *n, FILE *stream) in compat_getline() argument
215 char *line = *lineptr; in compat_getline()
230 *lineptr = line; in compat_getline()
243 *lineptr = line; in compat_getline()