Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 627) sorted by relevance

12345678910>>...26

/illumos-gate/usr/src/cmd/vntsd/
H A Dwrite.c97 assert(sz >= 0); in skip_terminal_null()
111 sz++; in skip_terminal_null()
114 sz--; in skip_terminal_null()
117 return (sz); in skip_terminal_null()
137 sz--; in skip_terminal_null()
144 sz -= 2; in skip_terminal_null()
160 if (i == sz) { in skip_terminal_null()
162 return (sz); in skip_terminal_null()
212 int sz; in vntsd_write_thread() local
234 if ((sz = skip_terminal_null(buf, sz)) == 0) { in vntsd_write_thread()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c209 size_t sz; in set_smf_env() local
222 sz = strlen(path) + 1; in set_smf_env()
223 *np = startd_alloc(sz); in set_smf_env()
230 *np = startd_alloc(sz); in set_smf_env()
238 *np = startd_alloc(sz); in set_smf_env()
245 *np = startd_alloc(sz); in set_smf_env()
251 *np = startd_alloc(sz); in set_smf_env()
258 sz = strlen(*p) + 1; in set_smf_env()
259 *np = startd_alloc(sz); in set_smf_env()
274 sz = strlen(*p) + 1; in set_smf_env()
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dinput.c128 sz = 0; in _elf_vm()
142 if (sz != 0) { in _elf_vm()
154 (read(elf->ed_fd, iop, sz) != sz)) { in _elf_vm()
158 off += sz; in _elf_vm()
159 sz = 0; in _elf_vm()
167 sz += _elf_pagesize; in _elf_vm()
177 if (sz != 0) { in _elf_vm()
185 (read(elf->ed_fd, iop, sz) != sz)) { in _elf_vm()
198 register size_t sz; in _elf_inmap() local
271 if (p == 0 || sz == 0) in _elf_unmap()
[all …]
H A Doutput.c50 _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 Dupdate.c236 sz = 0; in _elf_upd_lib()
250 sz += j - sz % j; in _elf_upd_lib()
286 hi += sz; in _elf_upd_lib()
381 hi = sz; in _elf_upd_usr()
405 sz = 0; in _elf_upd_usr()
416 sz = j; in _elf_upd_usr()
446 hi = sz; in _elf_upd_usr()
611 (void) memset(start - sz, byte, sz); in wrt()
634 here - start - sz, sz); in wrt()
636 (void) memset(here - sz, byte, sz); in wrt()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dmandoc.c44 switch (sz) { in mandoc_font()
128 *sz = 0; in mandoc_escape()
139 *sz = 2; in mandoc_escape()
223 *sz = 2; in mandoc_escape()
248 *sz = 1; in mandoc_escape()
315 *sz = 1; in mandoc_escape()
339 *sz = 2; in mandoc_escape()
356 *sz = 1; in mandoc_escape()
382 *sz = 1; in mandoc_escape()
432 if (*sz < 6 || *sz > 7 || in mandoc_escape()
[all …]
H A Dpreconv.c115 size_t sz, phsz; in preconv_cue() local
118 sz = b->sz - offset; in preconv_cue()
123 eoln = ln + sz; in preconv_cue()
134 sz -= 10; in preconv_cue()
136 while (sz > 0) { in preconv_cue()
139 sz--; in preconv_cue()
141 if (0 == sz) in preconv_cue()
155 sz -= phsz; in preconv_cue()
160 sz -= 7; in preconv_cue()
165 sz--; in preconv_cue()
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defichar.c72 size_t len, sz; in ucs2_to_utf8() local
89 if (len++ < sz) in ucs2_to_utf8()
91 if (len++ < sz) in ucs2_to_utf8()
93 if (len++ < sz) in ucs2_to_utf8()
106 if (len >= sz) { in ucs2_to_utf8()
123 size_t sz; in utf8_to_ucs2() local
134 *len = sz; in utf8_to_ucs2()
174 sz -= 2; in utf8_to_ucs2()
177 if (sz < 2) { in utf8_to_ucs2()
184 sz -= 2; in utf8_to_ucs2()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_overflow.c92 u_int32_t sz; local
96 *ssz = sz;
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
167 nb = MIN(sz, plen);
202 u_int32_t sz; local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpeek.c42 { 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;
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dwrap_size_limit.c151 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;
169 sz = 0;
171 sz -= (16 + ctx->cksum_size);
[all …]
/illumos-gate/usr/src/uts/sparc/v9/os/
H A Dsimulator.c118 case 0: sz = 4; in do_unaligned()
130 case 3: sz = 8; in do_unaligned()
151 sz = 4; break; in do_unaligned()
156 sz = 1; break; in do_unaligned()
160 sz = 2; break; in do_unaligned()
164 sz = 8; break; in do_unaligned()
167 sz = 8; break; in do_unaligned()
382 if (sz == 1) { in do_unaligned()
1317 int sz; in calc_memaddr() local
1423 int sz = 0; in instr_size() local
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/
H A Dkiconv_cck_common.c84 int8_t sz; in kiconv_utf8_to_cck() local
119 if (sz == 1) { in kiconv_utf8_to_cck()
132 if (sz <= 0) { in kiconv_utf8_to_cck()
170 if (sz < 0) { in kiconv_utf8_to_cck()
175 ob += sz; in kiconv_utf8_to_cck()
197 int8_t sz; in kiconvstr_utf8_to_cck() local
213 if (sz == 1) { in kiconvstr_utf8_to_cck()
224 if (sz <= 0) { in kiconvstr_utf8_to_cck()
247 ib = oldib + sz; in kiconvstr_utf8_to_cck()
262 if (sz < 0) { in kiconvstr_utf8_to_cck()
[all …]
/illumos-gate/usr/src/common/unicode/
H A Du8_textprep.c345 int sz; in u8_validate() local
700 if (sz == 1 || sz > 4) in combining_class()
1389 int sz; in collect_a_seq() local
1461 s += sz; in collect_a_seq()
1462 sz = i; in collect_a_seq()
1502 i += sz; in collect_a_seq()
1617 l = sz; in collect_a_seq()
1639 sz = i; in collect_a_seq()
1918 int sz; in u8_textprep_str() local
1995 sz = 1; in u8_textprep_str()
[all …]
/illumos-gate/usr/src/lib/libsaveargs/amd64/
H A Dsaveargs.c226 ssize_t sz = 0; in has_saved_fp() local
228 for (i = 0; i < size; i += sz) { in has_saved_fp()
233 if (sz != 1) in has_saved_fp()
243 if (sz != 3) in has_saved_fp()
261 ssize_t sz = 0; in saveargs_has_args() local
289 if (sz < 1) in saveargs_has_args()
291 else if (sz != 4) in saveargs_has_args()
321 if (sz == 2) /* Two byte */ in saveargs_has_args()
323 else if (sz == 1) in saveargs_has_args()
350 if (sz < 1) in saveargs_has_args()
[all …]
/illumos-gate/usr/src/lib/mpss/common/
H A Dmpss.c133 size_t sz; in atosz() local
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()
340 if (pgszok(sz)) in __mpssmain()
341 stacksz = sz; in __mpssmain()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_support.c175 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()
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()
246 if (sz == 0) { in do_ioctl()
247 sz = i_get_kcmd_sz(cmdp); in do_ioctl()
249 if (sz == -1) { in do_ioctl()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/json/
H A Dtst.usdt.d.out1 [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
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Defimd.c67 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 = (EFI_PAGE_SIZE * pages) - bisz; in ldr_bootinfo()
111 status = BS->GetMemoryMap(&sz, mm, &mapkey, &mmsz, &mmver); in ldr_bootinfo()
[all …]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlmgmt.c162 &retval, &sz)); in dladm_destroy_datalink_id()
181 &retval, &sz)); in dladm_remap_datalink_id()
342 size_t sz; in dladm_open_conf() local
374 size_t sz; in dladm_getsnap_conf() local
428 &retval, &sz)); in dladm_write_conf()
666 &retval, &sz)); in dladm_set_conf_field()
691 &retval, &sz)); in dladm_unset_conf_field()
709 &retval, &sz)); in dladm_remove_conf()
732 &retval, &sz); in dladm_destroy_conf()
746 &retval, &sz)); in dladm_zone_boot()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dpkgfs.c274 size_t sz; in pkg_read() local
285 sz = 0; in pkg_read()
291 sz = size; in pkg_read()
298 fp += sz; in pkg_read()
299 p += sz; in pkg_read()
305 sz = -1; in pkg_read()
309 fp += sz; in pkg_read()
310 p += sz; in pkg_read()
311 size -= sz; in pkg_read()
473 size_t sz; in cache_data() local
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_reservoir.c433 region->vr_size = sz; in vmmr_alloc()
435 size_t remain = sz; in vmmr_alloc()
454 vmmr_free_sz -= sz; in vmmr_alloc()
455 vmmr_alloc_sz += sz; in vmmr_alloc()
629 size_t remain = sz; in vmmr_remove_raw()
647 vmmr_empty_sz += sz; in vmmr_remove_raw()
671 vmmr_adding_sz += sz; in vmmr_add()
685 size_t remain = sz; in vmmr_add()
686 while (added < sz) { in vmmr_add()
773 vmmr_remove_raw(sz); in vmmr_remove()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dpte.h75 #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
214 TTE_SZ_INTLO(sz))
[all …]
/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/
H A Ducs_to_utf7.c79 signed char sz; local
109 *outbufleft -= sz;
157 sz = ICV_FETCH_UCS_SIZE;
162 if ((ibtail - ib) < sz) {
170 u4 = *ib++ & masks_tbl[sz];
171 for (; sz > 1; sz--) {
243 sz = 1;
246 sz++;
252 sz++;
255 if ((obtail - ob) < sz) {
[all …]
H A Dutf_ebcdic_to_utf8.c48 #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()
94 if ((ibtail - ib) < ((sz == 0)? 1: sz)) { in _icv_iconv()
102 u4 = (UTFEBICDIC_I8(*ib++) & utf_ebcdic_masks_tbl[sz]); in _icv_iconv()
105 if (sz == 0){ in _icv_iconv()
106 sz = 1; in _icv_iconv()
[all …]

12345678910>>...26