/freebsd-current/lib/libc/stdio/ |
H A D | getline.c | 32 getline(char ** __restrict linep, size_t * __restrict linecapp, argument 36 return (getdelim(linep, linecapp, '\n', fp));
|
H A D | getdelim.c | 62 * Expand *linep to hold len bytes (up to SSIZE_MAX + 1). 65 expandtofit(char ** __restrict linep, size_t len, size_t * __restrict capp) argument 79 newline = realloc(*linep, newcap); 83 *linep = newline; 109 getdelim(char ** __restrict linep, size_t * __restrict linecapp, int delim, argument 118 if (linep == NULL || linecapp == NULL) { 123 if (*linep == NULL) 128 if (!__sfeof(fp) || expandtofit(linep, 1, linecapp)) 130 (*linep)[0] = '\0'; 137 if (sappend(linep, [all...] |
/freebsd-current/usr.sbin/ypldap/ |
H A D | entries.c | 43 char *linep; local 57 if ((linep = calloc(1, env->sc_user_line_len + 1)) == NULL) { 63 endp = linep; 90 env->sc_user_lines = linep; 93 if ((linep = calloc(1, env->sc_group_line_len + 1)) == NULL) { 99 endp = linep; 114 env->sc_group_lines = linep;
|
/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | lib_setup.c | 280 int *linep, int *colp) 287 assert(termp != 0 && linep != 0 && colp != 0); 291 TCB->drv->td_size(TCB, linep, colp); 312 _nc_console_size(linep, colp); 313 T(("screen size: winconsole lines = %d columns = %d", *linep, *colp)); 318 *linep = (int) lines; 335 *linep = ((sp != 0 && sp->_filtered) 339 *linep, *colp)); 350 *linep = ((sp != 0 && sp->_filtered) 355 *linep, *col 276 _nc_get_screensize(SCREEN *sp, TERMINAL *termp, int *linep, int *colp) argument [all...] |
H A D | tinfo_driver.c | 418 drv_size(TERMINAL_CONTROL_BLOCK * TCB, int *linep, int *colp) argument 439 _nc_console_size(linep, colp); 440 T(("screen size: winconsole lines = %d columns = %d", *linep, *colp)); 445 *linep = (int) lines; 456 *linep = ((sp != 0 && sp->_filtered) 460 *linep, *colp)); 473 *linep = ((sp != 0 && sp->_filtered) 478 *linep, *colp)); 493 _nc_setenv_num("LINES", *linep); 507 *linep [all...] |
/freebsd-current/usr.bin/lam/ |
H A D | lam.c | 63 static char *linep; variable 92 linep = line; 94 linep = gatherline(ip); 187 char *lp = linep; 204 char *lp = linep;
|
/freebsd-current/bin/sh/ |
H A D | mknodes.c | 82 static char *linep; variable 131 if (*linep != '\0') 186 fp->decl = savestr(linep); 188 if (*linep) 381 p = linep; 388 linep = p; 396 while (*linep == ' ' || *linep == '\t') 397 linep++; 412 linep [all...] |
/freebsd-current/libexec/revnetgroup/ |
H A D | parse_netgroup.c | 282 char *pos, *spos, *linep = NULL, *olinep = NULL; local 325 linep = (char *)malloc(olen + len + 1); 327 bcopy(olinep, linep, olen); 330 bcopy(pos, linep + olen, len); 332 *(linep + olen) = '\0'; 333 olinep = linep; 345 lp->l_line = linep;
|
/freebsd-current/lib/libc/rpc/ |
H A D | getnetconfig.c | 105 char *linep; /* hold line read from netconfig */ member in struct:netconfig_list 338 list->linep = stringp; 417 free(q->linep); 443 char *linep; /* holds current netconfig line */ local 483 if ((linep = malloc(MAXNETCONFIGLINE)) == NULL) { 493 if ((stringp = fgets(linep, MAXNETCONFIGLINE, file)) == NULL) { 511 if (parse_ncp(linep, ncp) == -1) { 519 free(linep);
|
/freebsd-current/contrib/less/ |
H A D | line.c | 1332 public POSITION forw_raw_line(POSITION curr_pos, char **linep, int *line_lenp) argument 1366 if (linep != NULL) 1367 *linep = linebuf.buf; 1377 public POSITION back_raw_line(POSITION curr_pos, char **linep, int *line_lenp) argument 1436 if (linep != NULL) 1437 *linep = &linebuf.buf[n]; 1447 public int skip_columns(int cols, char **linep, int *line_lenp) argument 1449 char *line = *linep; 1470 bytes = line - *linep; 1471 *linep [all...] |
H A D | funcs.h | 221 public POSITION forw_raw_line(POSITION curr_pos, char **linep, int *line_lenp); 222 public POSITION back_raw_line(POSITION curr_pos, char **linep, int *line_lenp); 223 public int skip_columns(int cols, char **linep, int *line_lenp);
|
/freebsd-current/lib/libc/gen/ |
H A D | getnetgrent.c | 791 char *linep, *olinep, *pos, *spos; local 800 linep = NULL; 827 linep = NULL; 875 linep = malloc(olen + len + 1); 876 if (linep == NULL) { 884 bcopy(olinep, linep, olen); 887 bcopy(pos, linep + olen, len); 889 *(linep + olen) = '\0'; 890 olinep = linep; 900 lp->l_line = linep; [all...] |
/freebsd-current/sbin/mdmfs/ |
H A D | mdmfs.c | 452 char *linep; local 487 linep = fgetln(sfd, &linelen); 489 if (linep == NULL || linelen <= mdnamelen + 1 || 491 strncmp(linep, mdname, mdnamelen) != 0) 493 linep += mdnamelen; 495 /* Can't use strlcpy because linep is not NULL-terminated. */ 496 strncpy(linebuf, linep, linelen);
|
/freebsd-current/usr.bin/sdiff/ |
H A D | sdiff.c | 1076 struct fileline *linep; local 1084 if (!(linep = malloc(sizeof(struct fileline)))) 1086 linep->line = line1; 1087 STAILQ_INSERT_TAIL(&delqhead, linep, fileentries);
|
/freebsd-current/sbin/routed/rtquery/ |
H A D | rtquery.c | 844 parse_quote(char **linep, argument 854 pc = *linep; 896 *linep = pc-1;
|
/freebsd-current/sbin/routed/ |
H A D | parms.c | 360 parse_quote(char **linep, /* look here */ argument 370 pc = *linep; 414 *linep = pc-1; /* say where we ended */
|
/freebsd-current/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 2375 char *endp, *linep, line[BUFSIZ]; local 2428 linep = line; 2429 while (*linep == ' ') 2430 linep++; 2431 rval = strtol(linep, &endp, 10);
|
/freebsd-current/usr.bin/patch/ |
H A D | pch.c | 1222 char *linep = line; local 1243 line = linep;
|
/freebsd-current/sys/kern/ |
H A D | subr_witness.c | 2359 witness_save(struct lock_object *lock, const char **filep, int *linep) argument 2367 *linep = 0; 2394 *linep = instance->li_line;
|