/titanic_44/usr/src/cmd/vntsd/ |
H A D | write.c | 55 uint_t sz; /* data size */ member 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; i++) { in skip_terminal_null() 128 for (i = 0; i < sz; i++) { in skip_terminal_null() [all …]
|
/titanic_44/usr/src/cmd/mandoc/ |
H A D | eqn.c | 122 size_t sz; member 127 #define EQNSTREQ(x, p, sz) \ argument 128 STRNEQ((x)->name, (x)->sz, (p), (sz)) 285 size_t sz; in eqn_read() local 312 sz = strlen(p + pos) + 1; in eqn_read() 313 ep->data = mandoc_realloc(ep->data, ep->sz + sz + 1); in eqn_read() 317 if (0 == ep->sz) in eqn_read() 320 ep->sz += sz; in eqn_read() 321 strlcat(ep->data, p + pos, ep->sz + 1); in eqn_read() 322 strlcat(ep->data, " ", ep->sz + 1); in eqn_read() [all …]
|
H A D | preconv.c | 47 size_t sz; /* size of binary buffer */ member 100 for (i = b->offs; i < b->sz; i++) { in conv_latin_1() 117 fwrite(b->buf, 1, b->sz, stdout); in conv_us_ascii() 141 for (i = b->offs; i < b->sz; i++) { in conv_utf_8() 231 buf->sz = buf->sz > initial / 2 ? in resize_buf() 232 2 * buf->sz : initial; in resize_buf() 234 buf->buf = realloc(buf->buf, buf->sz); in resize_buf() 269 fb->sz = (size_t)st.st_size; in read_whole_file() 270 fb->buf = mmap(NULL, fb->sz, PROT_READ, MAP_SHARED, fd, 0); in read_whole_file() 283 fb->sz = 0; in read_whole_file() [all …]
|
H A D | mandoc.c | 43 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument 57 if (NULL == sz) in mandoc_escape() 58 sz = &local_sz; in mandoc_escape() 68 *sz = 0; in mandoc_escape() 79 *sz = 2; in mandoc_escape() 148 *sz = 2; in mandoc_escape() 155 *sz = 1; in mandoc_escape() 221 *sz = 1; in mandoc_escape() 227 *sz = *end - *start; in mandoc_escape() 245 *sz = 2; in mandoc_escape() [all …]
|
H A D | chars.c | 100 mchars_spec2cp(const struct mchars *arg, const char *p, size_t sz) in mchars_spec2cp() argument 104 ln = find(arg, p, sz); in mchars_spec2cp() 111 mchars_num2char(const char *p, size_t sz) in mchars_num2char() argument 115 if ((i = mandoc_strntoi(p, sz, 10)) < 0) in mchars_num2char() 122 mchars_num2uc(const char *p, size_t sz) in mchars_num2uc() argument 126 if ((i = mandoc_strntoi(p, sz, 16)) < 0) in mchars_num2uc() 134 const char *p, size_t sz, size_t *rsz) in mchars_spec2str() argument 138 ln = find(arg, p, sz); in mchars_spec2str() 149 find(const struct mchars *tab, const char *p, size_t sz) in find() argument 156 if (0 == sz || p[0] < PRINT_LO || p[0] > PRINT_HI) in find() [all …]
|
H A D | out.c | 184 size_t sz; in tblcalc_data() local 192 sz = (*tbl->len)(1, tbl->arg); in tblcalc_data() 193 if (col->width < sz) in tblcalc_data() 194 col->width = sz; in tblcalc_data() 220 size_t sz; in tblcalc_literal() local 224 sz = (*tbl->slen)(str, tbl->arg); in tblcalc_literal() 226 if (col->width < sz) in tblcalc_literal() 227 col->width = sz; in tblcalc_literal() 235 size_t sz, psz, ssz, d; in tblcalc_number() local 250 sz = (*tbl->slen)(str, tbl->arg); in tblcalc_number() [all …]
|
/titanic_44/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() 163 off += sz; in _elf_vm() [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() 96 return (sz); in _elf_outsync()
|
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 += fsz; in _elf_upd_lib() 254 sh->sh_size = (Xword) sz; in _elf_upd_lib() [all …]
|
/titanic_44/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_44/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 -= nb) == 0) 150 u_int32_t sz; local [all …]
|
/titanic_44/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;
|
H A D | sfreserve.c | 38 reg ssize_t n, now, sz, iosz; local 46 sz = size < 0 ? -size : size; 106 if(n > 0 && n >= sz) /* all done */ 115 if(iosz < sz) 116 iosz = sz; /* so only get what is asked for */ 119 { iosz = sz - n; /* get enough to fulfill requirement */ 135 if((n = f->endb - f->next) < sz) 154 if(n >= sz) /* got it */ 173 else if(n >= sz) /* got data */ 177 { (void)SFWR(f,f->next,sz,f->disc); [all …]
|
/titanic_44/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 = 0; 168 if (sz < 16 + ctx->cksum_size) [all …]
|
/titanic_44/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 = 1; break; in do_unaligned() [all …]
|
/titanic_44/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_44/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_t is_it_toupper) in do_case_conv() argument [all …]
|
/titanic_44/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_44/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 != 4) in saveargs_has_args() [all …]
|
/titanic_44/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() [all …]
|
/titanic_44/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 == pgsz[i]) in pgszok() [all …]
|
/titanic_44/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)) == DLADM_STATUS_OK) { in dladm_create_conf() [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/cachefspack/ |
H A D | main.c | 214 int sz; in bld_pack_list() local 229 sz = (int)lastsl_pos - (int)fnam + 1; in bld_pack_list() 230 if ((last_base_sz != sz) || in bld_pack_list() 231 (strncmp(last_base, fnam, sz) != 0)) { in bld_pack_list() 232 fprintf(fd, "BASE %.*s\n", (sz <= 1 ? sz : sz-1), fnam); in bld_pack_list() 233 last_base_sz = sz; in bld_pack_list() 234 strncpy(last_base, fnam, sz); in bld_pack_list() 236 fprintf(fd, "LIST %s\n", &fnam[sz]); in bld_pack_list() 240 sz = strlen(cwd); in bld_pack_list() 241 if ((last_base_sz != sz) || in bld_pack_list() [all …]
|
/titanic_44/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 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_PAGESHIFT + TTE_BSZS_SHIFT(sz)) argument 117 #define TTE_PAGE_OFFSET(sz) (TTEBYTES(sz) - 1) argument 118 #define TTE_PAGEMASK(sz) (~TTE_PAGE_OFFSET(sz)) argument 119 #define TTE_PFNMASK(sz) (~(TTE_PAGE_OFFSET(sz) >> MMU_PAGESHIFT)) argument 171 #define TTE_SZ_INTLO(sz) ((sz) & TTE_SZ_BITS) argument [all …]
|
/titanic_44/usr/src/uts/sun4u/sys/ |
H A D | pte.h | 50 uint32_t sz:2; /* 0=8k 1=64k 2=512k 3=4m */ member 86 #define tte_size tte_bit.sz 140 #define TTE_BSZS_SHIFT(sz) ((sz) * 3) argument 141 #define TTEBYTES(sz) (MMU_PAGESIZE << TTE_BSZS_SHIFT(sz)) argument 142 #define TTEPAGES(sz) (1 << TTE_BSZS_SHIFT(sz)) argument 143 #define TTE_PAGE_SHIFT(sz) (MMU_PAGESHIFT + TTE_BSZS_SHIFT(sz)) argument 144 #define TTE_PAGE_OFFSET(sz) (TTEBYTES(sz) - 1) argument 145 #define TTE_PAGEMASK(sz) (~TTE_PAGE_OFFSET(sz)) argument 146 #define TTE_PFNMASK(sz) (~(TTE_PAGE_OFFSET(sz) >> MMU_PAGESHIFT)) argument 213 #define TTE_SZ_INT(sz) \ argument [all …]
|