Searched refs:sz (Results 1 - 25 of 632) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_umem.c33 inj_alloc(size_t sz) argument
35 return (umem_alloc(sz, UMEM_NOFAIL));
39 inj_zalloc(size_t sz) argument
41 return (umem_zalloc(sz, UMEM_NOFAIL));
45 inj_free(void *buf, size_t sz) argument
47 umem_free(buf, sz);
/illumos-gate/usr/src/lib/iconv_modules/ko/common/
H A Ducs_to_unihan.h32 #define OUTBUF_SIZE_CHECK(sz) \
33 if ((obtail - ob) < (sz)) { \
/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/
H A Ducs_to_utf8.h32 #define OUTBUF_SIZE_CHECK(sz) \
33 if ((obtail - ob) < (sz)) { \
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Doutput.c50 _elf_outmap(int fd, size_t sz, unsigned int *pflag) argument
59 if ((!*pflag) && (ftruncate(fd, (off_t)sz) == 0) &&
60 (p = mmap((char *)0, sz, PROT_READ+PROT_WRITE,
73 if ((p = (char *)calloc(1, sz)) == 0)
80 _elf_outsync(int fd, char *p, size_t sz, unsigned int flag) argument
85 if ((fd = msync(p, sz, MS_ASYNC)) == -1)
87 (void) munmap(p, sz);
89 return (sz);
94 (write(fd, p, sz) == sz)) {
[all...]
H A Dinput.c83 _elf_vm(Elf * elf, size_t base, size_t sz) argument
96 if ((base + sz) > elf->ed_fsz) {
108 if (elf->ed_vm == 0 || sz == 0)
122 tail = base + sz + _elf_pagesize - 1;
128 sz = 0;
142 if (sz != 0) {
150 if (elf->ed_imagesz - off < sz)
151 sz = elf->ed_imagesz - off;
154 (read(elf->ed_fd, iop, sz) != sz)) {
198 register size_t sz; local
269 _elf_unmap(char *p, size_t sz) argument
[all...]
H A Drawfile.c39 register size_t sz; local
49 if ((sz = elf->ed_fsz) == 0) {
59 if ((p = _elf_read(elf->ed_fd, elf->ed_baseoff, sz)) != 0) {
63 sz = 0;
69 sz = 0;
73 *ptr = sz;
H A Dgetident.c39 size_t sz = 0; local
57 sz = elf->ed_identsz;
61 sz = elf->ed_identsz;
67 *ptr = sz;
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dextern-array.c9 unsigned sz = sizeof(v4l2_type_names); local
/illumos-gate/usr/src/lib/libast/common/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
[all...]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstable.h44 void stable_init(unsigned sz);
/illumos-gate/usr/src/lib/iconv_modules/euro/common/
H A Deuro.h39 signed char sz; member in struct:__anon2
/illumos-gate/usr/src/cmd/vntsd/
H A Dwrite.c54 uint_t sz; /* data size */ member in struct:write_buf
89 * sequence. buf size must be at least sz+1.
92 skip_terminal_null(char *buf, int sz) argument
97 assert(sz >= 0);
105 for (i = sz; i > 0; i--) {
111 sz++;
114 sz--;
116 if (sz == 0) {
117 return (sz);
120 for (i = 0; i < sz;
169 read_vcc(vntsd_cons_t *consp, char *buf, ssize_t *sz) argument
212 int sz; local
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dwrap_size_limit.c148 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...]
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Defichar.c72 size_t len, sz; local
77 sz = utf8_len_of_ucs2(nm) + 1;
82 cp = *name = malloc(sz);
89 if (len++ < sz)
91 if (len++ < sz)
93 if (len++ < sz)
96 if (len++ < sz)
98 if (len++ < sz)
101 if (len++ < sz)
106 if (len >= sz) {
123 size_t sz; local
[all...]
/illumos-gate/usr/src/cmd/mandoc/
H A Dpreconv.c115 size_t sz, phsz; local
118 sz = b->sz - offset;
122 if (NULL == (eoln = memchr(ln, '\n', sz)))
123 eoln = ln + sz;
127 if ((sz = (size_t)(eoln - ln)) < 10 ||
134 sz -= 10;
136 while (sz > 0) {
137 while (sz > 0 && ' ' == *ln) {
139 sz
[all...]
H A Dmandoc_ohash.c31 mandoc_ohash_init(struct ohash *h, unsigned int sz, ptrdiff_t ko) argument
41 ohash_init(h, sz, &info);
45 hash_alloc(size_t sz, void *arg) argument
48 return mandoc_malloc(sz);
52 hash_calloc(size_t n, size_t sz, void *arg) argument
55 return mandoc_calloc(n, sz);
H A Dmandoc.c42 mandoc_font(const char *cp, int sz) argument
44 switch (sz) {
95 mandoc_escape(const char **end, const char **start, int *sz) argument
109 if (NULL == sz)
110 sz = &local_sz;
128 *sz = 0;
139 *sz = 2;
212 *sz = 2;
237 *sz = 1;
246 *sz
576 mandoc_eos(const char *p, size_t sz) argument
619 mandoc_strntoi(const char *p, size_t sz, int base) argument
[all...]
/illumos-gate/usr/src/lib/libproject/common/
H A Dproject_walk.c47 size_t sz; local
50 while ((sz = projlist(projids, osz * sizeof (projid_t))) != osz) {
51 osz = sz;
53 if ((projids = realloc(projids, sz * sizeof (projid_t)))
66 for (curr_projid = projids; curr_projid < projids + sz; curr_projid++) {
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_overflow.c92 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; local
202 u_int32_t sz; local
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c263 size_t sz; local
276 sz = strlen(path) + 1;
277 *np = startd_alloc(sz);
278 (void) strlcpy(*np, path, sz);
283 sz = sizeof ("SMF_FMRI=") + strlen(inst->ri_i.i_fmri);
284 *np = startd_alloc(sz);
285 (void) strlcpy(*np, "SMF_FMRI=", sz);
286 (void) strlcat(*np, inst->ri_i.i_fmri, sz);
291 sz = sizeof ("SMF_METHOD=") + strlen(method);
292 *np = startd_alloc(sz);
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/
H A Defimd.c67 UINTN mmsz, pages, sz; local
73 sz = sizeof(EFI_HANDLE);
74 status = BS->LocateHandle(ByProtocol, &fpswa_guid, 0, &sz, &handle);
90 sz = 0;
91 BS->GetMemoryMap(&sz, NULL, &mapkey, &mmsz, &mmver);
92 sz += mmsz;
93 sz = (sz + 15) & ~15;
94 pages = EFI_SIZE_TO_PAGES(sz + bisz);
110 sz
[all...]
/illumos-gate/usr/src/lib/libidmap/common/
H A Dsized_array.h39 void *sized_array(size_t n, size_t sz);
H A Dsized_array.c47 int sz; member in struct:sized_array
55 sized_array(size_t n, size_t sz) argument
60 total = sizeof (struct sized_array) + n*sz;
70 sa->sz = sz;
121 return (sa->sz);
/illumos-gate/usr/src/cmd/tbl/
H A Dtg.c22 get_text(char *sp, int ilin, int icol, char *fn, char *sz) argument
42 if ((sz && *sz) || (vs && *vs))
46 if (sz && *sz)
47 fprintf(tabout, ".ps %s\n",sz);
66 if (sz && *sz) fprintf(tabout, ".br\n.ps\n.vs\n");
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-memstat.c47 int r, r2, i, l, slp, sz; local
52 sz = slp = 0;
63 sz = strtol(optarg, NULL, 0);
93 if (sz > 0)
102 mem = malloc(sz);
104 printf("malloc(%d) failed\n", sz);

Completed in 103 milliseconds

1234567891011>>