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/shmex.c File Reference


Detailed Description

Example using shared memory (bad example) [Sec. 7.13.1].

Definition in file shmex.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 24 of file shmex.c.

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

Referenced by main(), smi_close_shm(), and smi_send_getaddr_shm().

int main void   ) 
 

Definition at line 40 of file shmex.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, exit(), fork(), getaddr(), and sleep().


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