代码搜索:alloc
找到约 10,000 项符合「alloc」的源代码
代码结果 10,000
www.eeworm.com/read/101168/15842583
pthread_alloc
/*
* Copyright (c) 1996
* Silicon Graphics Computer Systems, Inc.
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted
www.eeworm.com/read/100605/15869642
alloc_mmap
realname "Disk Based Allocation System"
define ALLOC_MMAP
needs_std posix1
add_file mmap_mem.cpp
add_file mmap_mem.h
www.eeworm.com/read/100605/15869649
alloc_mlock
realname "Memory Locking Allocation System"
define ALLOC_MLOCK
needs_std posix1
add_file lock_mem.cpp
add_file lock_mem.h
www.eeworm.com/read/100585/15870706
c alloc.c
#include "db.h"
/* Allocate & initialize a DB structure, and all the buffers it needs */
DB *
_db_alloc(int namelen)
{
DB *db;
/* Use calloc, to init structure to zero */
if ( (db = calloc(1
www.eeworm.com/read/100236/15879814
c alloc.c
/*
* This file contains the functions:
* void new_hblk(n)
* static void clear_marks()
* tl_mark(p)
* mark()
* mark_all(b,t)
* void gcollect()
* expand_hp: func[val Short] val Void
* struct ob
www.eeworm.com/read/192268/8390327
c x_alloc.c
#include
#include
#include
void *xmalloc (size_t size)
{
void *ptr;
ptr = malloc (size);
if (!ptr)
{
fprintf (stderr, "Out of memory\n");
exit (1);
}
memset
www.eeworm.com/read/192111/8403518
hpp shm_alloc.hpp
#ifndef _SHM_ALLOC_HPP_
#define _SHM_ALLOC_HPP_
#include "memory_pool.hpp"
#include
#include
using namespace std;
namespace happycode
{
template
www.eeworm.com/read/192084/8408123
h mem_alloc.h
#ifndef MEM_ALLOC_H
#define MEM_ALLOC_H
#define MEM_DEBUG
#define MAX_03_LONG_MEM 512
#define MAX_33_LONG_MEM 512
#define MAX_66_LONG_MEM 512
void mem_init(void);
void * mem_realloc(void
www.eeworm.com/read/192084/8408128
cpp mem_alloc.cpp
#include "mem_alloc.h"
#include
#include
#define MEM_TAG_66 4
#define MEM_TAG_33 2
#define MEM_TAG_03 1
#define MEM_03_SIZE 3*4
#define MEM_33_SIZE 33*4
#defin
www.eeworm.com/read/188503/8534803
h table_alloc.h
static int alloc_sblim[4] = { 27, 30, 8, 12 };
static int alloc_len[4] = { 288, 300, 80, 112 };
static struct {
int i;
int j;
int steps;
int bits;
int group;
int quant;
} alloc_tab[