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


Detailed Description

Unified Event Manager test program [Sec. 5.18.2].

Definition in file uemtst.c.

Go to the source code of this file.

Defines

#define SYSTEMV_MSG_NAME   "/tmp/uemtst_systemv_msg"
#define POSIX_MSG_NAME   "/uemtst_posix_msg"
#define POSIX_SEM_NAME   "/uemtst_posix_sem"
#define MSG_SIZE   100
#define TEST_SIGNAL   SIGHUP

Functions

void handler_nothing (int signum)
bool setup_signal (void)
bool setup_systemv_sem (void)
bool setup_systemv_msg (void)
bool setup_posix_sem (void)
bool setup_posix_msg (void)
bool setup_process (void)
bool setup_fdset (void)
int main (void)


Define Documentation

#define MSG_SIZE   100
 

Definition at line 33 of file uemtst.c.

Referenced by main(), run_client(), run_server(), setup_posix_msg(), and setup_systemv_msg().

#define POSIX_MSG_NAME   "/uemtst_posix_msg"
 

Definition at line 31 of file uemtst.c.

Referenced by setup_posix_msg().

#define POSIX_SEM_NAME   "/uemtst_posix_sem"
 

Definition at line 32 of file uemtst.c.

Referenced by setup_posix_sem().

#define SYSTEMV_MSG_NAME   "/tmp/uemtst_systemv_msg"
 

Definition at line 30 of file uemtst.c.

Referenced by main(), setup_systemv_msg(), and setup_systemv_sem().

#define TEST_SIGNAL   SIGHUP
 

Definition at line 34 of file uemtst.c.

Referenced by setup_signal().


Function Documentation

void handler_nothing int  signum  )  [static]
 

Definition at line 36 of file uemtst.c.

int main void   ) 
 

Definition at line 280 of file uemtst.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_false, ec_neg1, ec_null, errno, exit(), msg::mtext, msg::mtype, open(), read(), setup_fdset(), setup_posix_msg(), setup_posix_sem(), setup_process(), setup_signal(), setup_systemv_msg(), setup_systemv_sem(), SYSTEMV_MSG_NAME, uem_event::ue_buf, uem_event::ue_errno, uem_event::ue_reg, uem_event::ue_result, uem_bgn(), uem_end(), UEM_FD_ERROR, UEM_FD_READ, UEM_FD_WRITE, uem_free(), UEM_HEARTBEAT, UEM_NONE, UEM_PROCESS, UEM_PXMSG, UEM_PXSEM, uem_register_heartbeat(), UEM_SIG, UEM_SVMSG, UEM_SVSEM, uem_unregister(), uem_wait(), uem_reg::ur_type, and write().

bool setup_fdset void   )  [static]
 

Definition at line 227 of file uemtst.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_false, ec_neg1, errno, exit(), FD_SET(), FD_ZERO(), fork(), getpid(), pipe(), read(), setblock(), signal, sleep(), UEM_FD_READ, UEM_FD_WRITE, uem_register_fdset(), and write().

Referenced by main().

bool setup_posix_msg void   )  [static]
 

Definition at line 174 of file uemtst.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_neg1, exit(), fork(), getpid(), mq_open, mq_send, mqd_t, MSG_SIZE, PERM_FILE, POSIX_MSG_NAME, and sleep().

Referenced by main().

bool setup_posix_sem void   )  [static]
 

Definition at line 141 of file uemtst.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_false, ec_neg1, exit(), fork(), getpid(), PERM_FILE, POSIX_SEM_NAME, sem_open(), sem_post(), sem_t, and sleep().

Referenced by main().

bool setup_process void   )  [static]
 

Definition at line 208 of file uemtst.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, exit(), fork(), sleep(), and uem_register_process().

Referenced by main().

bool setup_signal void   )  [static]
 

Definition at line 41 of file uemtst.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_neg1, exit(), fork(), getpid(), getppid(), kill(), sleep(), TEST_SIGNAL, and uem_register_signal().

Referenced by main().

bool setup_systemv_msg void   )  [static]
 

Definition at line 104 of file uemtst.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_neg1, exit(), fork(), ftok(), getpid(), MSG_SIZE, msgctl(), msgget(), msgsnd(), PERM_FILE, sleep(), SYSTEMV_MSG_NAME, and uem_register_svmsg().

Referenced by main().

bool setup_systemv_sem void   )  [static]
 

Definition at line 66 of file uemtst.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_neg1, exit(), fork(), ftok(), getpid(), PERM_FILE, sembuf::sem_flg, sembuf::sem_num, sembuf::sem_op, semctl(), semget(), semop(), sleep(), SYSTEMV_MSG_NAME, and uem_register_svsem().

Referenced by main().


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