Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Functions
prshm.h File Reference
#include "prtypes.h"
#include "prio.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PR_SHM_CREATE   0x1 /* create if not exist */
#define PR_SHM_EXCL   0x2 /* fail if already exists */
#define PR_SHM_READONLY   0x01

Typedefs

typedef
typedefPR_BEGIN_EXTERN_C
struct 
PRSharedMemory

Functions

 PR_OpenSharedMemory (const char *name, PRSize size, PRIntn flags, PRIntn mode)
 PR_AttachSharedMemory (PRSharedMemory *shm, PRIntn flags)
 PR_DetachSharedMemory (PRSharedMemory *shm, void *addr)
 PR_CloseSharedMemory (PRSharedMemory *shm)
 PR_DeleteSharedMemory (const char *name)

Define Documentation

#define PR_SHM_CREATE   0x1 /* create if not exist */

Definition at line 187 of file prshm.h.

#define PR_SHM_EXCL   0x2 /* fail if already exists */

Definition at line 188 of file prshm.h.

#define PR_SHM_READONLY   0x01

Definition at line 219 of file prshm.h.


Typedef Documentation

typedef typedefPR_BEGIN_EXTERN_C struct PRSharedMemory

Definition at line 142 of file prshm.h.


Function Documentation

PR_AttachSharedMemory ( PRSharedMemory shm,
PRIntn  flags 
)

Definition at line 111 of file prshm.c.

{
    return( _PR_MD_ATTACH_SHARED_MEMORY( shm, flags ));
} /* end PR_AttachSharedMemory() */

Here is the caller graph for this function:

Definition at line 137 of file prshm.c.

{
    return( _PR_MD_CLOSE_SHARED_MEMORY( shm ));
} /* end PR_CloseSharedMemory() */

Here is the caller graph for this function:

PR_DeleteSharedMemory ( const char *  name)

Definition at line 149 of file prshm.c.

{
    if (!_pr_initialized) _PR_ImplicitInitialization();
    return(_PR_MD_DELETE_SHARED_MEMORY( name ));
} /* end PR_DestroySharedMemory() */

Here is the call graph for this function:

Here is the caller graph for this function:

PR_DetachSharedMemory ( PRSharedMemory shm,
void addr 
)

Definition at line 124 of file prshm.c.

{
    return( _PR_MD_DETACH_SHARED_MEMORY( shm, addr ));
} /* end PR_DetachSharedMemory() */

Here is the caller graph for this function:

PR_OpenSharedMemory ( const char *  name,
PRSize  size,
PRIntn  flags,
PRIntn  mode 
)

Definition at line 95 of file prshm.c.

{
    if (!_pr_initialized) _PR_ImplicitInitialization();
    return( _PR_MD_OPEN_SHARED_MEMORY( name, size, flags, mode ));
} /* end PR_OpenSharedMemory() */

Here is the call graph for this function:

Here is the caller graph for this function: