Home
last modified time | relevance | path

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

123

/titanic_41/usr/src/cmd/audio/utilities/
H A DAudio.cc332 size_t bufsiz; in AsyncCopy() local
354 bufsiz = bptr - (caddr_t)tob->GetAddress(); in AsyncCopy()
355 if ((bptr == NULL) || (tob->GetByteCount() <= bufsiz)) { in AsyncCopy()
361 bufsiz = tob->GetByteCount() - bufsiz; in AsyncCopy()
364 if (!Undefined(limit) && (lim < bufsiz)) in AsyncCopy()
365 bufsiz = lim; in AsyncCopy()
368 (void) tohdr.Bytes_to_Bytes(bufsiz); in AsyncCopy()
369 err = ReadData((void*) bptr, bufsiz, frompos); in AsyncCopy()
370 limit = tohdr.Bytes_to_Time(bufsiz); in AsyncCopy()
379 bufsiz = (size_t)tohdr.Time_to_Bytes(2.0); in AsyncCopy()
[all …]
/titanic_41/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; \
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libidmap/common/
H A Ddirectory_error.c331 int bufsiz; in directory_error_expand() local
339 bufsiz = 0; in directory_error_expand()
356 (void) strcpy(buf + bufsiz, s); 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
[all …]
/titanic_41/usr/src/lib/libbc/csu/common/
H A Dmon.c112 monitor(char *lowpc, char *highpc, char *buf, int bufsiz, int cntsiz) in monitor() argument
157 if (ssiz >= bufsiz || lowpc >= highpc) in monitor()
176 ssiz = bufsiz; in monitor()
183 bufsiz -= o; in monitor()
184 if (bufsiz <= 0) in monitor()
187 if(bufsiz < o) in monitor()
188 o = ((float) bufsiz / o) * 65536; in monitor()
193 d->s_bufsiz = bufsiz; in monitor()
/titanic_41/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.c202 int c, bufsiz, offset; in pr_next() local
213 bufsiz = BUFSIZ; in pr_next()
216 if ((p = fgets(bufp + offset, bufsiz - offset, pvt->fp)) == NULL) { in pr_next()
225 if ((ndbuf = malloc(bufsiz + GROWBUF)) != NULL) in pr_next()
228 ndbuf = realloc(dbuf, bufsiz + GROWBUF); in pr_next()
232 bufsiz += GROWBUF; in pr_next()
H A Dgethostent.c514 static unsigned int bufsiz = 4095; local
526 buf = memget(bufsiz);
533 lifc.lifc_len = bufsiz;
544 if (lifc.lifc_len + 2 * sizeof(lifreq) < bufsiz)
550 if (bufsiz > 1000000)
553 memput(buf, bufsiz);
554 bufsiz += 4096;
619 memput(buf, bufsiz);
625 memput(buf, bufsiz);
670 static unsigned int bufsiz = 4095; local
[all …]
H A Dlcl_nw.c225 int c, bufsiz, offset = 0; in nw_next() local
237 bufsiz = sizeof(pvt->line); in nw_next()
240 p = fgets(bufp + offset, bufsiz - offset, pvt->fp); in nw_next()
247 if ((ndbuf = malloc(bufsiz + GROWBUF)) != NULL) in nw_next()
250 ndbuf = realloc(dbuf, bufsiz + GROWBUF); in nw_next()
254 bufsiz += GROWBUF; in nw_next()
/titanic_41/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()
/titanic_41/usr/src/lib/libast/common/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()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dutilities.c1120 unsigned int bufsiz; local
1130 bufsiz = ROUND_CHUNK_SIZE(off + 1);
1132 if (buf == NULL || cbufsiz == NULL || *cbufsiz != bufsiz) {
1133 if ((nbuf = realloc(buf, bufsiz)) == NULL)
1139 *cbufsiz = bufsiz;
1151 if (idx == bufsiz) {
1152 bufsiz += BUFFER_CHUNK_SIZE;
1153 if ((nbuf = realloc(buf, bufsiz)) == NULL) {
1162 *cbufsiz = bufsiz;
1210 GetString(bufp, bufsiz, st) in GetString() argument
[all …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libadm/common/
H A Ddevreserv.c345 size_t bufsiz; /* # bytes needed for lock data */ in readlocks() local
355 bufsiz = lockcount * sizeof (struct devlks); in readlocks()
356 if (alloc = malloc(bufsiz)) { in readlocks()
359 if (read(lkfilefd, alloc, bufsiz) != (ssize_t)bufsiz) in readlocks()
1097 size_t bufsiz; /* Size of buffer to alloc */ in reservdev() local
1115 bufsiz = (lockcount+1) * sizeof (struct reservdev *); in reservdev()
1116 if (rtnlist = malloc(bufsiz)) { in reservdev()
/titanic_41/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()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dlz4.c52 uint32_t bufsiz; in lz4_compress() local
55 ASSERT(d_len >= sizeof (bufsiz)); in lz4_compress()
57 bufsiz = real_LZ4_compress(s_start, &dest[sizeof (bufsiz)], s_len, in lz4_compress()
58 d_len - sizeof (bufsiz)); in lz4_compress()
61 if (bufsiz == 0) in lz4_compress()
70 *(uint32_t *)dest = BE_32(bufsiz); in lz4_compress()
72 return (bufsiz + sizeof (bufsiz)); in lz4_compress()
80 uint32_t bufsiz = BE_IN32(src); in lz4_decompress() local
83 if (bufsiz + sizeof (bufsiz) > s_len) in lz4_decompress()
90 return (LZ4_uncompress_unknownOutputSize(&src[sizeof (bufsiz)], in lz4_decompress()
[all …]
/titanic_41/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()
468 bufsiz = (ssc->ses_nobjects * 4) + (cc->ses_ntypes * 4) + 8; 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()
[all …]
/titanic_41/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
/titanic_41/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
/titanic_41/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()
/titanic_41/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_ioctl.c292 ioc.bufsiz = (uint_t)ioc32.bufsiz; in ibnex_devctl()
308 "bufsiz=%d", msg, ioc.cmd, ioc.buf, ioc.bufsiz); in ibnex_devctl()
348 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
364 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
418 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
425 if (ioc.bufsiz != snapshot_sz) { in ibnex_devctl()
428 " ", msg, ioc.bufsiz, snapshot_sz); in ibnex_devctl()
432 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
475 ioc.bufsiz, mode) != 0) { in ibnex_devctl()
482 if (ioc.bufsiz != ssiz) { in ibnex_devctl()
[all …]
/titanic_41/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);
/titanic_41/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()

123