Searched defs:sz (Results 1 - 25 of 519) 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/cmd/sgs/libelf/common/
H A Dgetident.c39 size_t sz = 0; local
57 sz = elf->ed_identsz;
61 sz = elf->ed_identsz;
67 *ptr = sz;
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 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 Dcook.c116 size_t sz, szof; local
131 if ((sz = (size_t)(src - (char *)elf->ed_image) % szof) == 0)
133 dst = src - sz;
134 elf->ed_ident -= sz;
135 elf->ed_memoff -= sz;
136 elf->ed_armem->m_slide = sz;
137 if (_elf_vm(par, elf->ed_memoff, sz + elf->ed_fsz) != OK_YES)
H A Dnewphdr.c70 size_t sz; local
106 if ((sz = count * _elf_msize(ELF_T_PHDR, work)) == 0) {
116 if ((ph = malloc(sz)) == 0) {
128 (void) memset(ph, 0, sz);
135 elf->ed_phdrsz = sz;
H A Dstrptr.c93 size_t sz = 0, j; local
95 if (((j = d->d_align) > 1) && (sz % j != 0)) {
96 j -= sz % j;
97 sz += j;
109 sz += d->d_size;
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-rpool.c51 size_t sz = i * i * i; local
53 a[i] = sm_rpool_malloc_x(rpool, sz);
54 for (j = 0; j < sz; ++j)
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);
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprinthash.c27 size_t sz; local
127 sz = iph.iph_size * sizeof(*table);
128 table = malloc(sz);
129 if ((*copyfunc)((char *)iph.iph_table, (char *)table, 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/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/lib/libnvpair/
H A Dnvpair_json.c50 size_t sz; local
55 while ((sz = mbrtowc(&c, input, MB_CUR_MAX, &mbr)) > 0) {
96 input += sz;
99 if (sz == (size_t)-1 || sz == (size_t)-2) {
/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/libidmap/common/
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/vntsd/
H A Dwrite.c55 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/cmd/cmd-inet/usr.lib/in.daytimed/
H A Din.daytimed.c68 size_t sz)
67 daytime_dg(int s, const struct sockaddr *sap, int sa_size, const void *buf, size_t sz) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.discardd/
H A Din.discardd.c54 noop(int s, const struct sockaddr *sap, int sa_size, const void *buf, size_t sz) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.timed/
H A Din.timed.c73 size_t sz)
72 machtime_dg(int s, const struct sockaddr *sap, int sa_len, const void *buf, size_t sz) argument
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_fmri.c93 size_t sz; local
95 if ((sz = fmd_buf_size(hdl, NULL, fmri->fmri_packnm)) !=
96 fmri->fmri_packsz && sz != 0)
H A Dcmd_util.c46 size_t sz; local
48 if ((sz = fmd_buf_size(hdl, cp, bufname)) == 0) {
51 } else if (sz != bufsz) {
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_fmri.c91 size_t sz; local
93 if ((sz = fmd_buf_size(hdl, NULL, fmri->fmri_packnm)) !=
94 fmri->fmri_packsz && sz != 0)
/illumos-gate/usr/src/cmd/bnu/
H A Dunknown.c97 size_t sz; local
103 sz = strlen(ebuf);
104 if (ebuf[sz-1] != '\n') {
105 ebuf[sz] = '\n';
106 ebuf[sz+1] = '\0';
/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/psm/stand/boot/sparc/common/
H A Dbootflags.c238 size_t sz; local
246 sz = MIN(npres, (size_t)(cp - sp));
247 npres -= sz;
248 bcopy(sp, np, sz);
249 np += sz;

Completed in 434 milliseconds

1234567891011>>