00001 #ifndef _SMI_MSG_H_ 00002 #define _SMI_MSG_H_ 00003 00004 #include "smi.h" 00005 00006 /* 00007 Following not in book. Note that as of OS X 10.2, Darwin does not have Sys V msgs. 00008 */ 00009 #if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 4) || defined(FREEBSD) 00010 #define HAVE_SYSVMSG 00011 #endif 00012 00013 /* 00014 Simple Messaging Interface - System V msg version 00015 */ 00016 SMIQ *smi_open_msg(const char *name, SMIENTITY entity, size_t msgsize); 00017 bool smi_close_msg(SMIQ *sqp); 00018 bool smi_send_getaddr_msg(SMIQ *sqp, struct client_id *client, 00019 void **addr); 00020 bool smi_send_release_msg(SMIQ *sqp); 00021 bool smi_receive_getaddr_msg(SMIQ *sqp, void **addr); 00022 bool smi_receive_release_msg(SMIQ *sqp); 00023 00024 #endif /* _SMI_MSG_H_ */