Home
last modified time | relevance | path

Searched refs:bufsize (Results 101 – 125 of 410) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/common/tsol/
H A Dstol.c228 size_t bufsize = sizeof (labeld_data_t); in str_to_label() local
306 if (datasize > bufsize) { in str_to_label()
311 bufsize = datasize; in str_to_label()
328 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) { in str_to_label()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dsecure.c231 static uint_t bufsize; /* size of outbuf */ in secure_putbuf() local
259 if (bufsize < out_buf.length) { in secure_putbuf()
264 bufsize = out_buf.length; in secure_putbuf()
266 bufsize = 0; in secure_putbuf()
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c105 void *buf, size_t bufsize) in pn_get_buf() argument
110 pnp->pn_bufsize = bufsize; in pn_get_buf()
112 error = copyinstr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen); in pn_get_buf()
114 error = copystr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen); in pn_get_buf()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dppriv.c67 getprivinfo(priv_impl_info_t *buf, size_t bufsize) in getprivinfo() argument
70 bufsize)); in getprivinfo()
/illumos-gate/usr/src/uts/common/syscall/
H A Dprofil.c43 profil(unsigned short *bufbase, size_t bufsize, ulong_t pcoffset, in profil() argument
53 p->p_prof.pr_size = bufsize; in profil()
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_subr.c343 size_t bufsize) in nis_leaf_of_r() argument
352 if (bufsize < nchars + 1) { in nis_leaf_of_r()
388 size_t bufsize) in nis_name_of_r() argument
396 bufsize = bufsize; in nis_name_of_r()
405 if (sl >= bufsize || (s[sl-1] != '.' && sl >= bufsize-1)) in nis_name_of_r()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c334 int bufsize = 128; in _getaddrinfo() local
408 buf = reallocf(buf, bufsize); in _getaddrinfo()
413 &result, buf, bufsize); in _getaddrinfo()
423 bufsize *= 2; in _getaddrinfo()
433 buf = reallocf(buf, bufsize); in _getaddrinfo()
438 buf, bufsize); in _getaddrinfo()
447 bufsize *= 2; in _getaddrinfo()
/illumos-gate/usr/src/cmd/ipcs/
H A Dipcs.c461 static size_t bufsize; in dumpmsgq() local
468 buf = malloc(bufsize = sizeof (struct msgsnap_head)); in dumpmsgq()
475 if (msgsnap(msqid, buf, bufsize, mtype) != 0) { in dumpmsgq()
482 if (bufsize >= buf->msgsnap_size) { in dumpmsgq()
487 buf = realloc(buf, bufsize = buf->msgsnap_size); in dumpmsgq()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpwnam_r.c120 size_t bufsize, struct passwd **result) in __posix_getpwuid_r() argument
126 if ((*result = getpwuid_r(uid, pwd, buffer, (uintptr_t)bufsize)) in __posix_getpwuid_r()
153 size_t bufsize, struct passwd **result) in __posix_getpwnam_r() argument
159 if ((*result = getpwnam_r(name, pwd, buffer, (uintptr_t)bufsize)) in __posix_getpwnam_r()
H A Dgetmntent.c226 static size_t bufsize = MNT_LINE_MAX; in getmntent_common() local
230 embuf.mbuf_bufsize = bufsize; in getmntent_common()
238 (void) atomic_swap_ulong((unsigned long *)&bufsize, in getmntent_common()
240 embuf.mbuf_bufsize = bufsize; in getmntent_common()
H A Dgetgrnam_r.c124 size_t bufsize, struct group **result) in __posix_getgrgid_r() argument
130 if ((*result = getgrgid_r(gid, grp, buffer, (uintptr_t)bufsize)) in __posix_getgrgid_r()
157 size_t bufsize, struct group **result) in __posix_getgrnam_r() argument
162 if ((*result = getgrnam_r(name, grp, buffer, (uintptr_t)bufsize)) in __posix_getgrnam_r()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/
H A Dnfsref.c259 size_t bufsize; in lookup() local
300 bufsize = sizeof (buf); in lookup()
301 err = reparse_deref(type, svc_data, buf, &bufsize); in lookup()
306 xdrmem_create(&xdr, buf, bufsize, XDR_DECODE); in lookup()
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c486 size_t oleft, ileft, bufsize, memincr; in do_conv() local
496 bufsize = memincr; in do_conv()
498 oleft = bufsize; in do_conv()
499 ptr = malloc(bufsize + sizeof (uint32_t)); in do_conv()
515 gprintf(0, "old bufsize: %u\n", bufsize); in do_conv()
526 to += bufsize - oleft; in do_conv()
528 bufsize += memincr; in do_conv()
530 gprintf(0, "new bufsize: %u\n", bufsize); in do_conv()
534 tolen = (uint32_t)(bufsize - oleft); in do_conv()
538 tolen = (uint32_t)(bufsize - oleft); in do_conv()
[all …]
/illumos-gate/usr/src/lib/libpicl/
H A Dpicl.c364 req_attrval.bufsize = (uint32_t)nbytes; in picl_get_propval()
365 if ((size_t)req_attrval.bufsize != nbytes) in picl_get_propval()
404 req_attrvalbyname.bufsize = (uint32_t)nbytes; in picl_get_propval_by_name()
405 if ((size_t)req_attrvalbyname.bufsize != nbytes) in picl_get_propval_by_name()
445 inargs->bufsize = (uint32_t)nbytes; in picl_set_propval()
446 if ((size_t)inargs->bufsize != nbytes) in picl_set_propval()
481 inargs->bufsize = (uint32_t)nbytes; in picl_set_propval_by_name()
482 if ((size_t)inargs->bufsize != nbytes) in picl_set_propval_by_name()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_stats.c215 of_timestamp(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_timestamp() argument
223 (void) strftime(buf, bufsize, "%F:%H.%M.%S", now_tm); in of_timestamp()
294 of_server_stats(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_server_stats() argument
333 (void) snprintf(buf, bufsize, "%llu", count); in of_server_stats()
344 of_itemize_stats(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_itemize_stats() argument
362 (void) snprintf(buf, bufsize, "%s", in of_itemize_stats()
366 (void) snprintf(buf, bufsize, "%s", srv->isd_servername); in of_itemize_stats()
389 (void) snprintf(buf, bufsize, "%llu", count); in of_itemize_stats()
395 of_rule_stats(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rule_stats() argument
457 (void) snprintf(buf, bufsize, "%llu", count); in of_rule_stats()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c54 int bufsize; in initifs() local
73 bufsize = numifs * sizeof (struct lifreq); in initifs()
75 if (buf == NULL || bufsize > maxbufsize) { in initifs()
78 maxbufsize = bufsize; in initifs()
88 lifc.lifc_len = bufsize; in initifs()
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dmain.c151 UINT32 subcap, void *buf, size_t bufsize) in get_tpm_capability() argument
164 if (datalen > bufsize) { in get_tpm_capability()
167 "(expected %u)\n"), cap, datalen, bufsize); in get_tpm_capability()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dlucid_context.c198 unsigned int bufsize = sizeof(gss_krb5_lucid_context_v1_t); in make_external_lucid_ctx_v1() local
202 if ((lctx = xmalloc(bufsize)) == NULL) { in make_external_lucid_ctx_v1()
207 memset(lctx, 0, bufsize); in make_external_lucid_ctx_v1()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.c117 int bufsize = 1024; in walk_partitions() local
129 if (pread(fd, buf, bufsize, (off_t)sec * secsz) != bufsize) { in walk_partitions()
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dkmem.c81 size_t bufsize, /* size of the objects it manages */ in kmem_cache_create() argument
101 uc = umem_cache_create(name, bufsize, align, in kmem_cache_create()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c226 size_t bufsize; in get_all_interfaces() local
250 bufsize = numifs * sizeof (struct ifreq); in get_all_interfaces()
251 if (!(buf = malloc(bufsize))) { in get_all_interfaces()
258 ifc.ifc_len = bufsize; in get_all_interfaces()
/illumos-gate/usr/src/lib/libexacct/common/
H A Dexacct_ops.c729 ea_unpack_object(ea_object_t **objp, int flag, void *buf, size_t bufsize) in ea_unpack_object() argument
748 fake.ef_bufsize = bufsize; in ea_unpack_object()
963 size_t bufsize; in write_header() local
996 bufsize = ea_pack_object(&hdr_grp, NULL, 0); in write_header()
997 if ((buf = ea_alloc(bufsize)) == NULL) { in write_header()
1002 if (ea_pack_object(&hdr_grp, buf, bufsize) == (size_t)-1) { in write_header()
1013 bcopy(&bskip, (char *)buf + bufsize - sizeof (bskip), in write_header()
1016 if (fwrite(buf, sizeof (char), bufsize, f->ef_fp) != bufsize || in write_header()
1023 ea_free(buf, bufsize); in write_header()
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice.c559 hal_device_property_get_as_string (HalDevice *device, const char *key, char *buf, size_t bufsize) in hal_device_property_get_as_string() argument
572 strncpy (buf, hal_property_get_string (prop), bufsize); in hal_device_property_get_as_string()
575 snprintf (buf, bufsize, "%d", hal_property_get_int (prop)); in hal_device_property_get_as_string()
578 snprintf (buf, bufsize, "%llu", (long long unsigned int) hal_property_get_uint64 (prop)); in hal_device_property_get_as_string()
581 snprintf (buf, bufsize, "%f", hal_property_get_double (prop)); in hal_device_property_get_as_string()
584 strncpy (buf, hal_property_get_bool (prop) ? "true" : "false", bufsize); in hal_device_property_get_as_string()
593 if (bufsize > 0) in hal_device_property_get_as_string()
597 iter != NULL && i < bufsize; in hal_device_property_get_as_string()
604 strncpy (buf + i, str, bufsize - i); in hal_device_property_get_as_string()
607 if (i < bufsize) { in hal_device_property_get_as_string()
/illumos-gate/usr/src/lib/libofmt/common/
H A Dofmt.c401 ofmt_fit_width(split_t **spp, uint_t width, char *value, uint_t bufsize) in ofmt_fit_width() argument
404 char *ptr = value, *lim = ptr + bufsize; in ofmt_fit_width()
560 uint_t bufsize) in ofmt_strerror() argument
625 (void) snprintf(buf, bufsize, in ofmt_strerror()
630 (void) snprintf(buf, bufsize, dgettext(TEXT_DOMAIN, s)); in ofmt_strerror()
631 (void) strlcat(buf, ebuf, bufsize); in ofmt_strerror()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dhostconfig.c129 unsigned bufsize; local
231 bufsize = numifs * sizeof (struct ifreq);
232 reqbuf = (struct ifreq *)malloc(bufsize);
238 ifc.ifc_len = bufsize;

12345678910>>...17