1
/*++++++++++++++++++++++++++ midas/osparms.h ++++++++++++++++++++++++++++
4
.IDENTIFICATION osxdef.h
5
.AUTHOR Carlog Guirao [ESO-SDAG]
6
.KEYWORDS Interprocces communications.
8
.VERSION 1.1 6.6.94: Implementation
11
--------------------------------------------------------------------------*/
13
#define OSX_DEF /* Indicates inclusion of OSX_DEF header */
17
#define MAX_IPCC 32 /* maximum number of IPC channels in use */
21
#define LOCAL 00 /* The call to the osxopen interface */
22
#define NETW 02 /* with a combination of two of these */
23
#define IPC_READ 00 /* switches allows the choice of the */
24
#define IPC_WRITE 01 /* right open mode. i.e. LOCAL | SOCK_READ */
25
#define CLIENT 04 /* special flag for client open (no priv.) */
29
#define LOCAL_QUEUE_LENGTH 5 /* queue length on local proccesses */
30
#define NETW_QUEUE_LENGTH 5 /* queue length on network proccesses */
32
/* returned values from osxinfo */
38
/* communication channels status : */
40
#define WAIT_ON_WRITE 0
41
#define WAIT_ON_READ 1
43
#define OPENED_WRITE 3
47
/* interprocess communication structure */
49
struct ipccstat { /* structure socket-status */
50
char *chname; /* channel name */
51
char *phname; /* second name/host name */
52
int omode; /* open mode (either IPC_READ or IPC_WRITE) */
53
int type; /* LOCAL or NETW */
54
int status; /* status of the channel */
55
int accept; /* descriptor returned by accept */