Searched refs:len (Results 1 - 25 of 7470) sorted by path

1234567891011>>

/freebsd-current/bin/cp/
H A Dutils.c248 ssize_t len; local
256 if ((len = readlink(p->fts_path, llink, sizeof(llink) - 1)) == -1) {
260 llink[len] = '\0';
/freebsd-current/bin/date/
H A Dvary.c420 size_t len; local
430 len = strlen(arg);
431 if (len < 2)
437 if (strspn(arg, digits) != len-1) {
452 which = arg[len-1];
/freebsd-current/bin/dd/
H A Ddd.c364 swapbytes(void *v, size_t len) argument
369 while (len > 1) {
374 len -= 2;
/freebsd-current/bin/df/
H A Ddf.c608 int len; local
610 len = 0;
614 len++;
617 len++;
621 return (len);
/freebsd-current/bin/echo/
H A Decho.c70 size_t len; local
72 len = strlen(argv[0]);
80 if (len >= 2 &&
81 argv[0][len - 2] == '\\' &&
82 argv[0][len - 1] == 'c') {
84 len -= 2;
89 vp++->iov_len = len;
/freebsd-current/bin/ed/
H A Dbuf.c49 size_t len; local
63 len = lp->len;
64 REALLOC(sfbuf, sfbufsz, len + 1, NULL);
65 if (fread(sfbuf, sizeof(char), len, sfp) != len) {
70 sfseek += len; /* update file position */
71 sfbuf[len] = '\0';
82 size_t len; local
98 len
271 translit_text(char *s, int len, int from, int to) argument
[all...]
H A Ded.h64 int len; /* length of line */ member in struct:line
H A Dglbl.c59 NUL_TO_NEWLINE(s, lp->len);
H A Dio.c74 int len; local
77 for (current_addr = n; (len = get_stream_line(fp)) > 0; size += len) {
93 if (len < 0)
175 int len; local
180 len = lp->len;
182 s[len++] = '\n';
183 if (put_stream_line(fp, s, len) < 0)
185 size += len;
193 put_stream_line(FILE *fp, const char *s, int len) argument
[all...]
H A Dre.c83 int len; local
102 len = nd - ibufp;
103 REALLOC(lhbuf, lhbufsz, len + 1, NULL);
104 memcpy(lhbuf, ibufp, len);
105 lhbuf[len] = '\0';
107 return (isbinary) ? NUL_TO_NEWLINE(lhbuf, len) : lhbuf;
H A Dsub.c121 int len; local
126 if ((len = substitute_matching_text(pat, lp, gflag, kth)) < 0)
128 else if (len) {
133 eot = rbuf + len;
179 NUL_TO_NEWLINE(txt, lp->len);
180 eot = txt + lp->len;
/freebsd-current/bin/ls/
H A Dprint.c430 ls_strftime(char *str, size_t len, const char *fmt, const struct tm *tm) argument
450 strftime(str, len, format, tm);
452 strlcpy(str, "bad date val", len);
661 size_t len; local
667 len = strlen(cs);
672 if (len <= 2 * (size_t)i) {
H A Dutil.c133 len_octal(const char *s, int len) argument
141 while (len != 0 && (clen = mbrtowc(&wc, s, len, &mbs)) != 0) {
145 len--;
150 r += 4 * len;
171 int goodchar, i, len, prtlen; local
174 len = 0;
180 len += wcwidth(wc);
189 len += 2;
203 len
[all...]
/freebsd-current/bin/mv/
H A Dmv.c71 size_t baselen, len; local
149 if ((baselen + (len = strlen(p))) >= PATH_MAX) {
153 memmove(endp, p, (size_t)len + 1);
/freebsd-current/bin/pax/
H A Dftree.c138 int len; local
158 if (((len = strlen(str) - 1) > 0) && (str[len] == '/'))
159 str[len] = '\0';
H A Dgen_subs.c167 * copy src to dest up to len chars (stopping at first '\0').
168 * when src is shorter than len, pads to len with '\0'.
175 l_strncpy(char *dest, const char *src, int len) argument
180 stop = dest + len;
184 len = dest - start;
187 return(len);
201 asc_ul(char *str, int len, int base) argument
206 stop = str + len;
244 ul_asc(u_long val, char *str, int len, in argument
297 asc_uqd(char *str, int len, int base) argument
340 uqd_asc(u_quad_t val, char *str, int len, int base) argument
[all...]
H A Doptions.c1484 size_t len; local
1486 name = fgetln(f, &len);
1491 if (name[len-1] != '\n')
1492 len++;
1493 temp = malloc(len);
1498 memcpy(temp, name, len-1);
1499 temp[len-1] = 0;
H A Dpat_rep.c277 int len; local
341 len = pt->plen - 1;
342 if (*(pt->pstr + len) == '/') {
343 *(pt->pstr + len) = '\0';
344 pt->plen = len;
771 int len; local
786 if ((len = dest - or_name) > PAXPATHLEN) {
790 *or_len = len;
805 *(or_name + len) = '\0';
984 int len; local
[all...]
H A Dsel_subs.c529 size_t len; local
534 len = strlen(p);
554 len -= 3;
558 switch (len) {
H A Dtables.c1222 st_hash(char *name, int len, int tabsz) argument
1238 if (len > MAXKEYLEN) {
1239 pt = &(name[len - MAXKEYLEN]);
1240 len = MAXKEYLEN;
1248 steps = len/sizeof(u_int);
1249 res = len % sizeof(u_int);
H A Dtar.c134 * at the front to len. we are unable to use only one format as many old
141 ul_oct(u_long val, char *str, int len, int term) argument
148 pt = str + len - 1;
188 * at the front to len. we are unable to use only one format as many old
195 uqd_oct(u_quad_t val, char *str, int len, int term) argument
202 pt = str + len - 1;
241 * NOTE: we use len to short circuit summing 0's on write since we ALWAYS
248 tar_chksm(char *blk, int len) argument
265 * ASSUMED: len is greater than CHK_OFFSET. (len i
495 int len; local
1047 name_split(char *name, int len) argument
[all...]
H A Dtty_subs.c108 tty_read(char *str, int len) argument
112 if ((--len <= 0) || (ttyinf == NULL) || (fgets(str,len,ttyinf) == NULL))
114 *(str + len) = '\0';
/freebsd-current/bin/ps/
H A Dfmt.c55 size_t len; local
77 len = (buf_size - 1 - (dst - buf)) / 4;
78 strvisx(dst, src, strlen(src) < len ? strlen(src) : len,
103 size_t len; local
110 len = maxlen + 3;
113 len = strlen(ap) + maxlen + 4;
115 cp = malloc(len);
H A Dkeyword.c243 int len = strlen(p); local
244 if (termwidth && (i += len + 1) > termwidth) {
245 i = len;
H A Dps.c255 size_t len = strlen(optarg); local
257 if (len <= 2 &&
258 strncasecmp(optarg, "up", len) == 0)
260 else if (len <= 4 &&
261 strncasecmp(optarg, "down", len) == 0)
263 else if (len <= 4 &&
264 strncasecmp(optarg, "both", len) == 0)
1232 int len; local
1244 len = strlen(str);
1246 len
1380 size_t len; local
[all...]

Completed in 221 milliseconds

1234567891011>>