Home
last modified time | relevance | path

Searched refs:len (Results 101 – 125 of 4093) sorted by relevance

12345678910>>...164

/illumos-gate/usr/src/cmd/ipf/lib/
H A Dgetline.c25 int s, len; in getaline() local
28 for (p = str, s = size; ; p += (len - 1), s -= (len - 1)) { in getaline()
35 len = strlen(p); in getaline()
36 if (p[len - 1] != '\n') { in getaline()
37 p[len] = '\0'; in getaline()
41 p[len - 1] = '\0'; in getaline()
42 if (len < 2 || p[len - 2] != '\\') in getaline()
49 p[len - 2] = ' '; in getaline()
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_ioctl.c1298 if (addr & 3 || len & 3 || len == 0) in validate_mem_range()
1366 remaining = mr.len; in read_card_mem()
1414 dl.len = dparams->size; in get_devlog()
1520 count = t4edc.len; in read_edc()
1524 u32 len; in read_edc() local
1533 len = MEMWIN0_APERTURE; in read_edc()
1534 pos += len; in read_edc()
1535 count -= len; in read_edc()
1661 if (!fw.len) in flash_fw()
1680 kmem_free(ptr, fw.len); in flash_fw()
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_enclosure.c77 size_t len, textlen; in enc_parse_help() local
101 textlen, shpip, len)) in enc_parse_help()
136 size_t len, textlen; in enc_parse_string_in() local
160 ssip, len)) in enc_parse_string_in()
171 if (!SES_WITHIN_PAGE_STRUCT(sip, sip, len)) in enc_parse_string_in()
192 size_t len; in enc_parse_descr() local
199 desc, len); in enc_parse_descr()
212 size_t len; in enc_parse_dlucode() local
261 size_t len; in enc_parse_subnick() local
269 np, &len)) == NULL) in enc_parse_subnick()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusba_bos.c40 size_t len; in usba_bos_parse_usb2ext() local
54 size_t len; in usba_bos_parse_superspeed() local
68 size_t len; in usba_bos_parse_container() local
83 size_t len; in usba_bos_parse_precision_time() local
112 size_t len = MBLKL(mp); in usba_bos_save() local
123 len = MIN(len, bdesc->wTotalLength); in usba_bos_save()
132 while (len > 0) { in usba_bos_save()
141 dev.bLength > len) { in usba_bos_save()
146 len -= dev.bLength; in usba_bos_save()
159 while (len > 0) { in usba_bos_save()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_comms.c110 char *buf, uint32_t *len) in get_output_chunk() argument
123 if ((prod - cons) < *len) in get_input_chunk()
124 *len = prod - cons; in get_input_chunk()
137 while (len != 0) { in xb_write()
165 if (avail > len) in xb_write()
166 avail = len; in xb_write()
170 len -= avail; in xb_write()
191 while (len != 0) { in xb_read()
218 if (avail > len) in xb_read()
219 avail = len; in xb_read()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dmisc.c71 size_t len; in strlenout() local
73 for (len = 0; ; len++) { in strlenout()
78 return(len); in strlenout()
100 kern_bzero(vm_offset_t dest, size_t len) in kern_bzero() argument
106 resid = len; in kern_bzero()
130 if ((size_t)archsw.arch_readin(fd, dest, len) != len) { in kern_pread()
148 buf = malloc(len); in alloc_pread()
162 if ((size_t)read(fd, buf, len) != len) { in alloc_pread()
176 hexdump(caddr_t region, size_t len) in hexdump() argument
188 if ((line + x) < (region + len)) { in hexdump()
[all …]
H A Dutil.c28 memcpy(void *dst, const void *src, int len) in memcpy() argument
33 while (len--) in memcpy()
38 memset(void *b, int c, size_t len) in memset() argument
42 while (len--) in memset()
47 memcmp(const void *b1, const void *b2, size_t len) in memcmp() argument
51 for (p1 = b1, p2 = b2; len > 0; len--, p1++, p2++) { in memcmp()
68 strncmp(const char *s1, const char *s2, size_t len) in strncmp() argument
71 for (; len > 0 && *s1 == *s2 && *s1 != '\0'; len--, s1++, s2++) in strncmp()
110 size_t len = 0; in strlen() local
113 len++; in strlen()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_debug.c145 size_t len; in rds_vlog() local
166 msg_ptr = rds_print_buf + len; in rds_vlog()
167 len += vsnprintf(msg_ptr, RDS_PRINT_BUF_LEN - len - 2, fmt, ap); in rds_vlog()
169 len = min(len, RDS_PRINT_BUF_LEN - 2); in rds_vlog()
170 ASSERT(len == strlen(rds_print_buf)); in rds_vlog()
171 rds_print_buf[len++] = '\n'; in rds_vlog()
172 rds_print_buf[len] = '\0'; in rds_vlog()
196 rds_buf_sptr += len; in rds_vlog()
229 rds_print_buf[len - 1] = '\0'; in rds_vlog()
231 if (msg_ptr[len - 1] == '\n') { in rds_vlog()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dxdr_mblk.c279 p->rpos += len; in xdrmblk_getbytes()
305 int len; in xdrmblk_getmblk() local
320 len = 0; in xdrmblk_getmblk()
420 p->rpos += len; in xdrmblk_putbytes()
553 if (len <= 0 || xdrs->x_handy < len) { in xdrmblk_inline()
591 *mptr += len; in xdrmblk_inline()
593 p->rpos += len; in xdrmblk_inline()
608 int len; in xdrmblk_control() local
638 if (len < 0) in xdrmblk_control()
640 if (len == 0) in xdrmblk_control()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dcomm.c66 ssize_t len; local
98 if (MI_SOCK_READ_FAIL(len))
106 if (len == 0)
113 i += len;
179 if (len == 0)
185 if (len > expl - i)
191 if (len >= expl - i)
200 i += len;
325 size_t len;
334 if (len > Maxdatasize || (len > 0 && buf == NULL))
[all …]
/illumos-gate/usr/src/cmd/nvmeadm/
H A Dnvmeadm_wdc.c116 while (len > 0) { in wdc_e6_write()
128 len -= (size_t)ret; in wdc_e6_write()
142 uint64_t len, off; in do_wdc_e6dump() local
167 len = be32toh(header->e6_size_be); in do_wdc_e6dump()
169 if (len == UINT32_MAX) { in do_wdc_e6dump()
171 "PCI read, aborting", len); in do_wdc_e6dump()
174 if ((len % 4) != 0) { in do_wdc_e6dump()
177 len = P2ROUNDUP(len, 4); in do_wdc_e6dump()
190 len -= off; in do_wdc_e6dump()
191 while (len > 0) { in do_wdc_e6dump()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dlcp.c441 if (len < 0 || len > 255 || arg == cp ||
450 (arg[len] == '\0' || arg[len] == ','))
656 int len;
789 int len;
1846 for (len = *lenp; len > 0; len -= cilen, p = prev + cilen) {
1847 if (len < 2 || p[1] > len) {
1884 for (len = *lenp; len > 0; len -= cilen, p = prev + cilen) {
2509 if (len < HEADERLEN || len > plen)
2790 if (len > 0 && (len > 1 || *p != '\0')) {
2811 if (len > 0 && (len > 1 || *p != '\0')) {
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ether.c132 int len; in interpret_ether() local
219 len -= 8; in interpret_ether()
223 len -= 3; in interpret_ether()
318 if (len > 0 && (off + len <= (uchar_t *)e + elen)) { in interpret_ether()
329 origlen = len; in interpret_ether()
330 elen = len; in interpret_ether()
896 if (len > 0 && (off + len <= (char *)e + elen)) { in interpret_tr()
1057 return (len); in tr_header_len()
1072 int len; in interpret_fddi() local
1157 if (len > 0 && (off + len <= (char *)e + elen)) { in interpret_fddi()
[all …]
H A Dsnoop_display.c189 xdr_totlen = len; in xdr_init()
440 int len) in getxdr_string() argument
461 len++; in showxdr_string()
711 if (len == 0) { in getxdr_hex()
715 if (len > 1024) in getxdr_hex()
716 len = 1024; in getxdr_hex()
717 if (len < 0 || xdr_opaque(&xdrm, rbuff, len) == FALSE) { in getxdr_hex()
770 if (len % 2) { in hexdump()
801 int c, len; in show_string() local
804 dlen = len; in show_string()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Dio.c162 && (len < READBUFSIZ)) ? len : READBUFSIZ, in ber_filbuf()
167 && (len < READBUFSIZ)) ? len : READBUFSIZ ); in ber_filbuf()
187 while ( len > 0 ) { in BerRead()
195 len--; in BerRead()
216 actuallen = nleft < len ? nleft : len; in ber_read()
240 need = (len < EXBUFSIZ ? 1 : (len + (EXBUFSIZ - 1)) / EXBUFSIZ); in nslberi_ber_realloc()
306 return( len ); in ber_write()
315 return( len ); in ber_write()
657 *len = lc; in ber_get_next()
1163 *len = lc; in ber_get_next_buffer_ext()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsctp_crc32.c95 sctp_crc_byte(uint32_t *crcptr, const uint8_t *buf, int len) in sctp_crc_byte() argument
101 for (i = 0; i < len; i++) { in sctp_crc_byte()
118 for (i = 0; i < len; i++) { in sctp_crc_word()
127 sctp_crc32(uint32_t crc32, const uint8_t *buf, int len) in sctp_crc32() argument
133 if (len < rem) { in sctp_crc32()
134 rem = len; in sctp_crc32()
138 len = len - rem; in sctp_crc32()
141 if (len > 3) { in sctp_crc32()
142 sctp_crc_word(&crc32, (const uint32_t *)buf, len / 4); in sctp_crc32()
145 rem = len & 3; in sctp_crc32()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfilesys.h26 int ffs_read (char *buf, int len);
36 int ufs_read (char *buf, int len);
46 int ufs2_read (char *buf, int len);
56 int zfs_read (char *buf, int len);
66 int fat_read (char *buf, int len);
75 int ext2fs_read (char *buf, int len);
84 int minix_read (char *buf, int len);
103 int vstafs_read (char *buf, int len);
112 int jfs_read (char *buf, int len);
122 int xfs_read (char *buf, int len);
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dpointtype.sh34 len() function
45 [[ $(p.len) == 1 ]] || err_exit '$(p.len) != 1'
46 [[ ${p.len} == 1 ]] || err_exit '${p.len} != 1'
47 (( p.len == 1 )) || err_exit '((p.len != 1))'
51 q.len()
55 (( q.len == 3 )) || err_exit 'q.len is not 3'
60 (( p.len == 3 )) || err_exit 'p.len is not 3'
63 (( pp[0].len == 5 )) || err_exit 'pp[0].len != 5'
64 (( pp[1].len == 13 )) || err_exit 'pp[0].len != 12'
86 len() function
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtrace.c42 len, pi->pi_name); in print_route_sol()
44 len -= sizeof (*rs); in print_route_sol()
46 print_opt(opt, len); in print_route_sol()
59 len, pi->pi_name); in print_route_adv()
74 len -= sizeof (*ra); in print_route_adv()
76 print_opt(opt, len); in print_route_adv()
99 optlen > len) in print_opt()
122 optlen > len) in print_opt()
130 optlen > len) in print_opt()
142 optlen > len) in print_opt()
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_fio.c36 size_t len; in prom_fopen() local
44 path = promplat_alloc(len); in prom_fopen()
50 len = prom_strlen(path); in prom_fopen()
67 promplat_free(path, len + 1); in prom_fopen()
83 size_t len; in prom_volopen() local
91 path = promplat_alloc(len); in prom_volopen()
97 len = prom_strlen(path); in prom_volopen()
114 promplat_free(path, len + 1); in prom_volopen()
162 buf = promplat_alloc(len); in prom_fread()
185 promplat_bcopy(buf, obuf, len); in prom_fread()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_common.kshlib136 typeset -i len=${2:-5}
141 ((len == 0)) && len=3
145 while ((i < len)); do
165 typeset -i len
166 ((len = RANDOM % sumlen))
176 ((len = sumlen - (len + 1)))
198 typeset -i len
199 ((len = RANDOM % sumlen))
204 ((len = sumlen - len))
224 typeset -i len=${1:-100}
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ofs_debug_util.c132 size_t len; in sol_ofs_dprintf_vlog() local
161 len += vsnprintf(msg_ptr, SOL_OFS_PRINT_BUF_LEN - len - 2, fmt, ap); in sol_ofs_dprintf_vlog()
162 len = min(len, SOL_OFS_PRINT_BUF_LEN - 2); in sol_ofs_dprintf_vlog()
163 ASSERT(len == strlen(sol_ofs_print_buf)); in sol_ofs_dprintf_vlog()
164 sol_ofs_print_buf[len++] = '\n'; in sol_ofs_dprintf_vlog()
165 sol_ofs_print_buf[len] = '\0'; in sol_ofs_dprintf_vlog()
186 (caddr_t)sol_ofs_debug_sptr, len); in sol_ofs_dprintf_vlog()
187 sol_ofs_debug_sptr += len; in sol_ofs_dprintf_vlog()
218 sol_ofs_print_buf[len - 1] = '\0'; in sol_ofs_dprintf_vlog()
220 if (msg_ptr[len - 1] == '\n') { in sol_ofs_dprintf_vlog()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfvwrite.c47 while (len == 0) \
51 len = iov->iov_len; \
61 register size_t len; variable
84 len = iov->iov_len;
108 len -= w;
160 if (len < (size_t) w)
161 w = len;
168 && len > (size_t) w)
195 w = len;
201 len -= w;
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_util.c146 (void) strlcpy(buf, ntp->int_name, len); in ipmi_entity_name()
151 (void) snprintf(buf, len, "0x%02x", id); in ipmi_entity_name()
161 (void) strlcpy(buf, ntp->int_name, len); in ipmi_sensor_type_name()
166 (void) snprintf(buf, len, "0x%02x", type); in ipmi_sensor_type_name()
176 (void) strlcpy(buf, ntp->int_name, len); in ipmi_sensor_units_name()
186 char *buf, size_t len) in ipmi_sensor_reading_name() argument
245 if (len == 0) { in ipmi_decode_string()
253 (void) strncpy(buf, data, len); in ipmi_decode_string()
254 *(buf+len) = '\0'; in ipmi_decode_string()
272 chunks = len / 3; in ipmi_decode_string()
[all …]
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_subr.c45 size_t len; in ses_vpanic() local
48 len = strlen(msg); in ses_vpanic()
49 (void) vsnprintf(msg + len, sizeof (msg) - len, fmt, ap); in ses_vpanic()
52 len = strlen(msg); in ses_vpanic()
53 (void) snprintf(msg + len, sizeof (msg) - len, ": %s\n", in ses_vpanic()
88 str[len] = '\0'; in nvlist_add_fixed_string()
102 len--; in nvlist_add_fixed_string_trunc()
105 while (len > 0 && buf[len - 1] == ' ') in nvlist_add_fixed_string_trunc()
106 len--; in nvlist_add_fixed_string_trunc()
346 size_t len; in ses_strdup() local
[all …]

12345678910>>...164