Home
last modified time | relevance | path

Searched refs:len (Results 151 – 175 of 4095) sorted by relevance

12345678910>>...164

/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dfmemopentest.c41 size_t len; in simpletest() local
73 if (len != strlen(string) + 1) { in simpletest()
75 len, strlen(string) + 1); in simpletest()
88 size_t len; in updatetest() local
95 len = fwrite(" world", 1, 6, s1); in updatetest()
96 if (len != 6) { in updatetest()
108 if (strncmp(string, buffer, len)) { in updatetest()
132 size_t len, slen; in writetest() local
141 len = fwrite("short", 1, 5, s1); in writetest()
142 if (len != strlen("short")) { in writetest()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dipv6cp.c430 int len;
540 int len;
611 int len;
746 int len;
779 len -= p[1]; \
846 for (len = *lenp; len > 0; len -= cilen, p = prev + cilen) {
849 if ((len < 2) || p[1] > len) {
1428 if (len < HEADERLEN || len > plen)
1476 p += len;
1477 len = 0;
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_clientstub.c79 int len; in syslog() local
223 while (len) in write_all()
266 while (len) in read_all()
1286 size_t len; in DNSServiceGetProperty() local
1416 size_t len; in DNSServiceResolve() local
1535 size_t len; in DNSServiceQueryRecord() local
1675 size_t len; in DNSServiceGetAddrInfo() local
1763 size_t len; in DNSServiceBrowse() local
1806 size_t len; in DNSServiceSetDefaultDomainForUser() local
1859 size_t len; in DNSServiceRegister() local
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_mbox.c68 msg->msg_len = len; in sbdp_init_msg_pkt()
127 int len; in sbdp_get_board_status() local
257 int len; in sbdp_assign_board() local
308 int len; in sbdp_unassign_board() local
582 int len; in sbdp_poweroff_board() local
636 int len; in sbdp_poweron_board() local
741 int len; in sbdp_test_board() local
812 int len; in sbdp_swap_slices() local
887 int len; in sbdp_stop_cpu() local
912 int len; in sbdp_start_cpu() local
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4nex.h63 uint32_t len; member
71 uint32_t len; member
77 uint32_t len; member
82 uint32_t len; member
87 uint32_t len; member
92 uint32_t len; member
97 uint32_t len; member
102 uint32_t len; member
119 uint32_t len; member
124 uint32_t len; member
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defienv.c39 efi_getenv(EFI_GUID *g, const char *v, void *data, size_t *len) in efi_getenv() argument
50 dl = *len; in efi_getenv()
53 *len = dl; in efi_getenv()
59 efi_setenv(EFI_GUID *g, uint32_t attr, const char *v, void *data, size_t len) in efi_setenv() argument
68 rv = RS->SetVariable(uv, g, attr, len, data); in efi_setenv()
74 efi_global_getenv(const char *v, void *data, size_t *len) in efi_global_getenv() argument
77 return (efi_getenv(&gEfiGlobalVariableGuid, v, data, len)); in efi_global_getenv()
81 efi_global_setenv(const char *v, void *data, size_t len) in efi_global_setenv() argument
86 EFI_VARIABLE_RUNTIME_ACCESS, v, data, len)); in efi_global_setenv()
90 efi_illumos_getenv(const char *v, void *data, size_t *len) in efi_illumos_getenv() argument
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioBuffer.cc240 if (len == buflen) in SetSize()
244 buflen = len; in SetSize()
286 Double len) // new length in SetLength() argument
293 if (Undefined(len) || (len > GetSize())) { in SetLength()
297 setlength(len); in SetLength()
316 cnt = (off_t)len; in ReadData()
317 len = 0; in ReadData()
356 len = (size_t)cnt; in ReadData()
381 cnt = (off_t)len; in WriteData()
382 len = 0; in WriteData()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dgetcwd.c47 getcwd(char* buf, size_t len)
153 getcwd(char* buf, size_t len)
186 if (buf && !len) ERROR(EINVAL);
194 if (len < namlen) ERROR(ERANGE);
218 extra = len;
219 len = PATH_MAX;
223 p = buf + len - 1;
257 len = d - buf;
301 x = (buf + len - 1) - (p += namlen);
302 s = buf + len;
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.c594 store_ptr += len; in desread()
595 nstored -= len; in desread()
596 return (len); in desread()
601 len -= nstored; in desread()
686 nreturned += len; in desread()
688 nstored -= len; in desread()
708 while (len > 0) { in deswrite()
713 outlen = len; in deswrite()
718 len -= r; in deswrite()
753 use_ivecs ? (size_t)len + 4 : (size_t)len, &ret)) { in deswrite_compat()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdsv3_debug.c144 size_t len; in rdsv3_vlog() local
165 msg_ptr = rdsv3_print_buf + len; in rdsv3_vlog()
166 len += vsnprintf(msg_ptr, RDSV3_PRINT_BUF_LEN - len - 2, fmt, ap); in rdsv3_vlog()
168 len = min(len, RDSV3_PRINT_BUF_LEN - 2); in rdsv3_vlog()
169 ASSERT(len == strlen(rdsv3_print_buf)); in rdsv3_vlog()
170 rdsv3_print_buf[len++] = '\n'; in rdsv3_vlog()
171 rdsv3_print_buf[len] = '\0'; in rdsv3_vlog()
195 rdsv3_buf_sptr += len; in rdsv3_vlog()
228 rdsv3_print_buf[len - 1] = '\0'; in rdsv3_vlog()
230 if (msg_ptr[len - 1] == '\n') { in rdsv3_vlog()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_dump.c160 if (len > 1 || (addr && len == 1)) in mdb_dump_pad()
161 len--; in mdb_dump_pad()
163 x = len; in mdb_dump_pad()
165 x = len + addr; in mdb_dump_pad()
216 if (len && (len - 1 > addrmax - addr)) { in mdb_dump_internal()
217 len = addrmax - addr; in mdb_dump_internal()
219 len++; in mdb_dump_internal()
245 len -= len % group; in mdb_dump_internal()
267 len += l; in mdb_dump_internal()
312 if ((uint64_t)width >= len - i) { in mdb_dump_internal()
[all …]
/illumos-gate/usr/src/uts/sun4v/promif/
H A Dpromif_prop.c243 int len; in promif_setprop() local
251 len = p1275_cell2int(ci[6]); in promif_setprop()
254 len = promif_ldom_setprop(name, value, len); in promif_setprop()
256 if (len >= 0) in promif_setprop()
257 len = promif_stree_setprop(node, name, (void *)value, len); in promif_setprop()
260 ci[7] = p1275_int2cell(len); in promif_setprop()
262 return ((len == -1) ? len : 0); in promif_setprop()
274 int len; in promif_getprop() local
284 ci[7] = p1275_int2cell(len); in promif_getprop()
286 return ((len == -1) ? len : 0); in promif_getprop()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcp.c157 len); in interpret_dhcp()
261 return (len); in interpret_dhcp()
648 int len = **opt; in display_ascii() local
654 memcpy(buf, *opt, len); in display_ascii()
663 int len = **opt; in display_number() local
667 if (len > 4) { in display_number()
672 switch (len) { in display_number()
696 (*opt) += len; in display_number()
705 int i, len = **opt; in display_ascii_hex() local
711 if (len >= 255) { in display_ascii_hex()
[all …]
H A Dsnoop_rtmp.c66 interpret_rtmp(int flags, struct ddp_hdr *ddp, int len) in interpret_rtmp() argument
75 len -= DDPHDR_SIZE; in interpret_rtmp()
76 if (len < 0) in interpret_rtmp()
83 if (len < 1) in interpret_rtmp()
93 show_header("RTMP: ", "RTMP Header", len); in interpret_rtmp()
102 if (len < 3) in interpret_rtmp()
112 tuples = (len - 4) / 3; in interpret_rtmp()
113 runt = (len - 4) % 3; /* integral length? */ in interpret_rtmp()
122 show_header("RTMP: ", "RTMP Header", len); in interpret_rtmp()
127 len, runt != 0 ? " (short packet)" : ""); in interpret_rtmp()
[all …]
/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c86 size_t len; in main() local
130 len = strlen(p->pw_dir) + 1; in main()
131 if ((dir = (char *)malloc(len)) == NULL) in main()
133 (void) strncpy(dir, p->pw_dir, len); in main()
134 len = strlen(p->pw_name) + 1; in main()
135 if ((name = (char *)malloc(len)) == NULL) in main()
137 (void) strncpy(name, p->pw_name, len); in main()
153 len = strlen(dir) + 6; in main()
157 len = strlen(name) + 9; in main()
173 len = strlen(p->pw_shell) + 2; in main()
[all …]
/illumos-gate/usr/src/lib/lib9p/common/
H A Drfuncs.c67 size_t len; in r_basename() local
76 len = 1; in r_basename()
91 len = 1; in r_basename()
124 buf = malloc(len + 1); in r_basename()
128 if (len >= bufsize) { in r_basename()
133 memcpy(buf, comp, len); in r_basename()
134 buf[len] = '\0'; in r_basename()
162 size_t len; in r_dirname() local
171 len = 1; in r_dirname()
214 if (len >= bufsize) { in r_dirname()
[all …]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c104 int len; in parse_address() local
120 rh->rh_prefix = len; in parse_address()
145 len = rh->rh_prefix; in parse_address()
146 aptr += len / 8; in parse_address()
147 if ((len & 7) != 0) { in parse_address()
150 len = (len + 7) & ~7; in parse_address()
152 while (len < upper_lim) { in parse_address()
155 len += 8; in parse_address()
164 int len; in rhstr_to_ent() local
210 len = cp - address; in rhstr_to_ent()
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dswrand.c329 len -= bytes; in swrand_get_entropy()
336 while (len > 0) { in swrand_get_entropy()
387 if (len >= HASHSIZE) { in swrand_get_entropy()
414 if (len < HASHSIZE) { in swrand_get_entropy()
421 len -= size; in swrand_get_entropy()
435 while ((len)--) { \
462 buffer_bytes += len; in swrand_add_bytes_later()
723 len = MEMBLOCKSIZE; in physmem_ent_gen()
726 while (len) { in physmem_ent_gen()
753 len -= nbytes; in physmem_ent_gen()
[all …]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwsprintf.c52 size_t len; in wsprintf() local
64 len = strlen(p1) + 1; in wsprintf()
65 if (len > 1024) { in wsprintf()
66 p2 = malloc(len); in wsprintf()
74 if (mbstowcs(wstring, p2, len) == (size_t)-1) { in wsprintf()
75 for (i = 0; i < len; i++) { in wsprintf()
90 len = wcslen(wstring); in wsprintf()
91 if (len <= INT_MAX) in wsprintf()
92 return ((int)len); in wsprintf()
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Di386_copy.c41 i386_copyin(const void *src, vm_offset_t dest, const size_t len) in i386_copyin() argument
43 bcopy(src, PTOV(dest), len); in i386_copyin()
44 return(len); in i386_copyin()
48 i386_copyout(const vm_offset_t src, void *dest, const size_t len) in i386_copyout() argument
50 bcopy(PTOV(src), dest, len); in i386_copyout()
51 return(len); in i386_copyout()
56 i386_readin(const int fd, vm_offset_t dest, const size_t len) in i386_readin() argument
58 return (read(fd, PTOV(dest), len)); in i386_readin()
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_dev.c1091 size_t len; in devmap_handle_unmap_tail() local
1877 len -= mlen; in segdev_fault()
2102 mlen = len; in segdev_setprot()
2348 for (len = (len + PAGEOFFSET) & PAGEMASK; len; len -= PAGESIZE, in segdev_incore()
2430 if (len == 0) in ddi_segmap_setup()
2822 len = round_up_p2(len, PAGESIZE); in devmap_unload()
2828 if (len == 0) in devmap_unload()
2831 size = len; in devmap_unload()
2888 len = devmap_roundup(dhp, off, len, &pfn, &pgsize); in devmap_get_large_pgsize()
3101 len = round_up_p2(len, PAGESIZE); in devmap_load()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dfio.c310 int len;
360 len = 0;
363 len++;
419 *lenp = len;
434 int sum, len, nl; local
450 *rlen = len;
466 i = frdbuf(&buf[len], 5 - len, fn);
468 len = FAIL;
472 len += i;
526 } while (--len);
[all …]
/illumos-gate/usr/src/lib/libc/port/inet/
H A Dinet_ntop.c107 struct { int base, len; } best, cur; in inet_ntop6() member
124 cur.base = i, cur.len = 1; in inet_ntop6()
126 cur.len++; in inet_ntop6()
129 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
136 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
139 if (best.base != -1 && best.len < 2) in inet_ntop6()
149 i < (best.base + best.len)) { in inet_ntop6()
159 (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6()
168 if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ)) in inet_ntop6()
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_scsi.c162 len = ATOMIC32_GET(scmd->len) > dbuf->db_buf_size ? in sbd_do_read_xfer()
920 len = (len > task->task_expected_xfer_length) ? in sbd_handle_read()
1019 scmd->len = len; in sbd_handle_read()
1031 maxsize = (len > (128*1024)) ? 128*1024 : len; in sbd_handle_read()
1078 scmd->len = len; in sbd_handle_read()
1138 atomic_add_32(&scmd->len, -len); in sbd_do_write_xfer()
1602 len = (len > task->task_expected_xfer_length) ? in sbd_handle_write()
1656 scmd->len = len; in sbd_handle_write()
1688 scmd->len = len; in sbd_handle_write()
2577 atomic_add_32(&scmd->len, -len); in sbd_do_write_same_xfer()
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Doptcom.c189 int len; in svr4_optcom_req() local
310 opt->len = (t_uscalar_t)len; in svr4_optcom_req()
433 if (len < 0) { in svr4_optcom_req()
434 opt1->len = opt->len; in svr4_optcom_req()
437 opt1->len = (t_uscalar_t)len; in svr4_optcom_req()
920 bcopy(opt, optr, opt->len); in do_options_second_pass()
1389 *resptrp += topth->len; in do_opt_check_or_negotiate()
1451 topth->len += optlen; in do_opt_check_or_negotiate()
1721 bcopy(opt, optr, opt->len); in tpi_optcom_buf()
1948 t_uscalar_t len; in process_auxiliary_options() local
[all …]

12345678910>>...164