HomeSort by: relevance | last modified time | path
    Searched refs:MALLOC (Results 1 - 25 of 28) sorted by relevancy

1 2

  /src/sys/arch/atari/stand/tostools/libtos/
aout.c 41 #define MALLOC(x) malloc(x)
50 #define MALLOC(x) alloc(x)
123 if ((od->kstart = (u_char *)MALLOC(od->ksize)) == NULL)
161 /* 4 */ "Cannot malloc kernel image space",
elf.c 40 #define MALLOC(x) malloc(x)
49 #define MALLOC(x) alloc(x)
91 if ((phdrs = (Elf32_Phdr *)MALLOC(i)) == NULL)
142 if ((od->kstart = (u_char *)MALLOC(od->ksize)) == NULL)
224 /* 1 */ "Cannot malloc Elf phdr storage space",
228 /* 5 */ "Cannot malloc kernel image space",
  /src/lib/libc/gdtoa/
g__fmt.c 59 if ((decimalpoint_cache = MALLOC(strlen(s0) + 1)) != NULL) {
gdtoaimp.h 120 * #define MALLOC your_malloc, where your_malloc(n) acts like malloc(n)
122 * appropriate. If MALLOC is undefined, malloc will be invoked
125 * recycle memory acquired from MALLOC, #define FREE to be the
133 * suffices to get rid of MALLOC calls except for unusual cases,
223 #ifdef MALLOC
224 extern Char *MALLOC ANSI((size_t));
226 #define MALLOC malloc
    [all...]
misc.c 68 rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(ULong));
77 rv = (Bigint*)MALLOC(len*sizeof(double));
  /src/sys/dev/stbi/
stb_image.c 438 #include <sys/malloc.h>
447 #define MALLOC(size) malloc((size), M_TEMP, M_WAITOK)
452 #define MALLOC(size) malloc((size))
972 // assume data buffer is malloced, so malloc a new one and free that one
973 // only failure mode is malloc failing
988 good = MALLOC(req_comp * x * y);
1040 float *output = MALLOC(x * y * comp * sizeof(float));
1058 stbi_uc *output = MALLOC(x * y * comp)
    [all...]
  /src/sys/fs/nfs/client/
nfs_clnode.c 44 #include <sys/malloc.h>
114 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
163 MALLOC(np->n_fhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
nfs_clsubs.c 58 #include <sys/malloc.h>
278 MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
293 MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
nfs_clcomsubs.c 419 MALLOC(dp, struct nfsdmap *, sizeof (struct nfsdmap),
434 MALLOC(dp2, struct nfsdmap *, sizeof (struct nfsdmap),
nfs_clport.c 189 MALLOC(newd, struct nfsv4node *,
258 MALLOC(np->n_v4, struct nfsv4node *, sizeof (struct nfsv4node)
325 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
1360 buf = malloc(dumpmntopts.ndmnt_blen, M_TEMP, M_WAITOK);
nfs_clstate.c 231 * Might need one or both of these, so MALLOC them now, to
232 * avoid a tsleep() in MALLOC later.
234 MALLOC(nowp, struct nfsclowner *, sizeof (struct nfsclowner),
237 MALLOC(nop, struct nfsclopen *, sizeof (struct nfsclopen) +
749 MALLOC(newclp, struct nfsclclient *,
953 * Might need these, so MALLOC them now, to
954 * avoid a tsleep() in MALLOC later.
956 MALLOC(nlp, struct nfscllockowner *,
958 MALLOC(otherlop, struct nfscllock *,
960 MALLOC(nlop, struct nfscllock *
    [all...]
nfs_clvnops.c 58 #include <sys/malloc.h>
478 bp = malloc(NFS_DIRBLKSIZ, M_TEMP, M_WAITOK);
1832 MALLOC(newv4, struct nfsv4node *,
2404 MALLOC(sp, struct sillyrename *, sizeof (struct sillyrename),
2489 MALLOC(np->n_v4, struct nfsv4node *,
2703 malloc(bveccount * sizeof(struct buf *),
nfs_clrpcops.c 456 MALLOC(ndp, struct nfscldeleg *,
877 dsp = malloc(sizeof(struct nfsclds), M_NFSCLDS, M_WAITOK | M_ZERO);
1213 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) +
1245 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) +
2055 MALLOC(dp, struct nfscldeleg *,
4521 dsp = malloc(sizeof(struct nfsclds) + len, M_NFSCLDS,
4778 flp = malloc(sizeof(*flp) + (fhcnt - 1) *
4782 flp = malloc(sizeof(*flp),
4822 nfhp = malloc(sizeof(*nfhp) + nfhlen - 1,
4925 ndi = malloc(sizeof(*ndi) + (addrcnt + i)
    [all...]
  /src/usr.sbin/syslogd/
syslogd.h 141 #define D_MEM 256 /* malloc/free */
142 #define D_MEM2 1024 /* every single malloc/free */
205 * - malloc()/calloc() only fails if not enough memory available
210 #define MALLOC(ptr, size) do { \
211 while(!(ptr = malloc(size))) { \
215 DPRINTF(D_MEM2, "MALLOC(%s@%p, %zu)\n", #ptr, ptr, size); \
tls.c 387 MALLOC(*returnstring, memsize);
418 MALLOC(*returnstring, (size_t)len+1);
846 socks = malloc((maxs+1) * sizeof(*socks));
1380 MALLOC(peername, len);
sign.c 211 if (!(ptr_der_pubkey = der_pubkey = malloc(der_len))
212 || !(pubkey_b64 = malloc(der_len*2))) {
214 logerror("malloc() failed");
263 if (!(ptr_der_pubkey = der_pubkey = malloc(der_len))
264 || !(pubkey_b64 = malloc(der_len*2))) {
266 logerror("malloc() failed");
780 MALLOC(qentry, sizeof(*qentry));
syslogd.c 499 if (!(linebuf = malloc(linebufsize))) {
503 if (!(klog_linebuf = malloc(linebufsize))) {
515 funix = malloc(sizeof(*funix) * funixsize);
1291 MALLOC(dst, dstsize);
2173 MALLOC(*line, msglen + tlsprefixlen + 1);
3109 if(!(sqentry = malloc(sizeof(*sqentry)))) {
3276 if(!(cred = malloc(sizeof(*cred)))) {
4111 if (!(hostname = malloc(len))) {
4292 p = malloc(sizeof(*p));
4581 MALLOC(newbuf->msg, len)
    [all...]
  /src/usr.sbin/route6d/
route6d.c 266 #define MALLOC(type) (malloc(sizeof(type)))
345 if ((ripbuf = malloc(RIP6_MAXMTU)) == NULL)
346 fatal("malloc");
377 if ((ripbuf = malloc(RIP6_MAXMTU)) == NULL) {
378 fatal("malloc");
1206 if ((rrt = MALLOC(struct riprt)) == NULL) {
1207 fatal("malloc: struct riprt");
1333 if ((ifcp = MALLOC(struct ifc)) == NULL) {
1334 fatal("malloc: struct ifc")
    [all...]
  /src/sys/fs/nfs/server/
nfs_nfsdserv.c 2226 MALLOC(stp, struct nfsstate *, sizeof (struct nfsstate) + i,
2254 MALLOC(stp, struct nfsstate *, sizeof (struct nfsstate),
2277 MALLOC(lop, struct nfslock *, sizeof (struct nfslock),
2383 MALLOC(stp, struct nfsstate *, sizeof (struct nfsstate) + i,
2491 MALLOC(stp, struct nfsstate *, sizeof (struct nfsstate),
2493 MALLOC(lop, struct nfslock *, sizeof (struct nfslock),
2610 MALLOC(stp, struct nfsstate *, sizeof (struct nfsstate) + i,
3473 clp = malloc(sizeof(struct nfsclient) + i, M_NFSDCLIENT, M_WAITOK |
3475 clp->lc_stateid = malloc(sizeof(struct nfsstatehead) *
3681 MALLOC(stp, struct nfsstate *, sizeof (struct nfsstate) + len
    [all...]
nfs_nfsdport.c 669 MALLOC(iv, struct iovec *, i * sizeof (struct iovec),
737 MALLOC(ivp, struct iovec *, cnt * sizeof (struct iovec), M_TEMP,
1014 * This function has an ugly side effect. It will MALLOC() an area for
1039 MALLOC(pathcp, caddr_t, len + 1, M_TEMP, M_WAITOK);
1642 MALLOC(rbuf, caddr_t, siz, M_TEMP, M_WAITOK);
1920 MALLOC(rbuf, caddr_t, siz, M_TEMP, M_WAITOK);
2512 cp = malloc(j + 1, M_NFSSTRING, M_WAITOK);
2539 cp = malloc(j + 1, M_NFSSTRING, M_WAITOK);
2936 * for memory allocation via malloc() or mget() and return True iff
2949 printf("nfsd: malloc/mget near limit\n")
    [all...]
nfs_nfsdcache.c 328 * Get a cache entry for this request. Basically just malloc a new one
339 MALLOC(newrp, struct nfsrvcache *, sizeof (struct nfsrvcache),
nfs_nfsdstate.c 1517 * cases, *new_stpp and *new_lopp should be malloc'd before the call,
1580 * Malloc now, before we start sifting through the linked lists,
1585 MALLOC(other_lop, struct nfslock *, sizeof (struct nfslock),
2276 MALLOC(new_lfp, struct nfslockfile *, sizeof (struct nfslockfile),
2525 MALLOC(new_lfp, struct nfslockfile *, sizeof (struct nfslockfile),
2527 MALLOC(new_open, struct nfsstate *, sizeof (struct nfsstate),
2529 MALLOC(new_deleg, struct nfsstate *, sizeof (struct nfsstate),
4466 sf->nsf_bootvals = (time_t *)malloc((sf->nsf_numboots + 1) *
4503 tsp = (struct nfst_rec *)malloc(sizeof (struct nfst_rec) +
4538 sp = (struct nfsrv_stable *)malloc(tsp->len
    [all...]
  /src/sys/fs/nfs/common/
nfsport.h 56 #include <sys/malloc.h>
627 MALLOC((a), struct sockaddr *, sizeof (struct sockaddr), \
779 * Declare the malloc types.
nfs_commonkrpc.c 56 #include <sys/malloc.h>
668 MALLOC(rep, struct nfsreq *, sizeof(struct nfsreq),
  /src/sys/dev/pci/
pci_subr.c 57 #define MALLOC(sz) kmem_alloc(sz, KM_SLEEP)
68 #define MALLOC(sz) malloc(sz)
5134 regs = MALLOC(PCI_EXTCONF_SIZE);

Completed in 51 milliseconds

1 2