Home
last modified time | relevance | path

Searched refs:linep (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/lib/libc/stdio/
H A Dgetdelim.c65 expandtofit(char ** __restrict linep, size_t len, size_t * __restrict capp) in expandtofit() argument
79 newline = realloc(*linep, newcap); in expandtofit()
83 *linep = newline; in expandtofit()
109 getdelim(char ** __restrict linep, size_t * __restrict linecapp, int delim, in getdelim() argument
118 if (linep == NULL || linecapp == NULL) { in getdelim()
123 if (*linep == NULL) in getdelim()
128 if (!__sfeof(fp) || expandtofit(linep, 1, linecapp)) in getdelim()
130 (*linep)[0] = '\0'; in getdelim()
137 if (sappend(linep, &linelen, linecapp, fp->_p, fp->_r)) in getdelim()
150 if (__ungetc((*linep)[--linelen], in getdelim()
[all …]
H A Dgetline.c32 getline(char ** __restrict linep, size_t * __restrict linecapp, in getline() argument
36 return (getdelim(linep, linecapp, '\n', fp)); in getline()
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_setup.c277 _nc_default_screensize(TERMINAL *termp, int *linep, int *colp) in _nc_default_screensize() argument
280 if (*linep <= 0) { in _nc_default_screensize()
281 *linep = (int) lines; in _nc_default_screensize()
288 if (*linep <= 0) { in _nc_default_screensize()
289 *linep = 24; in _nc_default_screensize()
406 _nc_check_screensize(SCREEN *sp, TERMINAL *termp, int *linep, int *colp) in _nc_check_screensize() argument
442 *linep = updated_y; in _nc_check_screensize()
453 _nc_default_screensize(termp, linep, colp); in _nc_check_screensize()
456 #define _nc_check_screensize(sp, termp, linep, colp) /* nothing */ argument
465 int *linep, int *colp) in _nc_get_screensize() argument
[all …]
H A Dtinfo_driver.c418 drv_size(TERMINAL_CONTROL_BLOCK * TCB, int *linep, int *colp) in drv_size() argument
439 _nc_console_size(linep, colp); in drv_size()
440 T(("screen size: winconsole lines = %d columns = %d", *linep, *colp)); in drv_size()
445 *linep = (int) lines; in drv_size()
456 *linep = ((sp != 0 && sp->_filtered) in drv_size()
460 *linep, *colp)); in drv_size()
473 *linep = ((sp != 0 && sp->_filtered) in drv_size()
478 *linep, *colp)); in drv_size()
493 _nc_setenv_num("LINES", *linep); in drv_size()
507 *linep = value; in drv_size()
[all …]
/freebsd/usr.sbin/ypldap/
H A Dentries.c43 char *linep; in flatten_entries() local
57 if ((linep = calloc(1, env->sc_user_line_len + 1)) == NULL) { in flatten_entries()
63 endp = linep; in flatten_entries()
90 env->sc_user_lines = linep; in flatten_entries()
93 if ((linep = calloc(1, env->sc_group_line_len + 1)) == NULL) { in flatten_entries()
99 endp = linep; in flatten_entries()
114 env->sc_group_lines = linep; in flatten_entries()
/freebsd/bin/sh/
H A Dmknodes.c82 static char *linep; variable
131 if (*linep != '\0') in parsenode()
186 fp->decl = savestr(linep); in parsefield()
188 if (*linep) in parsefield()
381 p = linep; in nextfield()
388 linep = p; in nextfield()
396 while (*linep == ' ' || *linep == '\t') in skipbl()
397 linep++; in skipbl()
412 linep = line; in readline()
/freebsd/libexec/revnetgroup/
H A Dparse_netgroup.c282 char *pos, *spos, *linep = NULL, *olinep = NULL; in read_for_group() local
325 linep = (char *)malloc(olen + len + 1); in read_for_group()
327 bcopy(olinep, linep, olen); in read_for_group()
330 bcopy(pos, linep + olen, len); in read_for_group()
332 *(linep + olen) = '\0'; in read_for_group()
333 olinep = linep; in read_for_group()
345 lp->l_line = linep; in read_for_group()
/freebsd/usr.bin/lam/
H A Dlam.c64 static char *linep; variable
93 linep = line; in main()
95 linep = gatherline(ip); in main()
188 char *lp = linep; in pad()
205 char *lp = linep; in gatherline()
/freebsd/lib/libc/rpc/
H A Dgetnetconfig.c105 char *linep; /* hold line read from netconfig */ member
338 list->linep = stringp; in getnetconfig()
417 free(q->linep); in endnetconfig()
443 char *linep; /* holds current netconfig line */ in getnetconfigent() local
483 if ((linep = malloc(MAXNETCONFIGLINE)) == NULL) { in getnetconfigent()
493 if ((stringp = fgets(linep, MAXNETCONFIGLINE, file)) == NULL) { in getnetconfigent()
511 if (parse_ncp(linep, ncp) == -1) { in getnetconfigent()
519 free(linep); in getnetconfigent()
/freebsd/lib/libc/gen/
H A Dgetnetgrent.c791 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;
/freebsd/contrib/mandoc/
H A Ddemandoc.c226 pline(int line, int *linep, int *col, int list) in pline() argument
237 while (*linep < line) { in pline()
239 (*linep)++; in pline()
/freebsd/sbin/mdmfs/
H A Dmdmfs.c459 char *linep; in do_mdconfig_attach_au() local
494 linep = fgetln(sfd, &linelen); in do_mdconfig_attach_au()
496 if (linep == NULL || linelen <= mdnamelen + 1 || in do_mdconfig_attach_au()
498 strncmp(linep, mdname, mdnamelen) != 0) in do_mdconfig_attach_au()
500 linep += mdnamelen; in do_mdconfig_attach_au()
503 strncpy(linebuf, linep, linelen); in do_mdconfig_attach_au()
/freebsd/contrib/less/
H A Dline.c1488 public POSITION forw_raw_line_len(POSITION curr_pos, size_t read_len, constant char **linep, size_t *line_lenp) in pappstr()
1527 if (linep != NULL) in rrshift()
1528 *linep = linebuf.buf; in rrshift()
1534 public POSITION forw_raw_line(POSITION curr_pos, constant char **linep, size_t *line_lenp) in rrshift()
1536 return forw_raw_line_len(curr_pos, size_t_null, linep, line_lenp); in rrshift()
1543 public POSITION back_raw_line(POSITION curr_pos, constant char **linep, size_t *line_lenp)
1602 if (linep != NULL)
1603 *linep = &linebuf.buf[n];
1613 public int skip_columns(int cols, constant char **linep, size_t *line_lenp)
1615 constant char *line = *linep;
1332 forw_raw_line(POSITION curr_pos,char ** linep,int * line_lenp) forw_raw_line() argument
1377 back_raw_line(POSITION curr_pos,char ** linep,int * line_lenp) back_raw_line() argument
1447 skip_columns(int cols,char ** linep,int * line_lenp) skip_columns() argument
[all...]
H A Dfuncs.h245 public POSITION forw_raw_line_len(POSITION curr_pos, size_t read_len, constant char **linep, size_t *line_lenp);
246 public POSITION forw_raw_line(POSITION curr_pos, constant char **linep, size_t *line_lenp);
247 public POSITION back_raw_line(POSITION curr_pos, constant char **linep, size_t *line_lenp);
248 public int skip_columns(int cols, constant char **linep, size_t *line_lenp);
/freebsd/usr.bin/sdiff/
H A Dsdiff.c1076 struct fileline *linep; in printc() local
1084 if (!(linep = malloc(sizeof(struct fileline)))) in printc()
1086 linep->line = line1; in printc()
1087 STAILQ_INSERT_TAIL(&delqhead, linep, fileentries); in printc()
/freebsd/sbin/routed/rtquery/
H A Drtquery.c844 parse_quote(char **linep, in parse_quote() argument
854 pc = *linep; in parse_quote()
896 *linep = pc-1; in parse_quote()
/freebsd/sbin/routed/
H A Dparms.c360 parse_quote(char **linep, /* look here */ in parse_quote() argument
370 pc = *linep; in parse_quote()
414 *linep = pc-1; /* say where we ended */ in parse_quote()
/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.c2388 char *endp, *linep, line[BUFSIZ]; in set_swpid() local
2441 linep = line; in set_swpid()
2442 while (*linep == ' ') in set_swpid()
2443 linep++; in set_swpid()
2444 rval = strtol(linep, &endp, 10); in set_swpid()
/freebsd/sys/kern/
H A Dsubr_witness.c2359 witness_save(struct lock_object *lock, const char **filep, int *linep) in witness_save() argument
2367 *linep = 0; in witness_save()
2394 *linep = instance->li_line; in witness_save()
/freebsd/contrib/ncurses/ncurses/
H A Dllib-ltinfow795 int *linep,
H A Dllib-ltinfo773 int *linep,
H A Dllib-ltinfotw863 int *linep,
H A Dllib-ltinfot841 int *linep,
H A Dllib-lncursest3579 int *linep,
H A Dllib-lncurses3502 int *linep,

12