/illumos-gate/usr/src/cmd/cron/ |
H A D | funcs.c | 141 int len; local 144 len = strlen(str); 145 p = xmalloc(len + 1); 146 (void) memcpy(p, str, len); 147 p[len] = '\0';
|
/illumos-gate/usr/src/cmd/mdb/tools/findfp/sparc/ |
H A D | findfp.c | 136 int len = 35; local 158 (void) printf("%-*x", len, i * 4); 160 len -= printf("%s+%llx", symname, off); 161 (void) printf("%*s", (len > 0 ? len : 0), "");
|
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | modem_setup.c | 77 msg.len = 0; 171 msg.len = 0; 201 Message.len = 2; 232 Message.type, Message.len); 257 msg.len = 0;
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_conv.c | 108 db_indx_t i, len, tmp; local 134 len = LEN_HKEYDATA(h, pagesize, i); 136 for (end = p + len; p < end;) { 184 M_16_SWAP(bk->len); 204 M_16_SWAP(bi->len);
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | uninstall.c | 170 int len; local 179 len = strlen(buffer2); 180 if (buffer2[len-1] == '\n') { 181 len--; 183 buffer2[len] = '\0';
|
/illumos-gate/usr/src/uts/common/fs/swapfs/ |
H A D | swap_vnops.c | 55 static int swap_getpage(struct vnode *vp, offset_t off, size_t len, 58 static int swap_putpage(struct vnode *vp, offset_t off, size_t len, 65 static int swap_getapage(struct vnode *vp, u_offset_t off, size_t len, 69 int swap_getconpage(struct vnode *vp, u_offset_t off, size_t len, 103 * Return all the pages from [off..off+len] in given file 110 size_t len, 120 SWAPFS_PRINT(SWAP_VOPS, "swap_getpage: vp %p, off %llx, len %lx\n", 121 (void *)vp, off, len, 0, 0); 124 "swapfs getpage:vp %p off %llx len %ld", 125 (void *)vp, off, len); 107 swap_getpage( struct vnode *vp, offset_t off, size_t len, uint_t *protp, page_t *pl[], size_t plsz, struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr, caller_context_t *ct) argument 136 swap_getapage( struct vnode *vp, u_offset_t off, size_t len, uint_t *protp, page_t *pl[], size_t plsz, struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr) argument 307 swap_getconpage( struct vnode *vp, u_offset_t off, size_t len, uint_t *protp, page_t *pl[], size_t plsz, page_t *conpp, uint_t *pszc, spgcnt_t *nreloc, struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr) argument 476 swap_putpage( struct vnode *vp, offset_t off, size_t len, int flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | devlink_disco.c | 40 size_t len; member in struct:walk_devlink 65 strncmp(start, warg->path, warg->len) != 0 || 67 start[warg->len] != ':') { 115 warg.len = strlen(mappings->entry[j].ScsiId. 120 warg.len = strlen(mappings->entry[j].ScsiId.
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xenbus_client.c | 175 unsigned int len; local 182 len = strlen(printf_buffer); 183 ret = vsnprintf(printf_buffer+len, PRINTF_BUFFER_SIZE-len, fmt, ap); 185 ASSERT(len + ret <= PRINTF_BUFFER_SIZE-1);
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_misc.c | 205 trunc_name(size_t *len, char **dots) argument 207 *dots = *len > MAXPRINCLEN ? "..." : ""; 208 *len = *len > MAXPRINCLEN ? MAXPRINCLEN : *len;
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ds_snmp.c | 544 size_t len; local 565 if ((len = uiop->uio_resid) == 0) 619 if (len > sp->data_len) 620 len = sp->data_len; 622 tmpbufp = kmem_alloc(len, KM_SLEEP); 624 bcopy(sp->data, (void *)tmpbufp, len); 637 retval = uiomove(tmpbufp, len, UIO_READ, uiop); 638 kmem_free(tmpbufp, len); 650 size_t len; local 673 len [all...] |
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | ecc.c | 118 int len; local 132 unum, UNUM_NAMLEN, &len); 143 int len; local 158 UNUM_NAMLEN, &len); 161 cpu_ce_count_unum(ecc, len, unum);
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | sundep.c | 150 thread_load(kthread_t *t, void (*start)(), caddr_t arg, size_t len) argument 163 if (len != 0) { 168 framesz = SA(len); 172 bcopy(arg, argp, len); 176 * store arg and len into the frames input register save area. 182 rwin->rw_in[1] = len;
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | multidata.h | 46 uint_t len; /* attribute length */ member in struct:pattrinfo_s 101 #define PDESC_HDR_ADD(p, base, head, len, tail) { \ 104 (p)->hdr_wptr = (p)->hdr_rptr + (len); \ 123 #define PDESC_PLD_SPAN_ADD(p, pbuf_idx, rptr, len) { \ 127 (p)->pld_ary[(p)->pld_cnt].pld_wptr = (rptr) + (len); \
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | bootrd.c | 69 int len = strlen(SYSTEM_BOOT_PATH); local 83 if (strncmp(file, SYSTEM_BOOT_PATH, len) == 0 || fd >= 0) 99 BRD_READ(struct boot_fs_ops *ops, int fd, caddr_t buf, size_t len) argument 103 buf, len)); 106 return (ops->fsw_read(fd, buf, len));
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ffs.c | 145 ffs_read (char *buf, int len) argument 149 while (len && !errnum) 160 if (size > len) 161 size = len; 170 len -= size;
|
H A D | fsys_ufs.c | 106 ufs_read(char *buf, int len) argument 111 while (len) { 116 if (size > len) 117 size = len; 130 len -= size;
|
H A D | fsys_ufs2.c | 169 ufs2_read (char *buf, int len) argument 174 while (len && !errnum) 185 if (size > len) 186 size = len; 195 len -= size;
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_cvt.c | 180 size_t len; local 193 len = strlen(CFGA_DEV_DIR SLASH); 195 (void) memmove(*hba_logpp, *hba_logpp + len, 196 strlen(*hba_logpp + len) + 1); 304 int len; local 319 len = strlen(DEVICES_DIR); 321 len + strlen(SLASH)) == 0) { 322 cp = root_path + len; 389 len = strlen(DEVICES_DIR) + strlen(devpath) + 1; 390 *pathpp = calloc(1, len); 528 s_readlink(char *link, char *buf, int len) argument 814 size_t len; local 906 size_t len = 0; local 957 size_t len = 0; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 64 interpret_dhcpv6(int flags, const uint8_t *data, int len) argument 66 int olen = len; 73 if (len <= 0) { 89 if (len < sizeof (d6r)) { 105 len -= sizeof (d6r); 107 if (len < sizeof (d6m)) { 116 len -= sizeof (d6m); 120 while ((d6o = dhcpv6_find_option(data, len, d6o, 126 d6o = dhcpv6_find_option(data, len, NULL, 141 d6o = dhcpv6_find_option(data, len, NUL 495 show_hex(const uint8_t *data, int len, const char *name) argument 516 show_ascii(const uint8_t *data, int len, const char *name) argument 584 show_options(const uint8_t *data, int len) argument [all...] |
/illumos-gate/usr/src/tools/scripts/ |
H A D | wsdiff.py | 198 difflen = len(diffs) 296 snipLen = len(prefix) 366 if len(args) != 2 : 391 if len(baseRoot) == 0 or len(ptchRoot) == 0 : 394 if logging and len(results) == 0 : 437 if len(fnamelist) > 1 : # Test the file extension 454 magic = fd.read(len(elfmagic)) 509 baseStringLength = len(base) 510 debug("Found " + str(len(baseFilesLis [all...] |
/illumos-gate/usr/src/cmd/awk/ |
H A D | run.c | 367 size_t len; local 381 n = readrec(&buf, &len, fp); 388 expand_buf(&record, &record_size, len); 389 (void) memcpy(record, buf, len); 390 record[len] = '\0'; 402 init_buf(&buf, &len, LINE_INCR); 403 n = getrec(&buf, &len); 429 size_t bsize, tlen, len, slen; local 439 len = strlen((char *)s); 440 expand_buf(&buf, &bsize, tlen + len 474 size_t bsize, tlen, slen, len; local 511 size_t bsize, tlen, slen, len; local 790 int flag = 0, len; local 1737 size_t bsize, cnt, len; local 1802 size_t bsize, cnt, len; local [all...] |
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getservent.c | 114 int buflen = 0, len; local 165 if (cname == NULL || (len = strlen(cname)) < 1) { 173 (len = strlen(cname)) < 1) { 178 len = snprintf(buffer, buflen, "%s %s/", cname, ipport[0]); 179 TEST_AND_ADJUST(len, buffer, buflen, result_srvs2str); 230 if (protoval == NULL || (len = strlen(protoval)) < 1) { 236 len = snprintf(buffer, buflen, "%s", protoval); 237 TEST_AND_ADJUST(len, buffer, buflen, result_srvs2str); 247 len = snprintf(buffer, buflen, " %s", 249 TEST_AND_ADJUST(len, buffe [all...] |
/illumos-gate/usr/src/lib/scsi/libsmp/common/ |
H A D | smp_plugin.c | 56 size_t len; local 66 smp_action_get_response(ap, &result, (void **)&rp, &len); 68 if (result != SMP_RES_FUNCTION_ACCEPTED || len < 24) { 86 size_t len; local 97 smp_action_get_response(ap, &result, (void **)&rp, &len); 100 len != sizeof (smp_report_manufacturer_info_resp_t)) { 387 ptrdiff_t len = q - p; local 388 (void) strncpy(pluginroot, p, len); 389 pluginroot[len] = '\0'; 394 if (len [all...] |
/illumos-gate/usr/src/lib/libsasl/include/ |
H A D | saslplug.h | 90 void (*MD5Update)(MD5_CTX *, const unsigned char *text, unsigned int len); 95 void (*hmac_md5_init)(HMAC_MD5_CTX *, const unsigned char *key, int len); 99 const unsigned char *key, int len); 105 int (*utf8verify)(const char *str, unsigned len); 106 void (*rand)(sasl_rand_t *rpool, char *buf, unsigned len); 107 void (*churn)(sasl_rand_t *rpool, const char *data, unsigned len); 129 void (*erasebuffer)(char *buf, unsigned len); 270 * len length of user name from wire protocol (0 = strlen(user)) 289 const char *in, unsigned len, 779 * len [all...] |
/illumos-gate/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 397 bad_hostname(char *name, int len) argument 401 if (len < 0 || len > MAX_SYSLEN) 405 * Per utmpx.h, len includes the nul character. 407 for (i = 0; i < len; i++) 422 int i, len; local 425 len = strlen(line); 426 if (len > 0) 427 len--; 429 id[i] = len [all...] |