Searched defs:len (Results 1051 - 1075 of 3274) sorted by relevance

<<41424344454647484950>>

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dboot.c43 int len, i, exec_type = 0, align_4k = 1; local
67 if (!(len = grub_read (buffer, MULTIBOOT_SEARCH)) || len < 32)
77 for (i = 0; i < len; i++)
79 if (MULTIBOOT_FOUND ((int) (buffer + i), len - i))
103 && len > sizeof (Elf32_Ehdr)
118 >= len))
172 else if (len > sizeof (struct exec) && !N_BADMAG ((*(pu.aout))))
774 int len; local
782 len
811 int len; local
[all...]
H A Dfsys_fat.c199 fat_read (char *buf, int len) argument
210 if (size > len)
211 size = len;
226 while (len > 0)
273 if (size > len)
274 size = len;
282 len -= size;
H A Dtparm.c157 save_text(const char *fmt, const char *s, int len) argument
160 if (len > (int) s_len)
161 s_len = len;
170 save_number(const char *fmt, int number, int len) argument
172 if (len < 30)
173 len = 30; /* actually log10(MAX_INT)+1 */
175 get_space(len + 1);
236 parse_format(const char *s, char *format, int *len) argument
247 *len = 0;
316 *len
332 int len; local
[all...]
H A Dvstafs.h60 unsigned char len; member in struct:prot
70 unsigned long len; member in struct:fs_file
/illumos-gate/usr/src/lib/abi/apptrace/common/
H A Dapptraceutil.c47 type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) argument
49 if (ctf_type_name(ctfp, type, buf, len) == NULL)
50 (void) snprintf(buf, len, "<%ld>", type);
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c164 int len; local
166 len = strlen(inp);
167 if (inp[len - 1] == '\n' &&
168 (len == 1 || inp[len - 2] != '\\')) {
169 char_cnt = len;
173 if (inp[len - 1] == '\n' && inp[len - 2] == '\\')
174 char_cnt += len - 2;
216 int len; local
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_tape.c1121 int n, len; local
1142 len = strlen(NDMP_EOM_MAGIC);
1143 (void) memset(buf, 0, len);
1144 n = read(session->ns_tape.td_fd, buf, len);
1145 buf[len] = '\0';
1151 if (strncmp(buf, NDMP_EOM_MAGIC, len) != 0)
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_util.c108 * data and len values. We don't care what about the real values of
109 * data or len and we never try to access them. The stack head will
115 cstack_push(cstack_t *stk, void *data, int len) argument
128 stk_node->len = len;
140 * Pop an element off the stack. Set up the data and len references for
146 cstack_pop(cstack_t *stk, void **data, int *len) argument
163 if (len)
164 *len = stk_node->len;
181 cstack_top(cstack_t *stk, void **data, int *len) argument
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/
H A Dfc_led_parse.c196 int len; local
207 len = ptr - *p_str;
210 ptr = malloc(len + 1);
215 (void) memcpy(ptr, *p_str, len);
216 ptr[len] = '\0';
217 (*p_str) += len;
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dcpu_prop_update.c244 int len; local
252 &len)) {
255 if (compat[0] == '\0' || compat[len - 1] != '\0')
257 count = get_string_count(compat, len);
259 add_md_prop(pnode, len, "compatible", compat,
H A Ddr.c57 int len; local
82 len = strlen(strlist) + 1;
84 PICL_PTYPE_CHARSTRING, PICL_READ, len, name,
91 strlist += len;
181 int len; local
183 len = di_prop_ints(di_prop, &idata);
184 if (len < 0)
188 if (len == 1)
191 PICL_READ, len * sizeof (int), di_val,
197 len * sizeo
206 int len; local
227 int len; local
330 int len; local
[all...]
/illumos-gate/usr/src/cmd/ppgsz/
H A Dppgsz.c546 size_t len = pgsza[nelem - 1]; local
557 if ((addr = pr_mmap(Pr, (void *)len, len, PROT_READ | PROT_WRITE,
563 if (pr_memcntl(Pr, addr, len, MC_HAT_ADVISE, mha, 0, 0) < 0) {
570 (void) Pwrite(Pr, &len, sizeof (len), (uintptr_t)addr);
587 if (pr_munmap(Pr, addr, len) == -1) {
/illumos-gate/usr/src/cmd/printf/
H A Dprintf.c94 size_t len; local
127 (void) escape(fmt, 1, &len); /* backslash interpretation */
138 while (fmt < format + len) {
346 size_t len; local
355 getout = escape(p, 0, &len);
424 size_t len, newlen; local
426 len = strlen(str) + 2;
427 if (len > copy_size) {
428 newlen = ((len + 1023) >> 10) << 10;
437 (void) memmove(copy, str, len
445 escape(char *fmt, int percent, size_t *len) argument
[all...]
/illumos-gate/usr/src/cmd/projects/
H A Dprojects.c126 int len; local
129 if ((len = strlen(pl->pl_name)) > max)
130 max = len;
/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.c283 getprojname(projid_t projid, char *str, size_t len, int noresolve, argument
291 (void) snprintf(str, len, "%-6d", (int)projid);
295 (void) snprintf(str, len, "%-28s", "ERROR");
297 (void) snprintf(str, len, "%.*s%c", width - 1,
300 (void) snprintf(str, len, "%-28s", proj.pj_name);
305 getzonename(zoneid_t zoneid, char *str, size_t len, int trunc, size_t width) argument
311 (void) snprintf(str, len, "%-6d", (int)zoneid);
315 (void) snprintf(str, len, "%-28s", "ERROR");
317 (void) snprintf(str, len, "%.*s%c", width - 1,
320 (void) snprintf(str, len, "
[all...]
/illumos-gate/usr/src/cmd/prtconf/
H A Dprt_xxx.c235 (void) printf(" Phys hi=0x%x, Phys lo=0x%x, Phys len=%x\n",
356 size_t len; local
368 len = strlen(drv_name);
372 if (strncmp(tmp, drv_name, len) == 0) {
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dpool_rcm.c171 int len; local
180 len = strlen(errfmt) + 4 * 2; /* 4 digits for psetid and min */
181 if ((errval = malloc((len + 1) * sizeof (char))) != NULL) {
182 (void) snprintf(errval, len + 1, errfmt, psetid,
/illumos-gate/usr/src/cmd/rctladm/
H A Drctladm.c196 int line, len, n; local
228 name, actions, &len);
230 (n == 1 || len == strlen(buf))) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c339 ctrl->len = sizeof (*plp);
435 if (retv >= 0 && !(retv & MORECTL) && ctrl->len >= sizeof (uint32_t)) {
441 if (ctrl->len == sizeof (*ptc))
462 int len; local
466 len = strlen(envstr);
467 if (len <= 1)
469 envstr[len-1] = '\0';
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dupap.c341 int len; local
354 GETSHORT(len, inp);
355 if ((len < UPAP_HEADERLEN) || (len > l)) {
356 error("PAP: packet has illegal length %d (%d..%d)", len,
360 len -= UPAP_HEADERLEN;
367 upap_rauthreq(u, inp, id, len);
371 upap_rauthack(u, inp, id, len);
375 upap_rauthnak(u, inp, id, len);
389 upap_rauthreq(u, inp, id, len)
670 int code, id, len; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddocmd.c636 int len; local
646 len = tp - target;
651 if (len + 1 + strlen(dp->d_name) >= RDIST_BUFSIZ - 1) {
679 register int fd, len; local
741 while ((len = read(fd, buf, RDIST_BUFSIZ)) > 0)
742 (void) fwrite(buf, 1, len, pf);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dauth.c426 auth_sendname(uchar_t *cp, int len) argument
433 while (--len >= 0) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c349 print_options(FILE *stream, char *opts, int len) argument
352 char *endopts = opts + len;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dwhois.c268 ssize_t c, len; local
297 while ((len = getline(&buf, &buflen, sfi)) != -1) {
298 while (len > 0 && isspace((unsigned char)buf[len - 1]))
299 buf[--len] = '\0';
300 (void) printf("%.*s\n", (int)len, buf);
303 host = strnstr(buf, WHOIS_SERVER_ID, len);
306 for (p = host; p < buf + len; p++) {
313 (int)(buf + len - host), host);
315 strnstr(buf, WHOIS_ORG_SERVER_ID, len)) !
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dlogging.c62 dowrite(int fd, const void *buf, int len) argument
67 while (len > 0) {
68 retv = write(fd, bp, len);
77 len -= retv;
80 if (len <= 0)

Completed in 130 milliseconds

<<41424344454647484950>>