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  

c7/shmex2.c File Reference


Detailed Description

Example using shared memory and semaphore (inefficient) [Sec. 7.13.2].

Definition in file shmex2.c.

Go to the source code of this file.

Functions

int * getaddr (void)
int main (void)


Function Documentation

int* getaddr void   )  [static]
 

Definition at line 25 of file shmex2.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, ftok(), open(), PERM_FILE, shmat(), and shmget().

int main void   ) 
 

Definition at line 41 of file shmex2.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_null, exit(), fork(), getaddr(), SimpleSemClose(), SimpleSemOpen(), SimpleSemPost(), SimpleSemRemove(), SimpleSemWait(), and sleep().


Generated on Fri Apr 23 10:57:09 2004 for AUP2 Example Source by doxygen 1.3.1