代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/279968/4129309
h mhooks.h
/* Functions used by mcheck/mprobe */
extern void (*__malloc_initialize_hook) (void);
extern void (*__free_hook) (void * __ptr, const void *);
extern void * (*__malloc_hook) (size_t __size, const voi
www.eeworm.com/read/440906/1777028
c crash31.c
// Build don't link:
// GROUPS passed old-abort
struct mbuf {
struct mbuf *next;
};
void* malloc(int);
struct mbuf *
mbuf_allocate(int size)
{
struct mbuf *bp;
bp = (struct mbuf *) malloc(
www.eeworm.com/read/430479/1929831
h memp_std.h
/*
* SETUP: Make sure we define everything we will need.
*
* We have create three types of pools:
* 1) MEMPOOL - standard pools
* 2) MALLOC_MEMPOOL - to be used by mem_malloc in mem.c
* 3)
www.eeworm.com/read/395229/2445362
h heap.h
/*
* libc/stdlib/malloc/heap.h -- heap allocator used for malloc
*
* Copyright (C) 2002,03 NEC Electronics Corporation
* Copyright (C) 2002,03 Miles Bader
*
* This file is su
www.eeworm.com/read/366702/2871001
c crash31.c
// { dg-do assemble }
// GROUPS passed old-abort
struct mbuf {
struct mbuf *next;
};
void* malloc(int);
struct mbuf *
mbuf_allocate(int size)
{
struct mbuf *bp;
bp = (struct mbuf *) malloc
www.eeworm.com/read/366702/2879508
c 20060208-1.c
/* PR middle-end/26092 */
typedef __SIZE_TYPE__ size_t;
extern void *malloc (size_t);
void *(*const foo) (size_t) = malloc;
void *test (void)
{
return (*foo) (3);
}
www.eeworm.com/read/366702/2883878
c pr15443-2.c
/* { dg-do compile } */
struct foo {
int bar;
};
typedef struct foo* bar;
void f () __attribute__ ((__malloc__)); /* { dg-warning "ignored" } */
int g () __attribute__ ((__malloc__)); /* { dg-warni
www.eeworm.com/read/415674/11059066
c port.c
#include "tdestr.h"
#include "common.h"
#include "tdefunc.h"
#include "define.h"
/*
* Name: my_malloc
* Purpose: malloc from the far heap
* Date: April 1, 1993
* Passed: mem:
www.eeworm.com/read/268493/11136671
cpp dm642helper.cpp
#include
#include //for exit()
#include //for malloc()
#include //for time()
#include //for memset(),bzero()
#include //for c
www.eeworm.com/read/203473/15358121
c port.c
#include "tdestr.h"
#include "common.h"
#include "tdefunc.h"
#include "define.h"
/*
* Name: my_malloc
* Purpose: malloc from the far heap
* Date: April 1, 1993
* Passed: mem: