/freebsd-11-stable/bin/cp/ |
H A D | utils.c | 280 int len; local 288 if ((len = readlink(p->fts_path, llink, sizeof(llink) - 1)) == -1) { 292 llink[len] = '\0';
|
/freebsd-11-stable/bin/date/ |
H A D | vary.c | 421 size_t len; local 431 len = strlen(arg); 432 if (len < 2) 438 if (strspn(arg, digits) != len-1) { 453 which = arg[len-1];
|
/freebsd-11-stable/bin/df/ |
H A D | df.c | 621 int len; local 623 len = 0; 627 len++; 630 len++; 634 return (len);
|
/freebsd-11-stable/bin/ed/ |
H A D | buf.c | 51 int len, ct; local 65 len = lp->len; 66 REALLOC(sfbuf, sfbufsz, len + 1, NULL); 67 if ((ct = fread(sfbuf, sizeof(char), len, sfp)) < 0 || ct != len) { 72 sfseek += len; /* update file position */ 73 sfbuf[len] = '\0'; 84 int len, ct; local 100 len 273 translit_text(char *s, int len, int from, int to) argument [all...] |
H A D | cbc.c | 53 #define MEMCPY(dest,src,len) memcpy((dest),(src),(len)) 54 #define MEMZERO(dest,len) memset((dest), 0, (len))
|
H A D | ed.h | 67 int len; /* length of line */ member in struct:line
|
H A D | glbl.c | 62 NUL_TO_NEWLINE(s, lp->len);
|
H A D | io.c | 76 int len; local 81 for (current_addr = n; (len = get_stream_line(fp)) > 0; size += len) { 97 if (len < 0) 181 int len; local 188 len = lp->len; 190 s[len++] = '\n'; 191 if (put_stream_line(fp, s, len) < 0) 193 size += len; 205 put_stream_line(FILE *fp, const char *s, int len) argument [all...] |
H A D | re.c | 85 int len; local 104 len = nd - ibufp; 105 REALLOC(lhbuf, lhbufsz, len + 1, NULL); 106 memcpy(lhbuf, ibufp, len); 107 lhbuf[len] = '\0'; 109 return (isbinary) ? NUL_TO_NEWLINE(lhbuf, len) : lhbuf;
|
H A D | sub.c | 123 int len; local 128 if ((len = substitute_matching_text(pat, lp, gflag, kth)) < 0) 130 else if (len) { 135 eot = rbuf + len; 181 NUL_TO_NEWLINE(txt, lp->len); 182 eot = txt + lp->len;
|
/freebsd-11-stable/bin/ls/ |
H A D | print.c | 498 ls_strftime(char *str, size_t len, const char *fmt, const struct tm *tm) argument 518 ret = strftime(str, len, format, tm); 686 size_t len; local 692 len = strlen(cs); 696 if (len <= 2 * (size_t)i) {
|
H A D | util.c | 149 len_octal(const char *s, int len) argument 157 while (len != 0 && (clen = mbrtowc(&wc, s, len, &mbs)) != 0) { 161 len--; 166 r += 4 * len; 187 int goodchar, i, len, prtlen; local 192 len = 0; 198 len += wcwidth(wc); 207 len += 2; 221 len [all...] |
/freebsd-11-stable/bin/mv/ |
H A D | mv.c | 83 size_t baselen, len; local 161 if ((baselen + (len = strlen(p))) >= PATH_MAX) { 165 memmove(endp, p, (size_t)len + 1);
|
/freebsd-11-stable/bin/pax/ |
H A D | ftree.c | 148 int len; local 168 if (((len = strlen(str) - 1) > 0) && (str[len] == '/')) 169 str[len] = '\0';
|
H A D | gen_subs.c | 182 * copy src to dest up to len chars (stopping at first '\0'). 183 * when src is shorter than len, pads to len with '\0'. 190 l_strncpy(char *dest, const char *src, int len) argument 195 stop = dest + len; 199 len = dest - start; 202 return(len); 216 asc_ul(char *str, int len, int base) argument 221 stop = str + len; 259 ul_asc(u_long val, char *str, int len, in argument 313 asc_uqd(char *str, int len, int base) argument 356 uqd_asc(u_quad_t val, char *str, int len, int base) argument [all...] |
H A D | options.c | 1495 size_t len; local 1497 name = fgetln(f, &len); 1502 if (name[len-1] != '\n') 1503 len++; 1504 temp = malloc(len); 1509 memcpy(temp, name, len-1); 1510 temp[len-1] = 0;
|
H A D | pat_rep.c | 305 int len; local 369 len = pt->plen - 1; 370 if (*(pt->pstr + len) == '/') { 371 *(pt->pstr + len) = '\0'; 372 pt->plen = len; 799 int len; local 814 if ((len = dest - or_name) > PAXPATHLEN) { 818 *or_len = len; 833 *(or_name + len) = '\0'; 1029 int len; local 1079 int len; local [all...] |
H A D | tables.c | 1228 st_hash(char *name, int len, int tabsz) argument 1244 if (len > MAXKEYLEN) { 1245 pt = &(name[len - MAXKEYLEN]); 1246 len = MAXKEYLEN; 1254 steps = len/sizeof(u_int); 1255 res = len % sizeof(u_int);
|
H A D | tar.c | 142 * at the front to len. we are unable to use only one format as many old 149 ul_oct(u_long val, char *str, int len, int term) argument 156 pt = str + len - 1; 197 * at the front to len. we are unable to use only one format as many old 204 uqd_oct(u_quad_t val, char *str, int len, int term) argument 211 pt = str + len - 1; 251 * NOTE: we use len to short circuit summing 0's on write since we ALWAYS 258 tar_chksm(char *blk, int len) argument 275 * ASSUMED: len is greater than CHK_OFFSET. (len i 510 int len; local 1077 name_split(char *name, int len) argument [all...] |
H A D | tty_subs.c | 114 tty_read(char *str, int len) argument 118 if ((--len <= 0) || (ttyinf == NULL) || (fgets(str,len,ttyinf) == NULL)) 120 *(str + len) = '\0';
|
/freebsd-11-stable/bin/ps/ |
H A D | fmt.c | 62 size_t len; local 84 len = (buf_size - 1 - (dst - buf)) / 4; 85 strvisx(dst, src, strlen(src) < len ? strlen(src) : len, 110 size_t len; local 117 len = maxlen + 3; 120 len = strlen(ap) + maxlen + 4; 122 cp = malloc(len);
|
H A D | keyword.c | 250 int len = strlen(p); local 251 if (termwidth && (i += len + 1) > termwidth) { 252 i = len;
|
/freebsd-11-stable/bin/rcp/ |
H A D | rcp.c | 293 int i, len, tos; local 298 len = strlen(_PATH_CP) + strlen(argv[i]) + 300 if (!(bp = malloc(len))) 302 (void)snprintf(bp, len, "exec %s%s%s %s %s", _PATH_CP, 326 len = strlen(src) + CMDNEEDS + 20; 327 if ((bp = malloc(len)) == NULL) 329 (void)snprintf(bp, len, "%s -f %s", cmd, src);
|
/freebsd-11-stable/bin/rm/ |
H A D | rm.c | 427 off_t len; local 461 for (len = sbp->st_size; len > 0; len -= wlen) { \ 462 wlen = len < bsize ? len : bsize; \
|
/freebsd-11-stable/bin/setfacl/ |
H A D | file.c | 46 size_t len; local 63 len = fread(buf, (size_t)1, sizeof(buf) - 1, file); 64 buf[len] = '\0';
|