/osnet-11/usr/src/lib/libfedfs/common/ |
H A D | get_rp_data.c | 47 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 D | t-rpool.c | 51 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 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);
|
/osnet-11/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...] |
H A D | sfreserve.c | 38 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...] |
H A D | sfdisc.c | 75 ssize_t sz; local 94 if((sz = dcca->endb - dcca->data) > (ssize_t)size) 95 sz = (ssize_t)size; 96 memcpy(buf, dcca->data, sz); 98 if((dcca->data += sz) >= dcca->endb) /* free empty cache */ 103 return sz;
|
/osnet-11/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++) {
|
/osnet-11/usr/src/lib/libidmap/common/ |
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);
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_overflow.c | 90 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/grub/grub2/include/grub/ |
H A D | mm.h | 78 grub_extend_alloc (grub_size_t sz, grub_size_t *allocated, void **ptr) argument 81 if (sz < *allocated) 84 *allocated = 2 * sz;
|
H A D | dl.h | 144 grub_size_t sz; member in struct:grub_dl
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_get.c | 185 size_t sz; local 192 sz = t->bt_rdata.size;; *p++ = ch, --sz) { 203 if (sz == 0) { 205 t->bt_rdata.size += (sz = 256);
|
/osnet-11/usr/src/lib/libast/common/cdt/ |
H A D | dtlist.c | 38 reg int lk, sz, ky; local 45 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf); 137 { key = (type&DT_MATCH) ? obj : _DTKEY(obj,ky,sz); 139 { k = _DTOBJ(r,lk); k = _DTKEY(k,ky,sz); 140 if(_DTCMP(dt,key,k,disc,cmpf,sz) == 0)
|
H A D | dtview.c | 41 int cmp, lk, sz, ky; local 65 _DTDSC(d->disc,ky,sz,lk,cmpf); 66 ok = _DTKEY(o,ky,sz); 69 { cmp = _DTCMP(d,ok,nk,d->disc,cmpf,sz);
|
H A D | dthash.c | 111 reg int lk, sz, ky; local 119 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf); 185 { key = (type&DT_MATCH) ? obj : _DTKEY(obj,ky,sz); 186 hsh = _DTHSH(dt,key,disc,sz); 192 key = _DTKEY(obj,ky,sz); 203 { key = _DTKEY(obj,ky,sz); 204 hsh = _DTHSH(dt,key,disc,sz); 210 { k = _DTOBJ(t,lk); k = _DTKEY(k,ky,sz); 211 if(_DTCMP(dt,key,k,disc,cmpf,sz) == 0)
|
H A D | dttree.c | 42 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/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);
|
H A D | uu_strtoint.c | 164 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/libproc/common/ |
H A D | Pidle.c | 170 size_t sz; local 178 sz = strlen(fp->file_pname); 179 (void) snprintf(&fp->file_pname[sz], 180 sizeof (fp->file_pname) - sz, "/%s", fname);
|
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_keychain.c | 61 int err, fd, sz; local 91 sz = sizeof (pk.pk_dom); 92 if (strlcpy(pk.pk_dom, dom, sz) >= sz) { 100 sz = sizeof (pk.pk_usr); 101 if (strlcpy(pk.pk_usr, usr, sz) >= sz) {
|
/osnet-11/usr/src/lib/libipmi/common/ |
H A D | ipmi_fru.c | 56 uint16_t sz, offset = 0; local 79 (void) memcpy(&sz, resp->ic_data, sizeof (uint16_t)); 80 if ((tmp = malloc(sz)) == NULL) { 85 while (offset < sz) { 89 if ((sz - offset) < 128) 90 cmd_data_in.ifr_count = sz - offset; 116 return (sz);
|
/osnet-11/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_util.c | 197 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/libsmbrp/common/ |
H A D | smbrp_plugin.c | 189 int i, sz; local 194 sz = snprintf(buf, bufsz, "%u:%u:%u:%u:%s:%u:%zu:%s", 199 if (sz > bufsz) { 207 bufsz -= sz; 212 sz = snprintf(linkdata, MAXREPARSELEN, ":%s:%s:%u:%u:%u", 215 if (sz > bufsz) { 220 bufsz -= sz;
|
/osnet-11/usr/src/lib/libntsvcs/common/ |
H A D | srvsvc_sd.c | 389 uint16_t sz, ace_cnt; local 394 bcopy(&sdbuf[*offset], &sz, sizeof (uint16_t)); 395 sz = LE_IN16(&sz); 401 acl = smb_acl_alloc(rev, sz, ace_cnt);
|
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Exacct/t/ |
H A D | randtest.c | 129 do_reads(ea_file_t *f, char dir, int sz) argument 135 while (sz--) { 202 int iters, maxsz, sz; local 230 sz = (lrand48() % maxsz) + 1; 231 dir = do_reads(&f, dir, sz);
|