Home
last modified time | relevance | path

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

12345678910>>...17

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/
H A Dipmpstat.c422 sfunc_addr_address(ofmt_arg_t *ofmtarg, char *buf, uint_t bufsize) in sfunc_addr_address() argument
427 sockaddr2str(&adinfop->ad_addr, buf, bufsize); in sfunc_addr_address()
432 sfunc_addr_group(ofmt_arg_t *ofmtarg, char *buf, uint_t bufsize) in sfunc_addr_group() argument
445 (void) strlcpy(buf, grinfop->gr_ifname, bufsize); in sfunc_addr_group()
451 sfunc_addr_state(ofmt_arg_t *ofmtarg, char *buf, uint_t bufsize) in sfunc_addr_state() argument
456 enum2str(addr_state, adinfop->ad_state, buf, bufsize); in sfunc_addr_state()
461 sfunc_addr_inbound(ofmt_arg_t *ofmtarg, char *buf, uint_t bufsize) in sfunc_addr_inbound() argument
466 (void) strlcpy(buf, adinfop->ad_binding, bufsize); in sfunc_addr_inbound()
471 sfunc_addr_outbound(ofmt_arg_t *ofmtarg, char *buf, uint_t bufsize) in sfunc_addr_outbound() argument
513 (void) strlcat(buf, " ", bufsize); in sfunc_addr_outbound()
[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);
52 unsigned int offset, int bufsize, char *retbuf, int *retsize);
58 unsigned int offset, int bufsize, char *retbuf, int *retsize);
61 int bufsize, char *retbuf, int *retsize);
64 int bufsize, char *retbuf, int *retsize);
[all …]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Drights.c52 int bufsize; /* Explicitly set receive buffer size. */ member
65 .bufsize = 0,
75 .bufsize = 0,
85 .bufsize = 0,
95 .bufsize = sizeof (int) * 2 - 3,
105 .bufsize = sizeof (int) * 2 - 2,
115 .bufsize = sizeof (int) * 2 - 1,
128 .bufsize = 0,
139 .bufsize = -1,
150 .bufsize = -5,
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dcorectl.c56 core_set_global_path(const char *buf, size_t bufsize) in core_set_global_path() argument
58 return (syscall(SYS_corectl, CC_SET_GLOBAL_PATH, buf, bufsize)); in core_set_global_path()
62 core_get_global_path(char *buf, size_t bufsize) in core_get_global_path() argument
64 return (syscall(SYS_corectl, CC_GET_GLOBAL_PATH, buf, bufsize)); in core_get_global_path()
80 core_set_default_path(const char *buf, size_t bufsize) in core_set_default_path() argument
82 return (syscall(SYS_corectl, CC_SET_DEFAULT_PATH, buf, bufsize)); in core_set_default_path()
86 core_get_default_path(char *buf, size_t bufsize) in core_get_default_path() argument
88 return (syscall(SYS_corectl, CC_GET_DEFAULT_PATH, buf, bufsize)); in core_get_default_path()
104 core_set_process_path(const char *buf, size_t bufsize, pid_t pid) in core_set_process_path() argument
106 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.c67 static int bufsize; in _strcode2byte() local
75 if (!byte && (n*CSMAX+1) > bufsize) { in _strcode2byte()
78 bufsize = n * CSMAX + 1; in _strcode2byte()
79 if ((buf = malloc(bufsize * sizeof (char))) == NULL) in _strcode2byte()
80 bufsize = 0; in _strcode2byte()
110 static int bufsize; in _strbyte2code() local
116 if (!code && (n + 1) > bufsize) { in _strbyte2code()
119 bufsize = n + 1; in _strbyte2code()
120 if ((buf = (wchar_t *)malloc(bufsize * sizeof (wchar_t))) == in _strbyte2code()
122 bufsize = 0; in _strbyte2code()
/illumos-gate/usr/src/lib/libtsol/common/
H A Dprivate.c238 size_t bufsize = sizeof (labeld_data_t); in bslcvtfull() local
250 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) { in bslcvtfull()
274 (void) munmap((void *)callp, bufsize); in bslcvtfull()
290 (void) munmap((void *)callp, bufsize); in bslcvtfull()
329 size_t bufsize = sizeof (labeld_data_t); in bslcvt() local
342 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) { in bslcvt()
360 (void) munmap((void *)callp, bufsize); in bslcvt()
368 (void) munmap((void *)callp, bufsize); in bslcvt()
415 size_t bufsize = sizeof (labeld_data_t); in bclearcvtfull() local
427 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) { in bclearcvtfull()
[all …]
H A Dmisc.c92 size_t bufsize = sizeof (labeld_data_t); in blinset() local
99 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) { in blinset()
140 size_t bufsize = sizeof (labeld_data_t); in bslvalid() local
159 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) { in bslvalid()
193 size_t bufsize = sizeof (labeld_data_t); in bclearvalid() local
212 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) { in bclearvalid()
241 size_t bufsize = sizeof (labeld_data_t); in labelinfo() local
247 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) != SUCCESS) { in labelinfo()
281 size_t bufsize = sizeof (labeld_data_t); in labelvers() local
287 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) { in labelvers()
[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()
H A Dstob.c104 size_t bufsize = sizeof (labeld_data_t); in stobsl() local
127 if (datasize > bufsize) { in stobsl()
133 bufsize = datasize; in stobsl()
141 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) { in stobsl()
231 size_t bufsize = sizeof (labeld_data_t); in stobclear() local
245 if (datasize > bufsize) { in stobclear()
251 bufsize = datasize; in stobclear()
259 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) { in stobclear()
/illumos-gate/usr/src/uts/common/syscall/
H A Dexacctsys.c78 getacct_task(ac_info_t *ac_task, taskid_t tkid, void *buf, size_t bufsize, in getacct_task() argument
94 getacct_callback, buf, bufsize, sizep, EW_PARTIAL); in getacct_task()
101 getacct_proc(ac_info_t *ac_proc, pid_t pid, void *buf, size_t bufsize, in getacct_proc() argument
135 getacct_callback, buf, bufsize, sizep, EW_PARTIAL); in getacct_proc()
144 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) in getacct() argument
150 if (bufsize > EXACCT_MAX_BUFSIZE) in getacct()
151 bufsize = EXACCT_MAX_BUFSIZE; in getacct()
156 error = getacct_proc(&acg->ac_proc, id, buf, bufsize, &size); in getacct()
159 error = getacct_task(&acg->ac_task, id, buf, bufsize, &size); in getacct()
169 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) in putacct() argument
[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.c93 print_hc(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in print_hc() argument
100 (void) strlcpy(buf, info->hci_name, bufsize); in print_hc()
103 (void) snprintf(buf, bufsize, "%d", info->hci_timeout); in print_hc()
106 (void) snprintf(buf, bufsize, "%d", info->hci_count); in print_hc()
109 (void) snprintf(buf, bufsize, "%d", info->hci_interval); in print_hc()
112 (void) snprintf(buf, bufsize, "%c", in print_hc()
116 (void) snprintf(buf, bufsize, "%s", info->hci_test); in print_hc()
187 print_hc_result(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in print_hc_result() argument
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()
[all …]
H A Dilbadm_rules.c302 of_str(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_str() argument
309 (void) strlcpy(buf, rd->r_name, bufsize); in of_str()
312 (void) strlcpy(buf, rd->r_sgname, bufsize); in of_str()
316 (void) strlcpy(buf, rd->r_hcname, bufsize); in of_str()
324 of_proto(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_proto() argument
330 (void) strlcpy(buf, "TCP", bufsize); in of_proto()
332 (void) strlcpy(buf, "UDP", bufsize); in of_proto()
339 of_rl_ip(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rl_ip() argument
360 ip2str(ip, buf, bufsize, V6_ADDRONLY); in of_rl_ip()
365 buf += sl; bufsize -= sl; in of_rl_ip()
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_prop.c552 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto, in i_ipadm_get_hostmodel() argument
562 nbytes = snprintf(buf, *bufsize, "%d", MOD_PROP_PERM_RW); in i_ipadm_get_hostmodel()
565 nbytes = snprintf(buf, *bufsize, "weak"); in i_ipadm_get_hostmodel()
568 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto, in i_ipadm_get_hostmodel()
574 nbytes = snprintf(buf, *bufsize, "%s", in i_ipadm_get_hostmodel()
578 nbytes = snprintf(buf, *bufsize, "strong,src-priority,weak"); in i_ipadm_get_hostmodel()
583 if (nbytes >= *bufsize) { in i_ipadm_get_hostmodel()
585 *bufsize = nbytes + 1; in i_ipadm_get_hostmodel()
774 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto, in i_ipadm_get_ecnsack() argument
785 *bufsize - nbytes, "%s", ecn_sack_vals[i]); in i_ipadm_get_ecnsack()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dkstat.c407 size_t bufsize; in write_kstat_data() local
435 bufsize = user_kstat.ks_data_size; in write_kstat_data()
436 buf = kmem_alloc(bufsize + 1, KM_NOSLEEP); in write_kstat_data()
440 if (copyin(user_kstat.ks_data, buf, bufsize)) { in write_kstat_data()
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()
497 kbuf = kmem_alloc(bufsize + 1, KM_NOSLEEP); in write_kstat_data()
[all …]
/illumos-gate/usr/src/cmd/getopt/
H A Dgetopt.c61 size_t bufsize; in main() local
79 bufsize = BLOCKLEN; in main()
80 if ((outstr = (char *)malloc(bufsize)) == NULL) { in main()
98 ALLOC_BUFMEM(outstr, bufsize, 3); in main()
103 ALLOC_BUFMEM(outstr, bufsize, strlen(optarg)+1) in main()
113 ALLOC_BUFMEM(outstr, bufsize, 3) in main()
116 ALLOC_BUFMEM(outstr, bufsize, strlen(argv[optind])+1) in main()
/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.c41 size_t bufsize = BUFSIZ; in main() local
43 ret = sysinfo(SI_ISALIST, buf, bufsize); in main()
47 } else if (ret > bufsize) { in main()
50 buf = malloc(bufsize = ret); in main()
56 ret = sysinfo(SI_ISALIST, buf, bufsize); in main()
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-mgmtaux.c29 #define __hal_aux_snprintf(retbuf, bufsize, fmt, key, value, retsize) \ argument
30 if (bufsize <= 0) return XGE_HAL_ERR_OUT_OF_SPACE; \
31 retsize = xge_os_snprintf(retbuf, bufsize, fmt, key, \
33 if (retsize < 0 || retsize >= bufsize) return XGE_HAL_ERR_OUT_OF_SPACE;
35 #define __hal_aux_snprintf(retbuf, bufsize, fmt, key, value, retsize) \ argument
36 if (bufsize <= 0) return XGE_HAL_ERR_OUT_OF_SPACE; \
38 xge_assert(retsize < bufsize); \
39 if (retsize < 0 || retsize >= bufsize) \
51 #define __HAL_AUX_ENTRY_END(bufsize, retsize) \ argument
53 *retsize = bufsize - leftsize;
[all …]
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c564 sfunc_vrrp_conf(ofmt_arg_t *ofmtarg, char *buf, uint_t bufsize) in sfunc_vrrp_conf() argument
576 (void) snprintf(buf, bufsize, "%s", conf->vvc_name); in sfunc_vrrp_conf()
579 (void) snprintf(buf, bufsize, "%d", conf->vvc_vrid); in sfunc_vrrp_conf()
582 (void) snprintf(buf, bufsize, "%s", conf->vvc_link); in sfunc_vrrp_conf()
585 (void) snprintf(buf, bufsize, "IPv%d", in sfunc_vrrp_conf()
589 (void) snprintf(buf, bufsize, "%d", conf->vvc_pri); in sfunc_vrrp_conf()
592 (void) snprintf(buf, bufsize, "%d", conf->vvc_adver_int); 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()
[all …]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dadt_data.c29 int count, bufsize; in get_audit_export_data() local
75 bufsize = 256; in get_audit_export_data()
76 buf = (uchar_t *)malloc (bufsize); in get_audit_export_data()
79 if (count == bufsize) { in get_audit_export_data()
80 bufsize += 256; in get_audit_export_data()
81 buf = realloc (buf, bufsize); in get_audit_export_data()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_common.c1574 nss_pack_dbd(void *buffer, size_t bufsize, nss_db_params_t *p, size_t *poff) in nss_pack_dbd() argument
1585 blen = bufsize - off; in nss_pack_dbd()
1644 nss_pack(void *buffer, size_t bufsize, nss_db_root_t *rootp __unused, in nss_pack() argument
1670 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack()
1688 ret = nss_pack_dbd(buffer, bufsize, &tparam, &off); in nss_pack()
1697 blen = bufsize - off; in nss_pack()
1727 pbuf->data_len = (nssuint_t)(bufsize - off); in nss_pack()
1751 nss_pack_ent(void *buffer, size_t bufsize, nss_db_root_t *rootp __unused, in nss_pack_ent() argument
1767 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack_ent()
1780 ret = nss_pack_dbd(buffer, bufsize, &contextp->param, &off); in nss_pack_ent()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmakebuf.c92 sm_whatbuf(fp, bufsize, couldbetty) in sm_whatbuf() argument
94 size_t *bufsize;
102 *bufsize = SM_IO_BUFSIZ;
110 *bufsize = SM_IO_BUFSIZ;
144 *bufsize = st.st_blksize;
148 *bufsize = SM_IO_BUFSIZ;
/illumos-gate/usr/src/uts/common/os/
H A Dexacct.c155 exacct_vn_write_impl(ac_info_t *info, void *buf, ssize_t bufsize) in exacct_vn_write_impl() argument
173 bufsize, 0LL, UIO_SYSSPACE, FAPPEND, (rlim64_t)MAXOFFSET_T, in exacct_vn_write_impl()
192 exacct_vn_write(ac_info_t *info, void *buf, ssize_t bufsize) in exacct_vn_write() argument
208 error = exacct_vn_write_impl(info, buf, bufsize); in exacct_vn_write()
237 size_t bufsize; in exacct_create_header() local
249 bufsize = ea_pack_object(hdr_grp, NULL, 0); in exacct_create_header()
250 buf = kmem_alloc(bufsize, KM_SLEEP); in exacct_create_header()
251 (void) ea_pack_object(hdr_grp, buf, bufsize); in exacct_create_header()
260 bcopy(&bskip, (char *)buf + bufsize - sizeof (bskip), in exacct_create_header()
263 *sizep = bufsize; in exacct_create_header()
[all …]

12345678910>>...17