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

1234567891011>>

/freebsd-10.3-release/bin/cat/
H A Dcat.c307 unsigned int len; local
317 if ((len = strlcpy(sou.sun_path, path,
322 len = offsetof(struct sockaddr_un, sun_path[len+1]);
324 if (connect(fd, (void *)&sou, len) < 0) {
/freebsd-10.3-release/bin/cp/
H A Dutils.c280 int len; local
288 if ((len = readlink(p->fts_path, llink, sizeof(llink) - 1)) == -1) {
292 llink[len] = '\0';
/freebsd-10.3-release/bin/date/
H A Dvary.c421 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-10.3-release/bin/df/
H A Ddf.c547 int len; local
549 len = 0;
553 len++;
556 len++;
560 return (len);
/freebsd-10.3-release/bin/echo/
H A Decho.c95 size_t len; local
97 len = strlen(argv[0]);
106 if (len >= 2 &&
107 argv[0][len - 2] == '\\' &&
108 argv[0][len - 1] == 'c') {
110 len -= 2;
115 vp++->iov_len = len;
/freebsd-10.3-release/bin/ed/
H A Dbuf.c51 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 Dcbc.c53 #define MEMCPY(dest,src,len) memcpy((dest),(src),(len))
54 #define MEMZERO(dest,len) memset((dest), 0, (len))
H A Ded.h67 int len; /* length of line */ member in struct:line
H A Dglbl.c62 NUL_TO_NEWLINE(s, lp->len);
H A Dio.c72 int len; local
77 for (current_addr = n; (len = get_stream_line(fp)) > 0; size += len) {
93 if (len < 0)
172 int len; local
179 len = lp->len;
181 s[len++] = '\n';
182 if (put_stream_line(fp, s, len) < 0)
184 size += len;
196 put_stream_line(FILE *fp, const char *s, int len) argument
[all...]
H A Dre.c85 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 Dsub.c123 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-10.3-release/bin/ls/
H A Dprint.c520 size_t len; local
526 len = strlen(cs);
530 if (len <= 2 * (size_t)i) {
H A Dutil.c139 len_octal(const char *s, int len) argument
147 while (len != 0 && (clen = mbrtowc(&wc, s, len, &mbs)) != 0) {
151 len--;
156 r += 4 * len;
177 int goodchar, i, len, prtlen; local
180 len = 0;
186 len += wcwidth(wc);
195 len += 2;
209 len
[all...]
/freebsd-10.3-release/bin/mv/
H A Dmv.c83 size_t baselen, len; local
161 if ((baselen + (len = strlen(p))) >= PATH_MAX) {
165 memmove(endp, p, (size_t)len + 1);
/freebsd-10.3-release/bin/pax/
H A Dftree.c148 int len; local
168 if (((len = strlen(str) - 1) > 0) && (str[len] == '/'))
169 str[len] = '\0';
H A Dgen_subs.c181 * copy src to dest up to len chars (stopping at first '\0').
182 * when src is shorter than len, pads to len with '\0'.
189 l_strncpy(char *dest, const char *src, int len) argument
194 stop = dest + len;
198 len = dest - start;
201 return(len);
215 asc_ul(char *str, int len, int base) argument
220 stop = str + len;
258 ul_asc(u_long val, char *str, int len, in argument
312 asc_uqd(char *str, int len, int base) argument
355 uqd_asc(u_quad_t val, char *str, int len, int base) argument
[all...]
H A Doptions.c1493 size_t len; local
1495 name = fgetln(f, &len);
1500 if (name[len-1] != '\n')
1501 len++;
1502 temp = malloc(len);
1507 memcpy(temp, name, len-1);
1508 temp[len-1] = 0;
H A Dpat_rep.c305 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 Dtables.c1228 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 Dtar.c142 * 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 Dtty_subs.c114 tty_read(char *str, int len) argument
118 if ((--len <= 0) || (ttyinf == NULL) || (fgets(str,len,ttyinf) == NULL))
120 *(str + len) = '\0';
/freebsd-10.3-release/bin/ps/
H A Dfmt.c62 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 Dkeyword.c188 int len = strlen(p); local
189 if (termwidth && (i += len + 1) > termwidth) {
190 i = len;
H A Dps.c1169 int len; local
1181 len = strlen(str);
1183 len = 1; /* "-" */
1184 if (v->width < len)
1185 v->width = len;
1311 size_t len; local
1343 len = strlen(origval);
1344 cp = origval + len - 1;
1374 if ((newopts = ns = malloc(len + 3)) == NULL)
1387 len
[all...]

Completed in 156 milliseconds

1234567891011>>