2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::PosixShm Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::PosixShm:

Ux::File Ux::Base List of all members.

Detailed Description

Definition at line 66 of file uxposixipc.hpp.

Public Member Functions

void open (const char *name, int flags, mode_t perms=PERM_FILE)
void unlink (const char *name)
void * mmap (size_t len, void *addr=NULL, int prot=PROT_READ|PROT_WRITE, int flags=MAP_SHARED, off_t off=0)
void munmap (void *addr, size_t len)


Member Function Documentation

void * PosixShm::mmap size_t  len,
void *  addr = NULL,
int  prot = PROT_READ | PROT_WRITE,
int  flags = MAP_SHARED,
off_t  off = 0
 

Calls mmap. Arguments are in a different order to take advantage of defaults, and fd argument comes from the class.

Definition at line 188 of file uxposixipc.cpp.

References errno, and Ux::File::fd.

void PosixShm::munmap void *  addr,
size_t  len
 

Calls munmap. Could be static, as it doesn't refer to the fd.

Definition at line 200 of file uxposixipc.cpp.

References errno.

void PosixShm::open const char *  name,
int  flags,
mode_t  perms = PERM_FILE
 

Calls shm_open.

Definition at line 161 of file uxposixipc.cpp.

References errno, and Ux::File::fd.

void PosixShm::unlink const char *  name  ) 
 

Calls shm_unlink. Could be static, as it doesn't refer to the fd.

Definition at line 174 of file uxposixipc.cpp.

References errno.


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:17 2004 for AUP2 Example Source by doxygen 1.3.1