~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to incl/osxdef.h

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*++++++++++++++++++++++++++ midas/osparms.h ++++++++++++++++++++++++++++
 
2
.TYPE           Header
 
3
.LANGUAGE       C
 
4
.IDENTIFICATION osxdef.h
 
5
.AUTHOR         Carlog Guirao [ESO-SDAG]
 
6
.KEYWORDS       Interprocces communications.
 
7
.ENVIRONMENT    Unix
 
8
.VERSION 1.1    6.6.94: Implementation
 
9
 
 
10
 060406         last modif
 
11
--------------------------------------------------------------------------*/
 
12
#ifndef  OSX_DEF 
 
13
#define  OSX_DEF          /* Indicates inclusion of OSX_DEF header */
 
14
 
 
15
#include <oserror.h>
 
16
 
 
17
#define  MAX_IPCC     32        /* maximum number of IPC channels in use */
 
18
 
 
19
/* open modes : */
 
20
 
 
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.) */
 
26
 
 
27
/* queue lengths : */
 
28
 
 
29
#define  LOCAL_QUEUE_LENGTH  5  /* queue length on local proccesses */
 
30
#define  NETW_QUEUE_LENGTH   5  /* queue length on network proccesses */
 
31
 
 
32
/* returned values from osxinfo */
 
33
 
 
34
#define NODATA  0
 
35
#define DATARDY 1
 
36
#define NOCONN  2
 
37
 
 
38
/* communication channels status : */
 
39
 
 
40
#define  WAIT_ON_WRITE       0
 
41
#define  WAIT_ON_READ        1
 
42
#define  OPENED_READ         2
 
43
#define  OPENED_WRITE        3
 
44
#define  CLOSED              4
 
45
#define  IDLE                5
 
46
 
 
47
/* interprocess communication structure */
 
48
 
 
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 */
 
56
};
 
57
 
 
58
#endif /* OSX_DEF */