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

123456

/osnet-11/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...]
H A Dsfreserve.c38 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,
[all...]
/osnet-11/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++) {
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_overflow.c90 u_int32_t sz; local
93 memmove(&sz, (char *)p + sizeof(db_pgno_t), sizeof(u_int32_t));
94 *ssz = sz;
97 if (pg == P_INVALID || sz == 0)
101 if (*bufsz < sz) {
102 *buf = (char *)(*buf == NULL ? malloc(sz) : realloc(*buf, sz));
105 *bufsz = sz;
117 nb = MIN(sz, plen);
121 if ((sz
148 u_int32_t sz; local
200 u_int32_t sz; local
[all...]
/osnet-11/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);
/osnet-11/usr/src/lib/libfedfs/common/
H A Dget_rp_data.c47 ssize_t sz; local
56 sz = readlink(path, buf, SYMLINK_MAX);
57 if (sz == -1)
59 buf[sz] = '\0';
81 sz = read(fd2, res, stbuf.st_size);
83 if (sz != stbuf.st_size) {
/osnet-11/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);
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)
/osnet-11/usr/src/lib/libuutil/common/
H A Duu_alloc.c59 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);
H A Duu_strtoint.c164 uu_strtoint(const char *s, void *v, size_t sz, int base, argument
173 switch (sz) {
195 min = -(1ULL << (8 * sz - 1));
196 max = (1ULL << (8 * sz - 1)) - 1;
212 switch (sz) {
235 uu_strtouint(const char *s, void *v, size_t sz, int base, argument
243 switch (sz) {
266 max = (1ULL << (8 * sz - 1)) * 2 - 1;
280 switch (sz) {
/osnet-11/usr/src/lib/mpss/common/
H A Dmpss.c133 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...]
/osnet-11/usr/src/lib/fm/libfmevent/common/
H A Dfmev_util.c197 dflt_alloc(size_t sz) argument
199 return (umem_alloc(sz, UMEM_DEFAULT));
203 dflt_zalloc(size_t sz) argument
205 return (umem_zalloc(sz, UMEM_DEFAULT));
209 dflt_free(void *buf, size_t sz) argument
211 umem_free(buf, sz);
/osnet-11/usr/src/lib/libpicl/
H A Dllib-lpicl36 int picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
38 void *valbuf, size_t sz);
39 int picl_set_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
41 void *valbuf, size_t sz);
H A Dpicl.h134 size_t sz);
136 const char *propname, void *valbuf, size_t sz);
138 size_t sz);
140 const char *propname, void *valbuf, size_t sz);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Derrmap.h177 long i, sz;
178 sz = m->nextidx;
179 for (i = 0; i < sz; i++) {
190 long i, sz;
194 sz = m->nextidx;
196 for (i = 0; i < sz; i++) {
208 if (sz >= LONG_MAX - 1)
210 err = mecherrmap__pairarray_grow (&m->a, sz+1);
213 mecherrmap__pairarray_set (&m->a, sz, newpair);
221 long i, sz;
174 long i, sz; local
187 long i, sz; local
218 long i, sz; local
232 long i, sz; local
[all...]
/osnet-11/usr/src/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c177 size_t sz; /* size of desired block */ local
181 sz = 1UL << (bucket + EXP);
182 if (sz == 0)
184 if (sz < pagesz) {
186 nblks = amt / sz;
188 amt = sz + pagesz;
225 op->ov_next = (union overhead *)((caddr_t)op + sz);
227 op = (union overhead *)((caddr_t)op + sz);
306 size_t sz = 0; local
308 sz
[all...]
/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdlmgmt.c121 size_t sz = sizeof (retval); local
142 &retval, &sz)) == DLADM_STATUS_OK) {
170 size_t sz = sizeof (retval); local
180 &retval, &sz));
192 size_t sz = sizeof (retval); local
201 &retval, &sz));
212 size_t sz = sizeof (retval); local
217 return (dladm_door_call(handle, &upid, sizeof (upid), &retval, &sz));
230 size_t sz = sizeof (retval); local
243 &retval, &sz))
347 size_t sz = sizeof (retval); local
410 size_t sz = sizeof (retval); local
465 size_t sz = sizeof (retval); local
564 size_t sz = sizeof (retval); local
717 size_t sz = sizeof (retval); local
770 size_t sz = sizeof (retval); local
795 size_t sz = sizeof (retval); local
843 size_t sz; local
875 size_t sz; local
917 size_t sz = sizeof (retval); local
986 size_t sz = sizeof (retval); local
1035 size_t sz = sizeof (retval); local
1088 size_t sz = sizeof (retval); local
1166 size_t sz = sizeof (retval); local
1215 size_t sz = sizeof (retval); local
1285 size_t attrsz, sz = sizeof (retval); local
1319 size_t sz = sizeof (retval); local
1355 size_t sz = sizeof (retval); local
1376 size_t sz = sizeof (retval); local
1403 size_t sz = sizeof (retval); local
1427 size_t sz = sizeof (retval); local
1465 size_t sz = sizeof (retval); local
1486 size_t sz = sizeof (retval); local
1501 size_t sz = sizeof (retval); local
1515 size_t sz = sizeof (retval); local
1529 size_t sz = sizeof (retval); local
1542 size_t sz = sizeof (retval); local
[all...]
/osnet-11/usr/src/lib/scsi/libscsi/common/
H A Dscsi_subr.c232 size_t sz; local
236 sz = CDB_GROUP0;
239 sz = CDB_GROUP1;
242 sz = CDB_GROUP2;
245 sz = CDB_GROUP3;
248 sz = CDB_GROUP4;
251 sz = CDB_GROUP5;
254 sz = CDB_GROUP6;
257 sz = CDB_GROUP7;
260 sz
[all...]
/osnet-11/usr/src/lib/libast/common/cdt/
H A Ddttree.c42 int cmp, lk, sz, ky; local
50 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf);
95 { key = _DTKEY(obj,ky,sz);
97 { k = _DTKEY(o,ky,sz);
98 if(_DTCMP(dt,key,k,disc,cmpf,sz) != 0)
110 { key = (type&DT_MATCH) ? obj : _DTKEY(obj,ky,sz);
117 key = _DTKEY(obj,ky,sz);
122 { key = _DTKEY(obj,ky,sz);
128 { k = _DTOBJ(t,lk); k = _DTKEY(k,ky,sz);
129 if((cmp = _DTCMP(dt,key,k,disc,cmpf,sz))
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/
H A Dmm.h78 grub_extend_alloc (grub_size_t sz, grub_size_t *allocated, void **ptr) argument
81 if (sz < *allocated)
84 *allocated = 2 * sz;
/osnet-11/usr/src/grub/grub2/grub-core/partmap/
H A Damiga.c79 amiga_partition_map_checksum (void *buf, grub_size_t sz)
83 sz /= sizeof (grub_uint32_t);
84 for (; sz; sz--, ptr++)
78 amiga_partition_map_checksum(void *buf, grub_size_t sz) argument
/osnet-11/usr/src/lib/libc/port/gen/
H A Drctlops.c53 size_t sz = rctllist(NULL, 0); local
55 if ((ctl_names = malloc(sz)) == NULL)
58 (void) rctllist(ctl_names, sz);
61 curr_name < ctl_names + sz;
/osnet-11/usr/src/lib/scsi/libses/common/
H A Dses_subr.c318 ses_alloc(size_t sz) argument
322 if (sz == 0)
325 if ((p = malloc(sz)) == NULL)
332 ses_zalloc(size_t sz) argument
336 if ((p = ses_alloc(sz)) != NULL)
337 bzero(p, sz);
360 ses_realloc(void *p, size_t sz) argument
362 if (sz == 0)
365 if ((p = realloc(p, sz)) == NULL)
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/
H A DArray.pm38 my $sz = $obj->FETCHSIZE;
40 $off += $sz if ($off < 0);
41 my $len = (@_) ? shift : $sz - $off;
42 $len += $sz - $off if $len < 0;
47 $off = $sz if $off > $sz;
48 $len -= $off + $len - $sz if $off + $len > $sz;
53 $obj->EXTEND($sz+$d);
54 for (my $i=$sz
[all...]

Completed in 113 milliseconds

123456