Go to the first, previous, next, last section, table of contents.


3.1.1 diskheap_create -- Create a new diskheap file

Function:
diskheap_t *diskheap_create(const char *file, const unsigned int flags, const unsigned int block_size, const unsigned int heap_type, const unsigned int open_mode, int *error_p)

Usage: diskheap_p = diskheap_create("stuff.dh", 0, 0 /* use default block-size */, 0 /* no heap type specified */, 0644, &ret /* error code */);

This function creates a brand new diskheap file when the file has not existed before. It takes arguments similar to the open system call along with the heap-type which can be used by the caller to identify the contents of the heap.


Go to the first, previous, next, last section, table of contents.

Diskheap Home Page. Copyright 2002 by Gray Watson