Home
last modified time | relevance | path

Searched refs:bufsiz (Results 1 – 25 of 67) sorted by relevance

123

/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudio.cc330 size_t bufsiz; in AsyncCopy() local
359 bufsiz = tob->GetByteCount() - bufsiz; in AsyncCopy()
363 bufsiz = lim; in AsyncCopy()
366 (void) tohdr.Bytes_to_Bytes(bufsiz); in AsyncCopy()
368 limit = tohdr.Bytes_to_Time(bufsiz); in AsyncCopy()
382 bufsiz = lim; in AsyncCopy()
392 lim = bufsiz; in AsyncCopy()
396 lim = bufsiz; in AsyncCopy()
398 if (bufsiz > 0) { in AsyncCopy()
403 if (bufsiz < lim) { in AsyncCopy()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.h45 #define NSCD_ALLOC_LOOKUP_BUFFER(bufp, bufsiz, hdrp, space, spsiz) \ argument
49 bufsiz = spsiz; \
51 (hdrp)->pbufsiz = bufsiz; \
52 (hdrp)->data_len = bufsiz - (hdrp)->data_off; \
55 bufsiz = (hdrp)->pbufsiz; \
56 if (bufsiz > spsiz) \
57 bufsiz = NSCD_DOORBUF_MAXLEN; \
58 (bufp) = alloca(bufsiz); \
62 (hdrp)->pbufsiz = bufsiz; \
63 (hdrp)->data_len = bufsiz - (hdrp)->data_off; \
/illumos-gate/usr/src/cmd/mailwrapper/
H A Dfgetln.c47 static size_t bufsiz = 0; in fgetln() local
52 bufsiz = BUFSIZ; in fgetln()
53 if ((buf = malloc(bufsiz)) == NULL) in fgetln()
57 if (fgets(buf, bufsiz, fp) == NULL) in fgetln()
62 size_t nbufsiz = bufsiz + BUFSIZ; in fgetln()
74 *len = bufsiz; in fgetln()
75 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL) in fgetln()
78 bufsiz = nbufsiz; in fgetln()
/illumos-gate/usr/src/lib/libidmap/common/
H A Ddirectory_error.c331 int bufsiz; in directory_error_expand() local
339 bufsiz = 0; in directory_error_expand()
357 bufsiz += strlen(s); in directory_error_expand()
362 buf[bufsiz] = c; in directory_error_expand()
363 bufsiz++; in directory_error_expand()
367 buf[bufsiz] = '\0'; in directory_error_expand()
368 bufsiz++; in directory_error_expand()
370 return (has_subst ? bufsiz : -1); in directory_error_expand()
384 int bufsiz; in directory_error_printable() local
395 if (bufsiz < 0) in directory_error_printable()
[all …]
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dsock2p.c39 inet_ntop (int family, const void *address, char *buf, size_t bufsiz) in inet_ntop() argument
47 if (strlen (p) >= bufsiz) in inet_ntop()
79 sockaddr2p (const struct sockaddr *s, char *buf, size_t bufsiz, int *port_p) in sockaddr2p() argument
95 if (bufsiz >= 2) in sockaddr2p()
101 if (inet_ntop (s->sa_family, addr, buf, bufsiz) == 0 && bufsiz >= 2) in sockaddr2p()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c285 size_t bufsiz, int flags) in ip6_sa2str() argument
296 if (bufsiz != 0U) { in ip6_sa2str()
297 strncpy(buf, tmp, bufsiz - 1); in ip6_sa2str()
298 buf[bufsiz - 1] = '\0'; in ip6_sa2str()
316 bufsiz >= IF_NAMESIZE) { in ip6_sa2str()
326 if (bufsiz != 0U) { in ip6_sa2str()
327 strncpy(buf, tmp, bufsiz - 1); in ip6_sa2str()
328 buf[bufsiz - 1] = '\0'; in ip6_sa2str()
H A Dlcl_pr.c196 int c, bufsiz, offset; in pr_next() local
207 bufsiz = BUFSIZ; in pr_next()
210 if ((p = fgets(bufp + offset, bufsiz - offset, pvt->fp)) == NULL) { in pr_next()
219 if ((ndbuf = malloc(bufsiz + GROWBUF)) != NULL) in pr_next()
222 ndbuf = realloc(dbuf, bufsiz + GROWBUF); in pr_next()
226 bufsiz += GROWBUF; in pr_next()
H A Dgethostent.c522 buf = memget(bufsiz);
546 if (bufsiz > 1000000)
549 memput(buf, bufsiz);
550 bufsiz += 4096;
615 memput(buf, bufsiz);
621 memput(buf, bufsiz);
695 buf = memget(bufsiz);
728 memput(buf, bufsiz);
729 bufsiz += 4096;
797 memput(buf, bufsiz);
[all …]
H A Dlcl_nw.c222 int c, bufsiz, offset = 0; in nw_next() local
234 bufsiz = sizeof(pvt->line); in nw_next()
237 p = fgets(bufp + offset, bufsiz - offset, pvt->fp); in nw_next()
244 if ((ndbuf = malloc(bufsiz + GROWBUF)) != NULL) in nw_next()
247 ndbuf = realloc(dbuf, bufsiz + GROWBUF); in nw_next()
251 bufsiz += GROWBUF; in nw_next()
/illumos-gate/usr/src/uts/common/io/ib/ibtl/
H A Dibtl_ibnex.c73 size_t *bufsiz, void (*callback)(dev_info_t *, char **)) in ibtl_ibnex_get_hca_info() argument
88 *bufsiz = 0; in ibtl_ibnex_get_hca_info()
259 if (nvlist_pack(nvl, buffer, bufsiz, NV_ENCODE_NATIVE, KM_SLEEP)) { in ibtl_ibnex_get_hca_info()
267 *bufsiz); in ibtl_ibnex_get_hca_info()
405 size_t *bufsiz) in ibtl_ibnex_get_hca_verbose_data() argument
417 *bufsiz = 0; in ibtl_ibnex_get_hca_verbose_data()
446 *bufsiz = strlen(tmp); in ibtl_ibnex_get_hca_verbose_data()
447 *buffer = kmem_alloc(*bufsiz, KM_SLEEP); in ibtl_ibnex_get_hca_verbose_data()
448 (void) strncpy(*buffer, tmp, *bufsiz); in ibtl_ibnex_get_hca_verbose_data()
451 "data = %s, size = 0x%x", *buffer, *bufsiz); in ibtl_ibnex_get_hca_verbose_data()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastcopy.c61 static int bufsiz; in astcopy() local
82 if (n > bufsiz) in astcopy()
85 bufsiz = roundof(n, BUFSIZ); in astcopy()
86 if (!(buf = newof(0, char, bufsiz, 0))) return(-1); in astcopy()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dutilities.c1120 unsigned int bufsiz; local
1130 bufsiz = ROUND_CHUNK_SIZE(off + 1);
1139 *cbufsiz = bufsiz;
1151 if (idx == bufsiz) {
1152 bufsiz += BUFFER_CHUNK_SIZE;
1162 *cbufsiz = bufsiz;
1210 GetString(bufp, bufsiz, st) in GetString() argument
1212 unsigned int *bufsiz;
1233 AllocStringBuffer(bufp, bufsiz, size) in AllocStringBuffer() argument
1235 unsigned int *bufsiz;
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/hostbridge/
H A Dhb_mdesc.c171 ssize_t bufsiz = 0; in hb_mdesc_init() local
184 bufsiz = ldom_get_core_md(lhp, &bufp); in hb_mdesc_init()
186 bufsiz = ldom_get_local_md(lhp, &bufp); in hb_mdesc_init()
188 if (bufsiz <= 0) { in hb_mdesc_init()
196 hb_free(bufp, (size_t)bufsiz); in hb_mdesc_init()
203 hb_free(bufp, (size_t)bufsiz); in hb_mdesc_init()
/illumos-gate/usr/src/common/lz4/
H A Dlz4.c74 uint32_t bufsiz; in lz4_compress() local
77 ASSERT(d_len >= sizeof (bufsiz)); in lz4_compress()
79 bufsiz = real_LZ4_compress(s_start, &dest[sizeof (bufsiz)], s_len, in lz4_compress()
80 d_len - sizeof (bufsiz)); in lz4_compress()
83 if (bufsiz == 0) in lz4_compress()
93 *(uint32_t *)(void *)dest = BE_32(bufsiz); in lz4_compress()
95 *(uint32_t *)(void *)dest = htonl(bufsiz); in lz4_compress()
98 return (bufsiz + sizeof (bufsiz)); in lz4_compress()
107 uint32_t bufsiz = BE_IN32(s_start); in lz4_decompress() local
113 if (bufsiz + sizeof (bufsiz) > s_len) in lz4_decompress()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dis_local_host.c80 int bufsiz; in is_local_if() local
97 bufsiz = lifn.lifn_count * sizeof (struct lifreq); in is_local_if()
99 if ((buf = malloc(bufsiz)) == NULL) { in is_local_if()
107 lifc.lifc_len = bufsiz; in is_local_if()
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevreserv.c344 size_t bufsiz; /* # bytes needed for lock data */ in readlocks() local
354 bufsiz = lockcount * sizeof (struct devlks); in readlocks()
355 if (alloc = malloc(bufsiz)) { in readlocks()
358 if (read(lkfilefd, alloc, bufsiz) != (ssize_t)bufsiz) in readlocks()
1099 size_t bufsiz; /* Size of buffer to alloc */ in reservdev() local
1117 bufsiz = (lockcount+1) * sizeof (struct reservdev *); in reservdev()
1118 if (rtnlist = malloc(bufsiz)) { in reservdev()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_finddev.c183 int64_t bufsiz; in finddev_readdir_devfs() local
197 rv = modctl(MODDEVREADDIR, path, strlen(path), NULL, &bufsiz); in finddev_readdir_devfs()
204 assert(bufsiz != 0); in finddev_readdir_devfs()
205 if ((pathlist = malloc(bufsiz)) == NULL) { in finddev_readdir_devfs()
211 pathlist, &bufsiz); in finddev_readdir_devfs()
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses_ses.c445 int err, amt, bufsiz, tidx, oidx; in ses_getputstat() local
466 bufsiz = 2; in ses_getputstat()
473 cdb[3] = bufsiz >> 8; in ses_getputstat()
474 cdb[4] = bufsiz & 0xff; in ses_getputstat()
476 sdata = kmem_alloc(bufsiz, slp); in ses_getputstat()
484 lp->uscsi_buflen = bufsiz; in ses_getputstat()
491 kmem_free(sdata, bufsiz); in ses_getputstat()
514 cdb[3] = bufsiz >> 8; in ses_getputstat()
515 cdb[4] = bufsiz & 0xff; in ses_getputstat()
521 lp->uscsi_buflen = bufsiz; in ses_getputstat()
[all …]
/illumos-gate/usr/src/uts/common/sys/usb/hubd/
H A Dhubd_impl.h67 uint_t bufsiz; /* data buffer size */ member
77 uint32_t bufsiz; /* data buffer size */ member
/illumos-gate/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_ioctl.c292 ioc.bufsiz = (uint_t)ioc32.bufsiz; in ibnex_devctl()
348 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
364 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
482 if (ioc.bufsiz != ssiz) { in ibnex_devctl()
485 msg, ioc.bufsiz, ssiz); in ibnex_devctl()
545 if (ioc.bufsiz != ssiz) { in ibnex_devctl()
611 if (ioc.bufsiz != ssiz) { in ibnex_devctl()
614 msg, ioc.bufsiz, ssiz); in ibnex_devctl()
632 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
659 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.echod/
H A Din.echod.c56 size_t bufsiz) in echo_dg() argument
58 (void) safe_sendto(s, buf, bufsiz, 0, sap, sa_size); in echo_dg()
/illumos-gate/usr/src/uts/common/sys/sata/
H A Dsata_cfgadm.h62 uint_t bufsiz; /* data buffer size */ member
73 uint32_t bufsiz; /* data buffer size */ member
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/
H A Dcpu_mdesc.c348 ssize_t bufsiz = 0; in cpu_mdesc_init() local
361 bufsiz = ldom_get_core_md(lhp, &bufp); in cpu_mdesc_init()
363 bufsiz = ldom_get_local_md(lhp, &bufp); in cpu_mdesc_init()
365 if (bufsiz <= 0) { in cpu_mdesc_init()
373 cpu_free(bufp, (size_t)bufsiz); in cpu_mdesc_init()
390 cpu_free(bufp, (size_t)bufsiz); in cpu_mdesc_init()
/illumos-gate/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss_misc.c131 u_int bufsiz; local
138 bufsiz = xdr_sizeof(xdr_func, xdr_ptr) +
140 if ((buf = (char *)malloc(bufsiz)) == NULL) {
145 xdrmem_create(&temp_xdrs, buf, bufsiz, XDR_ENCODE);
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_ht.c163 rap->rxa_wnd = (bufsiz == 0) ? IEEE80211_AGGR_BAWMAX in ampdu_rx_start()
164 : min((uint16_t)bufsiz, IEEE80211_AGGR_BAWMAX); in ampdu_rx_start()
1069 int bufsiz; in ieee80211_addba_request() local
1074 bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ); in ieee80211_addba_request()
1092 int bufsiz; in ieee80211_addba_response() local
1096 bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ); in ieee80211_addba_response()
1141 int tid, ac, bufsiz; in ieee80211_aggr_recv_action() local
1154 bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ); in ieee80211_aggr_recv_action()
1175 ampdu_rx_start(rap, bufsiz, in ieee80211_aggr_recv_action()
1202 bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ); in ieee80211_aggr_recv_action()
[all …]

123