Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/
H A Dipmpstat.c577 active = alloca(bufsize); in sfunc_group_interfaces()
579 inactive = alloca(bufsize); in sfunc_group_interfaces()
581 unusable = alloca(bufsize); in sfunc_group_interfaces()
613 (void) strlcat(buf, " ", bufsize); in sfunc_group_interfaces()
615 (void) strlcat(buf, "(", bufsize); in sfunc_group_interfaces()
617 (void) strlcat(buf, ")", bufsize); in sfunc_group_interfaces()
624 (void) strlcat(buf, "[", bufsize); in sfunc_group_interfaces()
626 (void) strlcat(buf, "]", bufsize); in sfunc_group_interfaces()
804 sockaddr2str(target, buf, bufsize); in sfunc_probe_target()
1015 char *targname = alloca(bufsize); in sfunc_targ_targets()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/include/
H A Dxgehal-mgmtaux.h34 int bufsize, char *retbuf, int *retsize);
37 int bufsize, char *retbuf, int *retsize);
40 int bufsize, char *retbuf, int *retsize);
43 int bufsize, char *retbuf, int *retsize);
46 int bufsize, char *retbuf, int *retsize);
49 int bufsize, char *retbuf, int *retsize);
61 int bufsize, char *retbuf, int *retsize);
64 int bufsize, char *retbuf, int *retsize);
67 int bufsize, char *retbuf, int *retsize);
73 int bufsize, char *retbuf, int *retsize);
[all …]
/illumos-gate/usr/src/cmd/nvmeadm/
H A Dnvmeadm_dev.c41 if (bufsize != NULL && *bufsize != 0) { in nvme_ioctl()
47 ptr = calloc(1, *bufsize); in nvme_ioctl()
54 nioc.n_len = *bufsize; in nvme_ioctl()
73 if (bufsize != NULL) in nvme_ioctl()
74 *bufsize = nioc.n_len; in nvme_ioctl()
86 size_t bufsize = sizeof (nvme_capabilities_t); in nvme_capabilities() local
97 size_t bufsize = sizeof (nvme_version_t); in nvme_version() local
108 size_t bufsize = NVME_IDENTIFY_BUFSIZE; in nvme_identify_ctrl() local
120 size_t bufsize = NVME_IDENTIFY_BUFSIZE; in nvme_identify_nsid() local
128 nvme_get_logpage(int fd, uint8_t logpage, size_t *bufsize) in nvme_get_logpage() argument
[all …]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Drights.c65 .bufsize = 0,
75 .bufsize = 0,
85 .bufsize = 0,
128 .bufsize = 0,
163 .bufsize = 0,
173 .bufsize = 0,
183 .bufsize = 0,
193 .bufsize = 0,
204 .bufsize = 0,
538 bufsize = CMSG_SPACE(bufsize); in recvtest()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dcorectl.c58 core_set_global_path(const char *buf, size_t bufsize) in core_set_global_path() argument
60 return (syscall(SYS_corectl, CC_SET_GLOBAL_PATH, buf, bufsize)); in core_set_global_path()
64 core_get_global_path(char *buf, size_t bufsize) in core_get_global_path() argument
66 return (syscall(SYS_corectl, CC_GET_GLOBAL_PATH, buf, bufsize)); in core_get_global_path()
82 core_set_default_path(const char *buf, size_t bufsize) in core_set_default_path() argument
84 return (syscall(SYS_corectl, CC_SET_DEFAULT_PATH, buf, bufsize)); in core_set_default_path()
88 core_get_default_path(char *buf, size_t bufsize) in core_get_default_path() argument
90 return (syscall(SYS_corectl, CC_GET_DEFAULT_PATH, buf, bufsize)); in core_get_default_path()
106 core_set_process_path(const char *buf, size_t bufsize, pid_t pid) in core_set_process_path() argument
108 return (syscall(SYS_corectl, CC_SET_PROCESS_PATH, buf, bufsize, pid)); in core_set_process_path()
[all …]
H A Dreadlink.c32 readlinkat(int fd, const char *path, char *buf, size_t bufsize) in readlinkat() argument
37 error = __systemcall(&rval, SYS_readlinkat, fd, path, buf, bufsize); in readlinkat()
45 readlink(const char *path, char *buf, size_t bufsize) in readlink() argument
51 error = __systemcall(&rval, SYS_readlink, path, buf, bufsize); in readlink()
56 return (readlinkat(AT_FDCWD, path, buf, bufsize)); in readlink()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c69 static int bufsize; in _strcode2byte() local
77 if (!byte && (n*CSMAX+1) > bufsize) { in _strcode2byte()
80 bufsize = n * CSMAX + 1; in _strcode2byte()
81 if ((buf = malloc(bufsize * sizeof (char))) == NULL) in _strcode2byte()
82 bufsize = 0; in _strcode2byte()
112 static int bufsize; in _strbyte2code() local
118 if (!code && (n + 1) > bufsize) { in _strbyte2code()
121 bufsize = n + 1; in _strbyte2code()
122 if ((buf = (wchar_t *)malloc(bufsize * sizeof (wchar_t))) == in _strbyte2code()
124 bufsize = 0; in _strbyte2code()
/illumos-gate/usr/src/lib/libtsol/common/
H A Dprivate.c240 size_t bufsize = sizeof (labeld_data_t); in bslcvtfull() local
276 (void) munmap((void *)callp, bufsize); in bslcvtfull()
292 (void) munmap((void *)callp, bufsize); in bslcvtfull()
331 size_t bufsize = sizeof (labeld_data_t); in bslcvt() local
362 (void) munmap((void *)callp, bufsize); in bslcvt()
370 (void) munmap((void *)callp, bufsize); in bslcvt()
417 size_t bufsize = sizeof (labeld_data_t); in bclearcvtfull() local
455 (void) munmap((void *)callp, bufsize); in bclearcvtfull()
471 (void) munmap((void *)callp, bufsize); in bclearcvtfull()
551 (void) munmap((void *)callp, bufsize); in bclearcvt()
[all …]
H A Dmisc.c92 size_t bufsize = sizeof (labeld_data_t); in blinset() local
140 size_t bufsize = sizeof (labeld_data_t); in bslvalid() local
193 size_t bufsize = sizeof (labeld_data_t); in bclearvalid() local
241 size_t bufsize = sizeof (labeld_data_t); in labelinfo() local
281 size_t bufsize = sizeof (labeld_data_t); in labelvers() local
291 (void) munmap((void *)callp, bufsize); in labelvers()
309 (void) munmap((void *)callp, bufsize); in labelvers()
316 (void) munmap((void *)callp, bufsize); in labelvers()
345 size_t bufsize = sizeof (labeld_data_t); in bltocolor_r() local
358 (void) munmap((void *)callp, bufsize); in bltocolor_r()
[all …]
H A Dsetflabel.c80 size_t bufsize = sizeof (labeld_data_t); in setflabel() local
111 if (datasize > bufsize) { in setflabel()
115 bufsize = datasize; in setflabel()
123 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) { in setflabel()
180 size_t bufsize = sizeof (labeld_data_t); in zonecopy() local
203 if (datasize > bufsize) { in zonecopy()
207 bufsize = datasize; in zonecopy()
228 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) { in zonecopy()
/illumos-gate/usr/src/uts/common/syscall/
H A Dexacctsys.c94 getacct_callback, buf, bufsize, sizep, EW_PARTIAL); in getacct_task()
150 if (bufsize > EXACCT_MAX_BUFSIZE) in getacct()
151 bufsize = EXACCT_MAX_BUFSIZE; in getacct()
178 if (bufsize == 0 || bufsize > EXACCT_MAX_BUFSIZE) in putacct()
181 kbuf = kmem_alloc(bufsize, KM_SLEEP); in putacct()
182 if (copyin(buf, kbuf, bufsize) != 0) { in putacct()
202 bufsize, flags, zone->zone_nodename); in putacct()
209 bufsize, flags); in putacct()
220 kmem_free(kbuf, bufsize); in putacct()
335 return (getacct(idtype, id, buf, bufsize)); in exacct()
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_prop.c576 if (nbytes >= *bufsize) { in i_ipadm_get_hostmodel()
578 *bufsize = nbytes + 1; in i_ipadm_get_hostmodel()
777 if (nbytes >= *bufsize) in i_ipadm_get_ecnsack()
811 *bufsize = nbytes + 1; in i_ipadm_get_ecnsack()
889 *bufsize = nbytes + 1; in i_ipadm_get_mtu()
928 *bufsize = nbytes + 1; in i_ipadm_get_metric()
975 *bufsize = nbytes + 1; in i_ipadm_get_usesrc()
1037 *bufsize = nbytes + 1; in i_ipadm_get_ifprop_flags()
1229 bufsize, ifname); in i_ipadm_getprop_common()
1252 bufsize == NULL || *bufsize == 0) { in ipadm_get_prop()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dexport_sec_context.c42 size_t bufsize, blen; local
64 bufsize = 0;
66 &bufsize)))
70 if ((obuffer = (krb5_octet *) xmalloc(bufsize)) == NULL) {
76 blen = bufsize;
83 interprocess_token->length = bufsize - blen;
98 if (obuffer && bufsize) {
99 memset(obuffer, 0, bufsize);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_hc.c100 (void) strlcpy(buf, info->hci_name, bufsize); in print_hc()
112 (void) snprintf(buf, bufsize, "%c", in print_hc()
195 (void) strlcpy(buf, srv->hcs_rule_name, bufsize); in print_hc_result()
198 (void) strlcpy(buf, srv->hcs_hc_name, bufsize); in print_hc_result()
201 (void) strlcpy(buf, srv->hcs_ID, bufsize); in print_hc_result()
206 (void) strlcpy(buf, "un-init", bufsize); in print_hc_result()
209 (void) strlcpy(buf, "unreach", bufsize); in print_hc_result()
212 (void) strlcpy(buf, "alive", bufsize); in print_hc_result()
215 (void) strlcpy(buf, "dead", bufsize); in print_hc_result()
218 (void) strlcpy(buf, "disabled", bufsize); in print_hc_result()
[all …]
H A Dilbadm_rules.c330 (void) strlcpy(buf, "TCP", bufsize); in of_proto()
332 (void) strlcpy(buf, "UDP", bufsize); in of_proto()
365 buf += sl; bufsize -= sl; in of_rl_ip()
366 *buf++ = '-'; bufsize--; in of_rl_ip()
395 (void) snprintf(buf, bufsize, "ANY"); in hcport_print()
407 bufsize)); in of_rport()
411 hcport_print(rd, buf, bufsize); in of_rport()
475 uint_t bufsize; member
489 sla->bufsize -= len; in srv2srvID()
502 sla.bufsize = bufsize; in of_rl_srvlist()
[all …]
/illumos-gate/usr/src/cmd/getopt/
H A Dgetopt.c64 size_t bufsize; in main() local
82 bufsize = BLOCKLEN; in main()
83 if ((outstr = (char *)malloc(bufsize)) == NULL) { in main()
101 ALLOC_BUFMEM(outstr, bufsize, 3); in main()
106 ALLOC_BUFMEM(outstr, bufsize, strlen(optarg)+1) in main()
116 ALLOC_BUFMEM(outstr, bufsize, 3) in main()
119 ALLOC_BUFMEM(outstr, bufsize, strlen(argv[optind])+1) in main()
/illumos-gate/usr/src/uts/common/io/
H A Dkstat.c407 size_t bufsize; in write_kstat_data() local
441 kmem_free(buf, bufsize + 1); in write_kstat_data()
447 kmem_free(buf, bufsize + 1); in write_kstat_data()
452 kmem_free(buf, bufsize + 1); in write_kstat_data()
457 kmem_free(buf, bufsize + 1); in write_kstat_data()
473 kmem_free(buf, bufsize + 1); in write_kstat_data()
501 kmem_free(buf, bufsize + 1); in write_kstat_data()
508 kmem_free(kbuf, bufsize + 1); in write_kstat_data()
509 kmem_free(buf, bufsize + 1); in write_kstat_data()
649 kmem_free(kbuf, bufsize + 1); in write_kstat_data()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcdio.c157 int sfdcdio(Sfio_t* f, size_t bufsize) in sfdcdio() argument
159 int sfdcdio(f, bufsize) in sfdcdio()
161 size_t bufsize;
187 if(bufsize > 0)
188 bufsize = (bufsize/dio.d_miniosz)*dio.d_miniosz;
189 if(bufsize <= 0)
190 bufsize = dio.d_miniosz*64;
191 if(bufsize > dio.d_maxiosz)
192 bufsize = dio.d_maxiosz;
197 if(!(buf = (Void_t*)memalign(dio.d_mem,bufsize)) )
[all …]
/illumos-gate/usr/src/cmd/isalist/
H A Disalist.c43 size_t bufsize = BUFSIZ; in main() local
45 ret = sysinfo(SI_ISALIST, buf, bufsize); in main()
49 } else if (ret > bufsize) { in main()
52 buf = malloc(bufsize = ret); in main()
58 ret = sysinfo(SI_ISALIST, buf, bufsize); in main()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dadt_data.c31 int count, bufsize; in get_audit_export_data() local
77 bufsize = 256; in get_audit_export_data()
78 buf = (uchar_t *)malloc (bufsize); in get_audit_export_data()
81 if (count == bufsize) { in get_audit_export_data()
82 bufsize += 256; in get_audit_export_data()
83 buf = realloc (buf, bufsize); in get_audit_export_data()
H A Dcdutils.c201 scmd.uscsi_cdb[7] = (bufsize >> 8) & 0xff; /* allocation length */ in get_configuration()
202 scmd.uscsi_cdb[8] = bufsize & 0xff; in get_configuration()
205 scmd.uscsi_buflen = bufsize; in get_configuration()
369 int bufsize = sizeof (buf); in get_disc_info() local
371 bzero(buf, bufsize); in get_disc_info()
377 scmd.uscsi_cdb[8] = bufsize & 0xff; in get_disc_info()
380 scmd.uscsi_buflen = bufsize; in get_disc_info()
415 int bufsize = sizeof (buf); in read_format_capacity() local
419 bzero(buf, bufsize); in read_format_capacity()
425 scmd.uscsi_cdb[8] = bufsize & 0xff; in read_format_capacity()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-mgmtaux.c38 xge_assert(retsize < bufsize); \
39 if (retsize < 0 || retsize >= bufsize) \
53 *retsize = bufsize - leftsize;
96 if (bufsize < XGE_OS_SPRINTF_STRLEN) { in xge_hal_aux_bar0_read()
135 if (bufsize < XGE_OS_SPRINTF_STRLEN) in xge_hal_aux_bar1_read()
195 __HAL_AUX_ENTRY_DECLARE(bufsize, retbuf); in xge_hal_aux_about_read()
223 __HAL_AUX_ENTRY_END(bufsize, retsize); in xge_hal_aux_about_read()
364 __HAL_AUX_ENTRY_END(bufsize, retsize); in xge_hal_aux_stats_tmac_read()
666 __HAL_AUX_ENTRY_END(bufsize, retsize); in xge_hal_aux_stats_rmac_read()
790 __HAL_AUX_ENTRY_END(bufsize, retsize); in xge_hal_aux_stats_herc_enchanced()
[all …]
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c585 (void) snprintf(buf, bufsize, "IPv%d", in sfunc_vrrp_conf()
595 (void) strlcpy(buf, "-----", bufsize); in sfunc_vrrp_conf()
606 (void) snprintf(buf, bufsize, "%s", in sfunc_vrrp_conf()
610 (void) snprintf(buf, bufsize, "%s", in sfunc_vrrp_conf()
615 bufsize); in sfunc_vrrp_conf()
620 buf, bufsize, B_FALSE); in sfunc_vrrp_conf()
630 bufsize); in sfunc_vrrp_conf()
636 (void) snprintf(buf, bufsize, "%s", in sfunc_vrrp_conf()
642 buf, bufsize, B_FALSE); in sfunc_vrrp_conf()
650 buf, bufsize, B_TRUE); in sfunc_vrrp_conf()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_common.c1592 blen = bufsize - off; in nss_pack_dbd()
1705 blen = bufsize - off; in nss_pack()
1799 blen = bufsize - off; in nss_pack_ent()
2012 size_t bufsize = 0; in _nsc_search() local
2070 _nsc_resizedoorbuf(bufsize); in _nsc_search()
2089 size_t bufsize = 0; in _nsc_setent_u() local
2152 _nsc_resizedoorbuf(bufsize); in _nsc_setent_u()
2166 size_t bufsize = 0; in _nsc_getent_u() local
2219 _nsc_resizedoorbuf(bufsize); in _nsc_getent_u()
2233 size_t bufsize = 0; in _nsc_endent_u() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmakebuf.c94 sm_whatbuf(fp, bufsize, couldbetty) in sm_whatbuf() argument
96 size_t *bufsize;
104 *bufsize = SM_IO_BUFSIZ;
112 *bufsize = SM_IO_BUFSIZ;
146 *bufsize = st.st_blksize;
150 *bufsize = SM_IO_BUFSIZ;

12345678910>>...17