/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/ |
H A D | ipmpstat.c | 422 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 …]
|
/titanic_44/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_dev.c | 30 nvme_ioctl(int fd, int ioc, size_t *bufsize, void **buf, uint64_t arg, in nvme_ioctl() argument 41 if (bufsize != NULL && *bufsize != 0) { in nvme_ioctl() 44 if ((nioc.n_buf = (uintptr_t)calloc(*bufsize, 1)) == NULL) in nvme_ioctl() 47 nioc.n_len = *bufsize; in nvme_ioctl() 64 if (bufsize != NULL) in nvme_ioctl() 65 *bufsize = nioc.n_len; in nvme_ioctl() 77 size_t bufsize = sizeof (nvme_capabilities_t); in nvme_capabilities() local 79 (void) nvme_ioctl(fd, NVME_IOC_CAPABILITIES, &bufsize, &cap, 0, NULL); in nvme_capabilities() 88 size_t bufsize = sizeof (nvme_version_t); in nvme_version() local 90 (void) nvme_ioctl(fd, NVME_IOC_VERSION, &bufsize, &vs, 0, NULL); in nvme_version() [all …]
|
/titanic_44/usr/src/cmd/avs/sdbc/ |
H A D | sd_diag.c | 67 int bufsize = DEF_SIZE; variable 163 bufsize = strtol(optarg, 0, 0); in parse_opts() 164 if (bufsize > (MAXBUF*4)) in parse_opts() 165 bufsize = MAXBUF*4; in parse_opts() 166 else if (bufsize < FBA_SIZE(1)) in parse_opts() 167 bufsize = FBA_SIZE(1); in parse_opts() 189 bufsize &= ~FBA_MASK; /* multiple of 512 bytes for SECTMODE I/O */ in parse_opts() 190 fba_num_bufsize = FBA_NUM(bufsize); in parse_opts() 242 r = pwrite(fd, buf1, bufsize, (off_t)(seekpos << SCTRSHFT)); in do_sdtest1() 252 r = pread(fd, buf2, bufsize, (off_t)(seekpos << SCTRSHFT)); in do_sdtest1() [all …]
|
/titanic_44/usr/src/uts/common/io/xge/hal/include/ |
H A D | xgehal-mgmtaux.h | 34 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 …]
|
/titanic_44/usr/src/lib/libc/port/sys/ |
H A D | corectl.c | 58 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 D | readlink.c | 32 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()
|
/titanic_44/usr/src/lib/libcurses/screen/ |
H A D | mbtranslate.c | 69 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()
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | exacctsys.c | 80 getacct_task(ac_info_t *ac_task, taskid_t tkid, void *buf, size_t bufsize, in getacct_task() argument 96 getacct_callback, buf, bufsize, sizep, EW_PARTIAL); in getacct_task() 103 getacct_proc(ac_info_t *ac_proc, pid_t pid, void *buf, size_t bufsize, in getacct_proc() argument 137 getacct_callback, buf, bufsize, sizep, EW_PARTIAL); in getacct_proc() 146 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) in getacct() argument 152 if (bufsize > EXACCT_MAX_BUFSIZE) in getacct() 153 bufsize = EXACCT_MAX_BUFSIZE; in getacct() 158 error = getacct_proc(&acg->ac_proc, id, buf, bufsize, &size); in getacct() 161 error = getacct_task(&acg->ac_task, id, buf, bufsize, &size); in getacct() 171 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) in putacct() argument [all …]
|
/titanic_44/usr/src/lib/libtsol/common/ |
H A D | private.c | 240 size_t bufsize = sizeof (labeld_data_t); in bslcvtfull() local 252 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) { in bslcvtfull() 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 344 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) { in bslcvt() 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 429 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) { in bclearcvtfull() [all …]
|
H A D | misc.c | 92 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 D | setflabel.c | 82 size_t bufsize = sizeof (labeld_data_t); in setflabel() local 113 if (datasize > bufsize) { in setflabel() 117 bufsize = datasize; in setflabel() 125 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) { in setflabel() 182 size_t bufsize = sizeof (labeld_data_t); in zonecopy() local 205 if (datasize > bufsize) { in zonecopy() 209 bufsize = datasize; in zonecopy() 230 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) { in zonecopy()
|
H A D | stob.c | 106 size_t bufsize = sizeof (labeld_data_t); in stobsl() local 129 if (datasize > bufsize) { in stobsl() 135 bufsize = datasize; in stobsl() 143 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) { in stobsl() 233 size_t bufsize = sizeof (labeld_data_t); in stobclear() local 247 if (datasize > bufsize) { in stobclear() 253 bufsize = datasize; in stobclear() 261 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) { in stobclear()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | export_sec_context.c | 42 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);
|
/titanic_44/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 542 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto, in i_ipadm_get_hostmodel() argument 552 nbytes = snprintf(buf, *bufsize, "%d", MOD_PROP_PERM_RW); in i_ipadm_get_hostmodel() 555 nbytes = snprintf(buf, *bufsize, "weak"); in i_ipadm_get_hostmodel() 558 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto, in i_ipadm_get_hostmodel() 564 nbytes = snprintf(buf, *bufsize, "%s", in i_ipadm_get_hostmodel() 568 nbytes = snprintf(buf, *bufsize, "strong,src-priority,weak"); in i_ipadm_get_hostmodel() 573 if (nbytes >= *bufsize) { in i_ipadm_get_hostmodel() 575 *bufsize = nbytes + 1; in i_ipadm_get_hostmodel() 759 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto, in i_ipadm_get_ecnsack() argument 770 *bufsize - nbytes, "%s", ecn_sack_vals[i]); in i_ipadm_get_ecnsack() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_hc.c | 93 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 D | ilbadm_rules.c | 302 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 …]
|
/titanic_44/usr/src/cmd/getopt/ |
H A D | getopt.c | 64 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()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | kstat.c | 407 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 …]
|
/titanic_44/usr/src/lib/libast/common/disc/ |
H A D | sfdcdio.c | 157 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 …]
|
/titanic_44/usr/src/cmd/isalist/ |
H A D | isalist.c | 43 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()
|
/titanic_44/usr/src/cmd/hal/utils/ |
H A D | adt_data.c | 31 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()
|
/titanic_44/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-mgmtaux.c | 29 #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 …]
|
/titanic_44/usr/src/cmd/vrrpadm/ |
H A D | vrrpadm.c | 564 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 …]
|
/titanic_44/usr/src/cmd/sendmail/libsm/ |
H A D | makebuf.c | 94 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;
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | nss_common.c | 1585 nss_pack_dbd(void *buffer, size_t bufsize, nss_db_params_t *p, size_t *poff) in nss_pack_dbd() argument 1596 blen = bufsize - off; in nss_pack_dbd() 1656 nss_pack(void *buffer, size_t bufsize, nss_db_root_t *rootp, in nss_pack() argument 1682 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack() 1700 ret = nss_pack_dbd(buffer, bufsize, &tparam, &off); in nss_pack() 1709 blen = bufsize - off; in nss_pack() 1739 pbuf->data_len = (nssuint_t)(bufsize - off); in nss_pack() 1764 nss_pack_ent(void *buffer, size_t bufsize, nss_db_root_t *rootp, in nss_pack_ent() argument 1780 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack_ent() 1793 ret = nss_pack_dbd(buffer, bufsize, &contextp->param, &off); in nss_pack_ent() [all …]
|