/titanic_51/usr/src/cmd/vntsd/ |
H A D | write.c | 55 uint_t sz; /* data size */ member 90 * sequence. buf size must be at least sz+1. 93 skip_terminal_null(char *buf, int sz) in skip_terminal_null() argument 98 assert(sz >= 0); in skip_terminal_null() 106 for (i = sz; i > 0; i--) { in skip_terminal_null() 112 sz++; in skip_terminal_null() 115 sz--; in skip_terminal_null() 117 if (sz == 0) { in skip_terminal_null() 118 return (sz); in skip_terminal_null() 121 for (i = 0; i < sz; in skip_terminal_null() 170 read_vcc(vntsd_cons_t * consp,char * buf,ssize_t * sz) read_vcc() argument 213 int sz; vntsd_write_thread() local [all...] |
/titanic_51/usr/src/cmd/sgs/libelf/common/ |
H A D | input.c | 87 _elf_vm(Elf * elf, size_t base, size_t sz) in _elf_vm() argument 101 if ((base + sz) > elf->ed_fsz) { in _elf_vm() 113 if (elf->ed_vm == 0 || sz == 0) in _elf_vm() 127 tail = base + sz + _elf_pagesize - 1; in _elf_vm() 133 sz = 0; in _elf_vm() 147 if (sz != 0) { in _elf_vm() 155 if (elf->ed_imagesz - off < sz) in _elf_vm() 156 sz = elf->ed_imagesz - off; in _elf_vm() 159 (read(elf->ed_fd, iop, sz) != sz)) { in _elf_vm() 203 register size_t sz; _elf_inmap() local 274 _elf_unmap(char * p,size_t sz) _elf_unmap() argument [all...] |
H A D | output.c | 50 _elf_outmap(int fd, size_t sz, unsigned int *pflag) in _elf_outmap() argument 59 if ((!*pflag) && (ftruncate(fd, (off_t)sz) == 0) && in _elf_outmap() 60 (p = mmap((char *)0, sz, PROT_READ+PROT_WRITE, in _elf_outmap() 73 if ((p = (char *)calloc(1, sz)) == 0) in _elf_outmap() 80 _elf_outsync(int fd, char *p, size_t sz, unsigned int flag) in _elf_outsync() argument 85 if ((fd = msync(p, sz, MS_ASYNC)) == -1) in _elf_outsync() 87 (void) munmap(p, sz); in _elf_outsync() 89 return (sz); in _elf_outsync() 94 (write(fd, p, sz) == sz)) { in _elf_outsync() [all...] |
H A D | update.c | 162 register Lword sz; in _elf_upd_lib() local 230 if ((sz = (Lword)_elf_entsz(elf, sh->sh_type, ver)) != 0) in _elf_upd_lib() 232 sh->sh_entsize = (Half)sz; in _elf_upd_lib() 233 sz = 0; in _elf_upd_lib() 246 if (sz % j != 0) in _elf_upd_lib() 247 sz += j - sz % j; in _elf_upd_lib() 249 d->db_data.d_off = (off_t)sz; in _elf_upd_lib() 250 d->db_xoff = sz; in _elf_upd_lib() 251 sz in _elf_upd_lib() 346 register Lword sz; _elf_upd_usr() local 461 Xword hi, sz; wrt() local 745 size_t sz; _elfxx_update() local [all...] |
/titanic_51/usr/src/cmd/mandoc/ |
H A D | mandoc.c | 42 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument 56 if (NULL == sz) in mandoc_escape() 57 sz = &local_sz; in mandoc_escape() 67 *sz = 0; in mandoc_escape() 78 *sz = 2; in mandoc_escape() 136 *sz = 2; in mandoc_escape() 143 *sz = 1; in mandoc_escape() 211 *sz = 1; in mandoc_escape() 217 *sz = *end - *start; in mandoc_escape() 235 *sz in mandoc_escape() 544 mandoc_eos(const char * p,size_t sz) mandoc_eos() argument 591 mandoc_strntoi(const char * p,size_t sz,int base) mandoc_strntoi() argument [all...] |
H A D | preconv.c | 112 size_t sz, phsz; in preconv_cue() local 115 sz = b->sz - offset; in preconv_cue() 119 if (NULL == (eoln = memchr(ln, '\n', sz))) in preconv_cue() 120 eoln = ln + sz; in preconv_cue() 124 if ((sz = (size_t)(eoln - ln)) < 10 || in preconv_cue() 131 sz -= 10; in preconv_cue() 133 while (sz > 0) { in preconv_cue() 134 while (sz > 0 && ' ' == *ln) { in preconv_cue() 136 sz in preconv_cue() [all...] |
H A D | eqn.c | 288 size_t sz; in eqn_read() local 316 sz = strlen(p + pos) + 1; in eqn_read() 317 ep->data = mandoc_realloc(ep->data, ep->sz + sz + 1); in eqn_read() 321 if (0 == ep->sz) in eqn_read() 324 ep->sz += sz; in eqn_read() 325 strlcat(ep->data, p + pos, ep->sz + 1); in eqn_read() 326 strlcat(ep->data, " ", ep->sz + 1); in eqn_read() 349 eqn_def_find(struct eqn_node *ep, const char *key, size_t sz) in eqn_def_find() argument 367 eqn_next(struct eqn_node * ep,char quote,size_t * sz,int repl) eqn_next() argument 462 eqn_nexttok(struct eqn_node * ep,size_t * sz) eqn_nexttok() argument 472 eqn_nextrawtok(struct eqn_node * ep,size_t * sz) eqn_nextrawtok() argument 492 size_t i, sz; eqn_tok_parse() local 600 size_t sz; eqn_delim() local 625 size_t sz; eqn_undef() local 644 size_t sz; eqn_def() local 702 size_t i, sz; eqn_parse() local [all...] |
H A D | chars.c | 102 mchars_spec2cp(const struct mchars *arg, const char *p, size_t sz) in mchars_spec2cp() argument 106 ln = find(arg, p, sz); in mchars_spec2cp() 107 return(ln != NULL ? ln->unicode : sz == 1 ? (unsigned char)*p : -1); in mchars_spec2cp() 111 mchars_num2char(const char *p, size_t sz) in mchars_num2char() argument 115 i = mandoc_strntoi(p, sz, 10); in mchars_num2char() 120 mchars_num2uc(const char *p, size_t sz) in mchars_num2uc() argument 124 i = mandoc_strntoi(p, sz, 16); in mchars_num2uc() 131 const char *p, size_t sz, size_t *rsz) in mchars_spec2str() argument 135 ln = find(arg, p, sz); in mchars_spec2str() 138 return(sz in mchars_spec2str() 157 find(const struct mchars * tab,const char * p,size_t sz) find() argument [all...] |
/titanic_51/usr/src/cmd/svc/startd/ |
H A D | env.c | 263 size_t sz; in set_smf_env() local 276 sz = strlen(path) + 1; in set_smf_env() 277 *np = startd_alloc(sz); in set_smf_env() 278 (void) strlcpy(*np, path, sz); in set_smf_env() 283 sz = sizeof ("SMF_FMRI=") + strlen(inst->ri_i.i_fmri); in set_smf_env() 284 *np = startd_alloc(sz); in set_smf_env() 285 (void) strlcpy(*np, "SMF_FMRI=", sz); in set_smf_env() 286 (void) strlcat(*np, inst->ri_i.i_fmri, sz); in set_smf_env() 291 sz = sizeof ("SMF_METHOD=") + strlen(method); in set_smf_env() 292 *np = startd_alloc(sz); in set_smf_env() [all...] |
/titanic_51/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_overflow.c | 92 u_int32_t sz; local 95 memmove(&sz, (char *)p + sizeof(db_pgno_t), sizeof(u_int32_t)); 96 *ssz = sz; 99 if (pg == P_INVALID || sz == 0) 103 if (*bufsz < sz) { 104 *buf = (char *)(*buf == NULL ? malloc(sz) : realloc(*buf, sz)); 107 *bufsz = sz; 119 nb = MIN(sz, plen); 123 if ((sz 150 u_int32_t sz; global() local 202 u_int32_t sz; global() local [all...] |
/titanic_51/usr/src/lib/libast/common/sfio/ |
H A D | sfpeek.c | 42 { reg ssize_t n, sz; local 46 if((sz = size) == 0 || !bp) 70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0); 72 if(*bp && sz >= 0) 73 return sz; 77 if(sz < 0) 82 { if(sz > n) 83 sz = n; 84 f->next += sz; 88 return (sz >= 0 && n >= sz) ? sz : n;
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfpeek.c | 42 { reg ssize_t n, sz; local 46 if((sz = size) == 0 || !bp) 70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0); 72 if(*bp && sz >= 0) 73 return sz; 77 if(sz < 0) 82 { if(sz > n) 83 sz [all...] |
/titanic_51/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | wrap_size_limit.c | 148 OM_uint32 sz = req_output_size; local 151 while (sz > 0 && krb5_encrypt_size(sz, ctx->enc->enctype) + 16 > req_output_size) 152 sz--; 154 if (sz > 16) 155 sz -= 16; 157 sz = 0; 161 if (sz > 65535) 162 sz -= 65535; 164 sz [all...] |
/titanic_51/usr/src/uts/sparc/v9/os/ |
H A D | simulator.c | 79 int sz, nf = 0, ltlend = 0; in do_unaligned() local 118 case 0: sz = 4; in do_unaligned() 122 sz = 4; /* ldfsr/stfsr */ in do_unaligned() 124 sz = 8; /* ldxfsr/stxfsr */ in do_unaligned() 128 case 2: sz = 16; in do_unaligned() 130 case 3: sz = 8; in do_unaligned() 137 if ((sz > 4) && (fsrflg == 0)) { in do_unaligned() 141 if ((sz == 16) && ((rd & 0x1) != 0)) in do_unaligned() 151 sz = 4; break; in do_unaligned() 156 sz in do_unaligned() 1317 int sz; calc_memaddr() local 1423 int sz = 0; instr_size() local [all...] |
/titanic_51/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_cck_common.c | 88 int8_t sz; in kiconv_utf8_to_cck() local 111 sz = u8_number_of_bytes[*ib]; in kiconv_utf8_to_cck() 123 if (sz == 1) { in kiconv_utf8_to_cck() 136 if (sz <= 0) { in kiconv_utf8_to_cck() 144 if (ibtail - ib < sz) { in kiconv_utf8_to_cck() 160 for (i = 2; i < sz; i++) { in kiconv_utf8_to_cck() 173 sz = ptr_utf8tocck(u8, &ib, ibtail, ob, obtail, &ret_val); in kiconv_utf8_to_cck() 174 if (sz < 0) { in kiconv_utf8_to_cck() 179 ob += sz; in kiconv_utf8_to_cck() 201 int8_t sz; in kiconvstr_utf8_to_cck() local [all...] |
/titanic_51/usr/src/cmd/dtrace/test/tst/common/json/ |
H A D | tst.usdt.d.out | 1 [0] sz 445.890000 odd false even true 2 [1] sz 793.684200 odd true even false 3 [2] sz 1412.757876 odd false even true 4 [3] sz 2514.709019 odd true even false 5 [4] sz 4476.182054 odd false even true 6 [5] sz 7967.604057 odd true even false 7 [6] sz 14182.335221 odd false even true 8 [8] sz 44935.310914 odd false even true 9 [9] sz 79984.853427 odd true even false
|
/titanic_51/usr/src/common/unicode/ |
H A D | u8_textprep.c | 345 int sz; in u8_validate() local 372 sz = u8_number_of_bytes[*ib]; in u8_validate() 373 if (sz == U8_ILLEGAL_CHAR) { in u8_validate() 378 if (sz == U8_OUT_OF_RANGE_CHAR || in u8_validate() 379 (validate_ucs2_range_only && sz > U8_MAX_BYTES_UCS2)) { in u8_validate() 389 if ((ibtail - ib) < sz) { in u8_validate() 394 if (sz == 1) { in u8_validate() 406 for (i = 1; i < sz; i++) { in u8_validate() 425 s1 = ib - sz; in u8_validate() 462 do_case_conv(int uv, uchar_t *u8s, uchar_t *s, int sz, boolean_ argument 693 combining_class(size_t uv,uchar_t * s,size_t sz) combining_class() argument 746 do_decomp(size_t uv,uchar_t * u8s,uchar_t * s,int sz,boolean_t canonical_decomposition,u8_normalization_states_t * state) do_decomp() argument 969 find_composition_start(size_t uv,uchar_t * s,size_t sz) find_composition_start() argument 1389 int sz; collect_a_seq() local 1918 int sz; u8_textprep_str() local [all...] |
/titanic_51/usr/src/lib/libsaveargs/amd64/ |
H A D | saveargs.c | 223 ssize_t sz = 0; in has_saved_fp() local 225 for (i = 0; i < size; i += sz) { in has_saved_fp() 226 if ((sz = instr_size(dhp, ins, i, size)) < 1) in has_saved_fp() 230 if (sz != 1) in has_saved_fp() 240 if (sz != 3) in has_saved_fp() 258 ssize_t sz = 0; in saveargs_has_args() local 283 for (i = 0; i < size; i += sz) { in saveargs_has_args() 284 sz = instr_size(dhp, ins, i, size); in saveargs_has_args() 286 if (sz < 1) in saveargs_has_args() 288 else if (sz ! in saveargs_has_args() [all...] |
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_support.c | 175 int sz; in i_get_kcmd_sz() local 181 sz = sizeof (ilb_name_cmd_t); in i_get_kcmd_sz() 185 sz = sizeof (ilb_rule_cmd_t); in i_get_kcmd_sz() 188 sz = sizeof (ilb_num_rules_cmd_t); in i_get_kcmd_sz() 191 sz = sizeof (ilb_num_servers_cmd_t); in i_get_kcmd_sz() 196 sz = sizeof (*kcmd) + ((kcmd->num_servers - 1) * in i_get_kcmd_sz() 203 sz = sizeof (*kcmd) + in i_get_kcmd_sz() 212 sz = sizeof (*kcmd) + in i_get_kcmd_sz() 216 default: sz = -1; in i_get_kcmd_sz() 219 return (sz); in i_get_kcmd_sz() 227 do_ioctl(void * cmdp,ssize_t sz) do_ioctl() argument [all...] |
/titanic_51/usr/src/lib/mpss/common/ |
H A D | mpss.c | 133 size_t sz; in atosz() local 136 sz = strtoll(szstr, &endptr, 0); in atosz() 142 sz *= 1024; in atosz() 146 sz *= 1024; in atosz() 150 sz *= 1024; in atosz() 154 sz *= 1024; in atosz() 159 return (sz); in atosz() 168 pgszok(size_t sz) in pgszok() argument 172 if (sz == 0) in pgszok() 176 if (sz in pgszok() 203 pgszset(size_t sz,uint_t flags) pgszset() argument 303 static size_t heapsz = (size_t)-1, stacksz = (size_t)-1, sz; __mpssmain() local [all...] |
/titanic_51/usr/src/boot/sys/boot/efi/loader/arch/i386/ |
H A D | efimd.c | 67 UINTN mmsz, pages, sz; in ldr_bootinfo() local 73 sz = sizeof(EFI_HANDLE); in ldr_bootinfo() 74 status = BS->LocateHandle(ByProtocol, &fpswa_guid, 0, &sz, &handle); in ldr_bootinfo() 90 sz = 0; in ldr_bootinfo() 91 BS->GetMemoryMap(&sz, NULL, &mapkey, &mmsz, &mmver); in ldr_bootinfo() 92 sz += mmsz; in ldr_bootinfo() 93 sz = (sz + 15) & ~15; in ldr_bootinfo() 94 pages = EFI_SIZE_TO_PAGES(sz + bisz); in ldr_bootinfo() 110 sz in ldr_bootinfo() [all...] |
/titanic_51/usr/src/lib/libdladm/common/ |
H A D | libdlmgmt.c | 117 size_t sz = sizeof (retval); in dladm_create_datalink_id() local 136 &retval, &sz)) == DLADM_STATUS_OK) { in dladm_create_datalink_id() 152 size_t sz = sizeof (retval); in dladm_destroy_datalink_id() local 162 &retval, &sz)); in dladm_destroy_datalink_id() 174 size_t sz = sizeof (retval); in dladm_remap_datalink_id() local 181 &retval, &sz)); in dladm_remap_datalink_id() 192 size_t sz = sizeof (retval); in dladm_up_datalink_id() local 197 return (dladm_door_call(handle, &upid, sizeof (upid), &retval, &sz)); in dladm_up_datalink_id() 210 size_t sz = sizeof (retval); in dladm_create_conf() local 223 &retval, &sz)) in dladm_create_conf() 281 size_t sz = sizeof (retval); dladm_walk_datalink_id() local 342 size_t sz; dladm_open_conf() local 374 size_t sz; dladm_getsnap_conf() local 416 size_t sz = sizeof (retval); dladm_write_conf() local 463 size_t sz = sizeof (retval); dladm_get_conf_field() local 541 size_t sz = sizeof (retval); dladm_name2info() local 589 size_t sz = sizeof (retval); dladm_datalink_id2info() local 642 size_t sz = sizeof (retval); dladm_set_conf_field() local 678 size_t sz = sizeof (retval); dladm_unset_conf_field() local 703 size_t sz = sizeof (retval); dladm_remove_conf() local 720 size_t sz = sizeof (retval); dladm_destroy_conf() local 741 size_t sz = sizeof (retval); dladm_zone_boot() local 754 size_t sz = sizeof (retval); dladm_zone_halt() local [all...] |
/titanic_51/usr/src/boot/lib/libstand/ |
H A D | pkgfs.c | 274 size_t sz; in pkg_read() local 285 sz = 0; in pkg_read() 287 sz = tf->tf_size - fp; in pkg_read() 289 sz = tf->tf_cachesz - fp; in pkg_read() 290 if (size < sz) in pkg_read() 291 sz = size; in pkg_read() 292 if (sz == 0) in pkg_read() 297 memcpy(p, tf->tf_cache + fp, sz); in pkg_read() 298 fp += sz; in pkg_read() 299 p += sz; in pkg_read() 336 size_t sz, res; pkg_seek() local 473 size_t sz; cache_data() local 710 size_t sz; scan_tarfile() local [all...] |
/titanic_51/usr/src/uts/sun4v/sys/ |
H A D | pte.h | 65 unsigned int sz:3; /* <2:0> pagesize */ member 75 #define tte_size tte_bit.sz 98 /* Defines for sz field in tte */ 113 #define TTE_BSZS_SHIFT(sz) ((sz) * 3) argument 114 #define TTEBYTES(sz) (MMU_PAGESIZE << TTE_BSZS_SHIFT(sz)) argument 115 #define TTEPAGES(sz) (1 << TTE_BSZS_SHIFT(sz)) argument 116 #define TTE_PAGE_SHIFT(sz) (MMU_PAGESHIF argument 117 TTE_PAGE_OFFSET(sz) global() argument 118 TTE_PAGEMASK(sz) global() argument 119 TTE_PFNMASK(sz) global() argument 171 TTE_SZ_INTLO(sz) global() argument 203 MAKE_TTE_INTHI(pfn,attr,sz,hmenum) global() argument 212 MAKE_TTE_INTLO(pfn,attr,sz,hmenum) global() argument [all...] |
/titanic_51/usr/src/lib/iconv_modules/utf-8/common/ |
H A D | utf_ebcdic_to_utf8.c | 48 #define OUTBUF_SIZE_CHECK(sz) \ argument 49 if ((obtail - ob) < (sz)) { \ 84 signed char sz; /* must be signed for loop condition */ in _icv_iconv() local 86 sz = number_of_bytes_in_utf_ebcidc[*ib]; in _icv_iconv() 87 if ((sz > UTF_EBCDIC_LEAD_OCTET_MAX) || in _icv_iconv() 88 (sz < UTF_EBCDIC_LEAD_OCTET_MIN)) { in _icv_iconv() 93 /* sz == 0 means control character. and it need 1 byte */ in _icv_iconv() 94 if ((ibtail - ib) < ((sz == 0)? 1: sz)) { in _icv_iconv() 102 u4 = (UTFEBICDIC_I8(*ib++) & utf_ebcdic_masks_tbl[sz]); in _icv_iconv() [all...] |