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

1234567891011>>

/freebsd-10-stable/crypto/heimdal/lib/roken/
H A Demalloc.c46 emalloc (size_t sz) argument
48 void *tmp = malloc (sz);
50 if (tmp == NULL && sz != 0)
51 errx (1, "malloc %lu failed", (unsigned long)sz);
H A Derealloc.c46 erealloc (void *ptr, size_t sz) argument
48 void *tmp = realloc (ptr, sz);
50 if (tmp == NULL && sz != 0)
51 errx (1, "realloc %lu failed", (unsigned long)sz);
H A Dstrndup.c42 strndup(const char *old, size_t sz) argument
44 size_t len = strnlen (old, sz);
/freebsd-10-stable/contrib/ipfilter/lib/
H A Dmsgdsize.c14 size_t sz = 0; local
18 sz += m->mb_len;
19 return sz;
/freebsd-10-stable/contrib/ntp/sntp/libevent/
H A Dmm-internal.h42 * @return On success, return a pointer to sz newly allocated bytes.
44 * If the argument sz is 0, simply return NULL.
46 void *event_mm_malloc_(size_t sz);
68 void *event_mm_realloc_(void *p, size_t sz);
70 #define mm_malloc(sz) event_mm_malloc_(sz)
73 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz))
76 #define mm_malloc(sz) malloc(sz)
[all...]
/freebsd-10-stable/contrib/libstdc++/libsupc++/
H A Dnew_opv.cc35 operator new[] (std::size_t sz) throw (std::bad_alloc) argument
37 return ::operator new(sz);
H A Dnew_opvnt.cc35 operator new[] (std::size_t sz, const std::nothrow_t& nothrow) throw() argument
37 return ::operator new(sz, nothrow);
H A Dnew_opnt.cc41 operator new (std::size_t sz, const std::nothrow_t&) throw() argument
46 if (sz == 0)
47 sz = 1;
48 p = (void *) malloc (sz);
63 p = (void *) malloc (sz);
H A Dnew_op.cc50 operator new (std::size_t sz) throw (std::bad_alloc) argument
55 if (sz == 0)
56 sz = 1;
57 p = (void *) malloc (sz);
68 p = (void *) malloc (sz);
/freebsd-10-stable/lib/libelf/
H A Delf_getident.c37 elf_getident(Elf *e, size_t *sz) argument
52 if (sz) {
54 *sz = SARMAG;
56 *sz = EI_NIDENT;
58 *sz = e->e_rawsize;
64 if (sz)
65 *sz = 0;
H A Delf_rawfile.c35 elf_rawfile(Elf *e, size_t *sz) argument
48 if (sz)
49 *sz = size;
/freebsd-10-stable/contrib/gcc/config/
H A Dhost-darwin.c34 darwin_gt_pch_get_address (size_t sz, int fd ATTRIBUTE_UNUSED) argument
36 if (sz <= sizeof (pch_address_space))
46 darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off) argument
55 ret = (addr == pch_address_space && sz <= sizeof (pch_address_space));
57 sz = 0;
60 sz = (sz + pagesize - 1) / pagesize * pagesize;
62 if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0)
67 mmap_result = mmap (addr, sz,
[all...]
H A Dhost-darwin.h21 extern void * darwin_gt_pch_get_address (size_t sz, int fd);
22 extern int darwin_gt_pch_use_address (void *addr, size_t sz, int fd,
/freebsd-10-stable/crypto/heimdal/appl/ftp/common/
H A Dbuffer.c47 alloc_buffer (void *oldbuf, size_t *sz, struct stat *st) argument
56 if(new_sz > *sz) {
62 *sz = 0;
65 *sz = new_sz;
/freebsd-10-stable/sys/boot/ia64/common/
H A Dicache.c36 ia64_sync_icache(vm_offset_t va, size_t sz) argument
41 while (sz > 0) {
42 max = sz;
48 sz -= max;
H A Dcopy.c146 size_t sz; local
150 sz = len;
151 pa = ia64_va2pa(va, &sz);
152 if (sz == 0)
154 bcopy(src, pa, sz);
155 len -= sz;
156 res += sz;
157 va += sz;
167 size_t sz; local
171 sz
201 size_t sz; local
[all...]
/freebsd-10-stable/sys/sparc64/include/
H A Datomic.h89 #define itype(sz) uint ## sz ## _t
94 #define atomic_cas(p, e, s, sz) \
95 atomic_cas_ ## sz((p), (e), (s))
97 #define atomic_cas_acq(p, e, s, sz) ({ \
98 itype(sz) v; \
99 v = atomic_cas((p), (e), (s), sz); \
104 #define atomic_cas_rel(p, e, s, sz) ({ \
105 itype(sz) v; \
107 v = atomic_cas((p), (e), (s), sz); \
[all...]
H A Dwatch.h31 int watch_phys_set(vm_paddr_t pa, int sz);
36 int watch_virt_set(vm_offset_t va, int sz);
/freebsd-10-stable/lib/libefi/
H A Dlibefi.c69 size_t len, sz; local
73 sz = *szp;
77 if (len++ < sz)
79 if (len++ < sz)
81 if (len++ < sz)
84 if (len++ < sz)
86 if (len++ < sz)
89 if (len++ < sz)
93 if (len++ < sz)
97 return ((len <= sz)
104 size_t sz; local
[all...]
/freebsd-10-stable/contrib/gcc/config/i386/
H A Dhost-cygwin.c52 cygwin_gt_pch_get_address (size_t sz, int fd) argument
62 if ((size_t) p < sz)
64 if ( ftruncate (fd, sz) == -1 )
68 base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
73 munmap (base, sz);
/freebsd-10-stable/sys/boot/userboot/userboot/
H A Dcopy.c54 size_t sz; local
59 sz = len;
60 if (sz > sizeof(buf))
61 sz = sizeof(buf);
62 s = read(fd, buf, sz);
/freebsd-10-stable/usr.bin/xlint/lint2/
H A Dmem2.c75 xalloc(size_t sz) argument
81 sz = (sz + 7) & ~7L;
82 if (nxtfree + sz > mblklen) {
94 nxtfree += sz;
/freebsd-10-stable/lib/libc/iconv/
H A Dcitrus_memstream.h69 void *ptr, size_t sz)
73 _citrus_region_init(&r, ptr, sz);
94 size_t sz; local
96 sz = _citrus_region_size(&ms->ms_region);
97 if (ms->ms_pos>sz)
99 return (sz-ms->ms_pos);
105 size_t sz; local
107 sz = _citrus_region_size(&ms->ms_region);
111 if (pos >= sz)
117 if (pos >= sz)
68 _citrus_memory_stream_bind_ptr(struct _citrus_memory_stream * __restrict ms, void *ptr, size_t sz) argument
157 _citrus_memory_stream_getregion(struct _citrus_memory_stream *ms, struct _citrus_region *r, size_t sz) argument
217 size_t sz; local
[all...]
H A Dcitrus_region.h42 _citrus_region_init(struct _citrus_region *r, void *h, size_t sz) argument
46 r->r_size = sz;
64 _citrus_region_check(const struct _citrus_region *r, size_t ofs, size_t sz) argument
67 return (r->r_size >= ofs + sz ? 0 : -1);
104 const struct _citrus_region *r, size_t ofs, size_t sz)
107 if (_citrus_region_check(r, ofs, sz))
109 _citrus_region_init(subr, _citrus_region_offset(r, ofs), sz);
103 _citrus_region_get_subregion(struct _citrus_region *subr, const struct _citrus_region *r, size_t ofs, size_t sz) argument
/freebsd-10-stable/lib/libc/db/btree/
H A Dbt_overflow.c83 u_int32_t sz; local
86 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t));
87 *ssz = sz;
90 if (pg == P_INVALID || sz == 0)
94 if (*bufsz < sz) {
95 *buf = reallocf(*buf, sz);
98 *bufsz = sz;
110 nb = MIN(sz, plen);
114 if ((sz -= nb) == 0)
138 u_int32_t sz; local
188 u_int32_t sz; local
[all...]

Completed in 107 milliseconds

1234567891011>>