man3tbl/OpenCrtP

Table of Contents

Name

OpenCrtPartition - create AccelNET master database partition

Description

OpenCrtPartition opens a shared memory partition for the AccelNET Xcrt database.

This function opens a database partition in a manner similiar to OpenMasterPartition() except that it returns a pointer to another (arbitrary) data structure in the partition.

The size of the structure is specified by CCsize and a pointer to the structure is returned in CCpnt. Xcrt uses this structure to hold data which is private to Xcrt but must be shared by the two programs (crt and ts) which make up Xcrt.

Usually this function is called by ts(1) .

This function is part of tblmngr.

Syntax

HEADER_TBL *OpenCrtPartition(
   int part_id,

   void *attach_addr,

   char **CCpnt,

   int CCsize

   );

Arguments

part_id

The shared memory id.
attach_addr

the attachment address
**CCpnt

Pointer to a pointer in which to return the private data structure pointer.
CCsize

The size of the private data structure.

Returns

A pointer to the HEADER_TBL if successful. NULL is returned on most other failures.

See Also

tblmngr(3tbl)

Manual page revision

$Id: OpenCrtP.3,v 1.3 2008/03/13 14:52:51 kitchen Exp $


Table of Contents