/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_umem.c | 33 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/cmd/sgs/libelf/common/ |
H A D | output.c | 50 _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 D | input.c | 87 _elf_vm(Elf * elf, size_t base, size_t sz) argument 101 if ((base + sz) > elf->ed_fsz) { 113 if (elf->ed_vm == 0 || sz == 0) 127 tail = base + sz + _elf_pagesize - 1; 133 sz = 0; 147 if (sz != 0) { 155 if (elf->ed_imagesz - off < sz) 156 sz = elf->ed_imagesz - off; 159 (read(elf->ed_fd, iop, sz) != sz)) { 203 register size_t sz; local 274 _elf_unmap(char *p, size_t sz) argument [all...] |
H A D | rawfile.c | 39 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 D | getident.c | 39 size_t sz = 0; local 57 sz = elf->ed_identsz; 61 sz = elf->ed_identsz; 67 *ptr = sz;
|
/illumos-gate/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 [all...] |
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | stable.h | 44 void stable_init(unsigned sz);
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | write.c | 55 uint_t sz; /* data size */ member in struct:write_buf 90 * sequence. buf size must be at least sz+1. 93 skip_terminal_null(char *buf, int sz) argument 98 assert(sz >= 0); 106 for (i = sz; i > 0; i--) { 112 sz++; 115 sz--; 117 if (sz == 0) { 118 return (sz); 121 for (i = 0; i < sz; 170 read_vcc(vntsd_cons_t *consp, char *buf, ssize_t *sz) argument 213 int sz; local [all...] |
/illumos-gate/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...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | preconv.c | 112 size_t sz, phsz; local 115 sz = b->sz - offset; 119 if (NULL == (eoln = memchr(ln, '\n', sz))) 120 eoln = ln + sz; 124 if ((sz = (size_t)(eoln - ln)) < 10 || 131 sz -= 10; 133 while (sz > 0) { 134 while (sz > 0 && ' ' == *ln) { 136 sz [all...] |
H A D | mandoc_ohash.c | 31 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 D | mandoc.c | 40 mandoc_escape(const char **end, const char **start, int *sz) argument 54 if (NULL == sz) 55 sz = &local_sz; 65 *sz = 0; 76 *sz = 2; 128 *sz = 2; 135 *sz = 1; 192 *sz = 1; 198 *sz = *end - *start; 216 *sz 539 mandoc_eos(const char *p, size_t sz) argument 582 mandoc_strntoi(const char *p, size_t sz, int base) argument [all...] |
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | project_walk.c | 47 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/boot/sys/boot/userboot/userboot/ |
H A D | copy.c | 54 size_t sz; local 59 sz = len; 60 if (sz > sizeof(buf)) 61 sz = sizeof(buf); 62 s = read(fd, buf, sz);
|
/illumos-gate/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; local 202 u_int32_t sz; local [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | env.c | 263 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 D | efimd.c | 67 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 D | sized_array.h | 39 void *sized_array(size_t n, size_t sz);
|
H A D | sized_array.c | 47 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 D | tg.c | 22 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 D | t-memstat.c | 47 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);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_support.c | 175 int sz; local 181 sz = sizeof (ilb_name_cmd_t); 185 sz = sizeof (ilb_rule_cmd_t); 188 sz = sizeof (ilb_num_rules_cmd_t); 191 sz = sizeof (ilb_num_servers_cmd_t); 196 sz = sizeof (*kcmd) + ((kcmd->num_servers - 1) * 203 sz = sizeof (*kcmd) + 212 sz = sizeof (*kcmd) + 216 default: sz = -1; 219 return (sz); 227 do_ioctl(void *cmdp, ssize_t sz) argument [all...] |
/illumos-gate/usr/src/lib/libuutil/common/ |
H A D | uu_alloc.c | 59 size_t sz; local 61 sz = strlen(str) + 1; 62 buf = uu_zalloc(sz); 64 (void) memcpy(buf, str, sz); 96 uu_memdup(const void *buf, size_t sz) argument 100 p = uu_zalloc(sz); 103 (void) memcpy(p, buf, sz);
|
/illumos-gate/usr/src/lib/mpss/common/ |
H A D | mpss.c | 133 size_t sz; local 136 sz = strtoll(szstr, &endptr, 0); 142 sz *= 1024; 146 sz *= 1024; 150 sz *= 1024; 154 sz *= 1024; 159 return (sz); 168 pgszok(size_t sz) argument 172 if (sz == 0) 176 if (sz 203 pgszset(size_t sz, uint_t flags) argument 303 static size_t heapsz = (size_t)-1, stacksz = (size_t)-1, sz; local [all...] |
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_cck_common.c | 88 int8_t sz; local 111 sz = u8_number_of_bytes[*ib]; 123 if (sz == 1) { 136 if (sz <= 0) { 144 if (ibtail - ib < sz) { 160 for (i = 2; i < sz; i++) { 173 sz = ptr_utf8tocck(u8, &ib, ibtail, ob, obtail, &ret_val); 174 if (sz < 0) { 179 ob += sz; 201 int8_t sz; local [all...] |