Home
last modified time | relevance | path

Searched refs:ssize (Results 1 – 25 of 30) sorted by relevance

12

/titanic_41/usr/src/lib/libtsol/common/
H A Dbtos.c56 static size_t ssize; /* current size of return string */ variable
323 if (ssize == 0) { in sbsltos()
325 if ((ssize = alloc_string(&sstring, ssize, 's')) == 0) in sbsltos()
331 if ((slen = bsltos(label, &sstring, ssize, in sbsltos()
338 if ((newsize = alloc_string(&sstring, ssize, in sbsltos()
343 ssize += newsize; in sbsltos()
369 while (wcstombs(NULL, wstring, 0) >= ssize) { in sbsltos()
373 if ((newsize = alloc_string(&sstring, ssize, 's')) == in sbsltos()
378 ssize += newsize; in sbsltos()
381 if ((wccount = wcstombs(sstring, wstring, ssize)) == -1) { in sbsltos()
[all …]
/titanic_41/usr/src/uts/common/vm/
H A Dvm_as.c877 size_t ssize; in as_fault() local
994 for (; rsize != 0; rsize -= ssize, raddr += ssize) { in as_fault()
1003 ssize = seg->s_base + seg->s_size - raddr; in as_fault()
1005 ssize = rsize; in as_fault()
1021 res = SEGOP_FAULT(hat, seg, raddr, ssize, type, rw); in as_fault()
1045 for (seg = segsav; addrsav < raddr; addrsav += ssize) { in as_fault()
1055 ssize = seg->s_base + seg->s_size - addrsav; in as_fault()
1057 ssize = raddr - addrsav; in as_fault()
1058 (void) SEGOP_FAULT(hat, seg, addrsav, ssize, in as_fault()
1163 size_t ssize; in as_setprot() local
[all …]
H A Dseg_spt.c75 static int segspt_unmap(struct seg *seg, caddr_t raddr, size_t ssize);
117 static int segspt_shmunmap(struct seg *seg, caddr_t raddr, size_t ssize);
342 segspt_unmap(struct seg *seg, caddr_t raddr, size_t ssize) in segspt_unmap() argument
360 ssize = P2ROUNDUP(ssize, share_size); in segspt_unmap()
362 if (raddr == seg->s_base && ssize == seg->s_size) { in segspt_unmap()
1734 segspt_shmunmap(struct seg *seg, caddr_t raddr, size_t ssize) in segspt_shmunmap() argument
1750 if (ssize != seg->s_size) { in segspt_shmunmap()
1753 ssize, seg->s_size); in segspt_shmunmap()
1760 hat_unshare(seg->s_as->a_hat, raddr, ssize, seg->s_szc); in segspt_shmunmap()
/titanic_41/usr/src/lib/libc/port/threads/
H A Ddoor_calls.c359 size_t ssize; in door_return() local
370 ssize = s.ss_size; in door_return()
395 if (ssize < (MINSTACK * (STACK_FRACTION/MINSTACK_FRACTION))) in door_return()
397 else if (ssize < DEFAULTSTACK) in door_return()
398 reserve = ssize / STACK_FRACTION; in door_return()
405 if (ssize > reserve) in door_return()
406 ssize -= reserve; in door_return()
408 ssize = 0; in door_return()
433 if (ssize > reserve) in door_return()
434 ssize -= reserve; in door_return()
[all …]
/titanic_41/usr/src/cmd/fs.d/nfs/mountd/
H A Dnetgroup.c114 int ssize; in netgroup_check() local
117 ssize = sysinfo(SI_SRPC_DOMAIN, domain, SYS_NMLN); in netgroup_check()
118 if (ssize > SYS_NMLN) { in netgroup_check()
120 domain = exmalloc(ssize); in netgroup_check()
121 ssize = sysinfo(SI_SRPC_DOMAIN, domain, ssize); in netgroup_check()
124 if (ssize <= 1) { in netgroup_check()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgenaddrs.c89 GETSOCKNAME_ARG3_TYPE ssize; in krb5_auth_con_genaddrs() local
91 ssize = sizeof(struct sockaddr_storage); in krb5_auth_con_genaddrs()
95 &ssize))) in krb5_auth_con_genaddrs()
111 ssize = sizeof(struct sockaddr_storage); in krb5_auth_con_genaddrs()
115 &ssize))) in krb5_auth_con_genaddrs()
/titanic_41/usr/src/uts/sun4u/lw8/io/
H A Dsgfru.c379 size_t ssize, size; in sgfru_getchildlist() local
412 ssize = (size_t)(max_cnt * sizeof (node_t)); in sgfru_getchildlist()
413 clistp = (node_t *)kmem_zalloc(ssize, KM_SLEEP); in sgfru_getchildlist()
419 kmem_free(clistp, ssize); in sgfru_getchildlist()
427 kmem_free(clistp, ssize); in sgfru_getchildlist()
432 kmem_free(clistp, ssize); in sgfru_getchildlist()
436 kmem_free(clistp, ssize); in sgfru_getchildlist()
558 size_t ssize, size; in sgfru_getsections() local
585 ssize = (size_t)(max_cnt * sizeof (section_t)); in sgfru_getsections()
586 sectp = (section_t *)kmem_zalloc(ssize, KM_SLEEP); in sgfru_getsections()
[all …]
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_hash.c170 size_t ssize; in cl_sctp_walk_list_stack() local
185 ssize = sizeof (in6_addr_t) * sctp->sctp_nsaddrs; in cl_sctp_walk_list_stack()
188 slist = kmem_alloc(ssize, cansleep ? KM_SLEEP : KM_NOSLEEP); in cl_sctp_walk_list_stack()
193 kmem_free(slist, ssize); in cl_sctp_walk_list_stack()
200 sctp_get_saddr_list(sctp, slist, ssize); in cl_sctp_walk_list_stack()
217 kmem_free(slist, ssize); in cl_sctp_walk_list_stack()
703 ssize_t ssize; in sctp_listen_hash_remove() local
705 ssize = sizeof (in6_addr_t) * sctp->sctp_nsaddrs; in sctp_listen_hash_remove()
706 slist = kmem_alloc(ssize, KM_SLEEP); in sctp_listen_hash_remove()
707 sctp_get_saddr_list(sctp, slist, ssize); in sctp_listen_hash_remove()
[all …]
H A Dsctp_conn.c305 size_t ssize; in sctp_conn_request() local
308 ssize = sizeof (in6_addr_t) * eager->sctp_nsaddrs; in sctp_conn_request()
309 slist = kmem_alloc(ssize, KM_NOSLEEP); in sctp_conn_request()
313 kmem_free(slist, ssize); in sctp_conn_request()
322 sctp_get_saddr_list(eager, slist, ssize); in sctp_conn_request()
626 size_t ssize; in sctp_connect() local
630 ssize = sizeof (in6_addr_t) * sctp->sctp_nsaddrs; in sctp_connect()
631 slist = kmem_alloc(ssize, KM_SLEEP); in sctp_connect()
634 sctp_get_saddr_list(sctp, slist, ssize); in sctp_connect()
/titanic_41/usr/src/cmd/auditreduce/
H A Dproc.c959 short ssize; local
1010 (void) adrf_short(&adrf, &ssize, 1);
1011 *buf = (char *)a_calloc(1, (size_t)(ssize + leadin));
1016 adr_short(&adr, &ssize, 1);
1017 if (fread(*buf + leadin, sizeof (char), ssize, fp) != ssize) {
1029 (void) adrf_short(&adrf, &ssize, 1);
1030 *buf = (char *)a_calloc(1, (size_t)(ssize + leadin));
1035 adr_short(&adr, &ssize, 1);
1036 if (fread(*buf + leadin, sizeof (char), ssize, fp) != ssize) {
/titanic_41/usr/src/lib/libproc/common/
H A Dproc_get_info.c109 ssize_t ssize; in proc_get_ldt() local
125 if ((ssize = read(fd, pldt, size)) < 0) in proc_get_ldt()
128 nldt = ssize / sizeof (struct ssd); in proc_get_ldt()
/titanic_41/usr/src/uts/common/os/
H A Daio.c913 size_t ssize; in aiosuspend() local
947 ssize = (sizeof (aiocb_t *) * nent); in aiosuspend()
950 ssize = (sizeof (caddr32_t) * nent); in aiosuspend()
953 cbplist = kmem_alloc(ssize, KM_NOSLEEP); in aiosuspend()
957 if (copyin(aiocb, cbplist, ssize)) { in aiosuspend()
1082 kmem_free(cbplist, ssize); in aiosuspend()
1219 size_t ssize; in alio() local
1234 ssize = (sizeof (aiocb_t *) * nent); in alio()
1235 cbplist = kmem_alloc(ssize, KM_SLEEP); in alio()
1238 if (copyin(aiocb_arg, cbplist, ssize) || in alio()
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_seq.c527 size_t ssize; member
555 rc->ssize = RCURSOR_MINSS;
556 rc->stack = malloc(rc->ssize * sizeof(EPGNO));
588 if (++rc->sp > rc->stack + rc->ssize) {
617 osize = rc->ssize;
618 rc->ssize *= 2;
619 e = realloc(rc->stack, rc->ssize * sizeof(EPGNO));
621 rc->ssize = osize;
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c564 int ssize; in smb_netgroup_match() local
570 ssize = sysinfo(SI_SRPC_DOMAIN, domain, SYS_NMLN); in smb_netgroup_match()
571 if (ssize > SYS_NMLN) { in smb_netgroup_match()
573 domain = malloc(ssize); in smb_netgroup_match()
576 ssize = sysinfo(SI_SRPC_DOMAIN, domain, ssize); in smb_netgroup_match()
579 if (ssize <= 1) in smb_netgroup_match()
/titanic_41/usr/src/uts/sun4u/opl/os/
H A Dopl.c324 uint64_t ssize, low, high, boundary; in opl_memlist_per_board() local
327 ssize = (1ull << OPL_MC_MEMBOARD_SHIFT); in opl_memlist_per_board()
335 boundary = roundup(low+1, ssize); in opl_memlist_per_board()
479 uint64_t boundary, ssize; in plat_build_mem_nodes() local
491 ssize = (1ull << OPL_MC_MEMBOARD_SHIFT); in plat_build_mem_nodes()
496 boundary = roundup(low+1, ssize); in plat_build_mem_nodes()
/titanic_41/usr/src/lib/libc/port/locale/
H A Dregcomp.c67 sopno ssize; /* malloced strip size (allocated) */ member
198 p->ssize = len/(size_t)2*(size_t)3 + (size_t)1; /* ugh */ in regcomp()
199 p->strip = (sop *)malloc(p->ssize * sizeof (sop)); in regcomp()
1235 enlarge(p, p->ssize + len); /* this many unexpected additions */ in dupl()
1236 assert(p->ssize >= p->slen + len); in dupl()
1261 if (p->slen >= p->ssize) in doemit()
1262 enlarge(p, (p->ssize+1) / 2 * 3); /* +50% */ in doemit()
1263 assert(p->slen < p->ssize); in doemit()
1326 if (p->ssize >= size) in enlarge()
1335 p->ssize = size; in enlarge()
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dplace.c326 size_t ssize; in gnu_comdat_sym() local
338 ssize = strlen(isp->is_name); in gnu_comdat_sym()
339 if ((strncmp(isp->is_name, gisp->is_name, ssize) == 0) && in gnu_comdat_sym()
340 (gisp->is_name[ssize] == '.')) in gnu_comdat_sym()
341 return ((char *)&gisp->is_name[ssize]); in gnu_comdat_sym()
/titanic_41/usr/src/cmd/troff/troff.d/
H A Dta.c483 int ssize; member
497 statep->ssize = size; in t_push()
518 size = statep->ssize; in t_pop()
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dsvc_door.c322 uint_t ssize; in svc_door_create() local
391 ssize = __rpc_default_door_buf_size; in svc_door_create()
393 ssize = RNDUP(sendsize); in svc_door_create()
400 su->su_iosz = ssize; in svc_door_create()
/titanic_41/usr/src/common/ctf/
H A Dctf_create.c1047 ssize_t msize, malign, ssize; in ctf_add_member() local
1117 ssize = off + msize; in ctf_add_member()
1120 ssize = ctf_get_ctt_size(fp, &dtd->dtd_data, NULL, NULL); in ctf_add_member()
1121 ssize = MAX(ssize, msize); in ctf_add_member()
1124 if (ssize > CTF_MAX_SIZE) { in ctf_add_member()
1126 dtd->dtd_data.ctt_lsizehi = CTF_SIZE_TO_LSIZE_HI(ssize); in ctf_add_member()
1127 dtd->dtd_data.ctt_lsizelo = CTF_SIZE_TO_LSIZE_LO(ssize); in ctf_add_member()
1129 dtd->dtd_data.ctt_size = (ushort_t)ssize; in ctf_add_member()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_dof.c645 size_t ssize, lsize; in dtrace_dof_create() local
853 ssize = sizeof (h) + dt_buf_len(&ddo->ddo_secs); in dtrace_dof_create()
855 h.dofh_loadsz = ssize + in dtrace_dof_create()
879 assert(ssize == sizeof (h) + sizeof (dof_sec_t) * ddo->ddo_nsecs); in dtrace_dof_create()
881 sp[ddo->ddo_strsec].dofs_offset = ssize + dt_buf_len(&ddo->ddo_ldata); in dtrace_dof_create()
893 sp->dofs_offset += ssize; in dtrace_dof_create()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dutil.c2691 size_t ssize = 0, psize = 0; in doprf() local
2735 ssize++; in doprf()
2738 ASSERT(ssize < sizeof (local)); in doprf()
2745 _n = (int)(prec - ssize); in doprf()
2747 (ssize < sizeof (local))) { in doprf()
2749 ssize++; in doprf()
2754 _n = (int)(width - ssize - psize); in doprf()
2774 _n = (int)(width - ssize - psize); in doprf()
/titanic_41/usr/src/cmd/acct/
H A Dacctprc1.c65 int ssize; variable
/titanic_41/usr/src/uts/common/fs/mntfs/
H A Dmntvnops.c1405 size_t ssize; in mntfs_copyout_elem() local
1439 ssize = SIZEOF_STRUCT(extmnttab, datamodel); in mntfs_copyout_elem()
1441 ssize = SIZEOF_STRUCT(mnttab, datamodel); in mntfs_copyout_elem()
1443 if (copyout(STRUCT_BUF(ktab), uemp, ssize)) in mntfs_copyout_elem()
/titanic_41/usr/src/uts/i86pc/io/
H A Drootnex.c3160 uint32_t psize, ssize; in rootnex_dvma_get_sgl() local
3176 ssize = dvs->dvs_len; in rootnex_dvma_get_sgl()
3179 psize = MIN(ssize, (maxseg - offset)); in rootnex_dvma_get_sgl()
3181 ssize -= psize; in rootnex_dvma_get_sgl()
3189 if (ssize == 0) { in rootnex_dvma_get_sgl()
3191 ssize = dvs->dvs_len; in rootnex_dvma_get_sgl()
3198 psize = MIN(ssize, maxseg); in rootnex_dvma_get_sgl()
3200 ssize -= psize; in rootnex_dvma_get_sgl()

12