Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
# Corrigenda U013 1170/02: define uid_t and gid_t
29
+IMPLEMENT "posix", "sys/types.h", "guid" ;
30
 
31
+CONST int I_PUSH, I_POP, I_LOOK, I_FLUSH, I_FLUSHBAND, I_SETSIG ;
32
+CONST int I_GETSIG, I_FIND, I_PEEK, I_SRDOPT, I_GRDOPT, I_NREAD ;
33
+CONST int I_FDINSERT, I_STR, I_SWROPT, I_GWROPT, I_SENDFD, I_RECVFD ;
34
+CONST int I_LIST, I_ATMARK, I_CKBAND, I_GETBAND, I_CANPUT, I_SETCLTIME ;
35
+CONST int I_GETCLTIME, I_LINK, I_UNLINK, I_PLINK, I_PUNLINK ;
36
 
37
# from I_FLUSH
38
+CONST int FLUSHR, FLUSHW, FLUSHRW ;
39
 
40
# from I_FLUSHBAND
41
+FIELD struct bandinfo {
42
    unsigned char bi_pri ;
43
    int bi_flag ;
44
} ;
45
 
46
# from I_SETSIG
47
+CONST int S_RDNORM, S_RDBAND, S_INPUT, S_HIPRI, S_OUTPUT, S_WRNORM ;
48
+CONST int S_WRBAND, S_MSG, S_ERROR, S_HANGUP, S_BANDURG ;
49
 
50
# from I_PEEK
51
+FIELD struct strbuf {
52
    int maxlen ;
53
    int len ;
54
    char *buf ;
55
} ;
56
 
57
+FIELD struct strpeek {
58
    struct strbuf ctlbuf ;
59
    struct strbuf databuf ;
60
    long flags ;
61
} ;
62
 
63
# from I_PEEK
64
+CONST int RS_HIPRI ;
65
 
66
# from I_SRDOPT
67
+CONST int RNORM, RMSGD, RMSGN, RPROTNORM, RPROTDAT, RPROTDIS ;
68
 
69
# from I_FDINSERT
70
+FIELD struct strfdinsert {
71
    struct strbuf ctlbuf ;
72
    struct strbuf databuf ;
73
    long flags ;
74
    int fildes ;
75
    int offset ;
76
} ;
77
 
78
# from I_STR
79
+FIELD struct strioctl {
80
    int ic_cmd ;
81
    int ic_timout ;
82
    int ic_len ;
83
    char *ic_dp ;
84
} ;
85
 
86
# from I_SWROPT
87
+CONST int SNDZERO ;
88
 
89
# from I_RECVFD
90
+FIELD struct strrecvfd {
91
    int fd ;
92
    uid_t uid ;
93
    gid_t gid ;
94
} ;
95
 
96
# from I_LOOK
97
+CONST int FMNAMESZ ;
98
+NAT ~FMNAMESZ_PLUS_ONE ;
99
+FIELD struct str_mlist {
100
    char l_name [ ~FMNAMESZ_PLUS_ONE ] ;
101
} ;
102
 
103
+FIELD struct str_list {
104
    int sl_nmods ;
105
    struct str_mlist *sl_modlist ;
106
} ;
107
 
108
# from I_ATMARK
109
+CONST int ANYMARK, LASTMARK ;
110
 
111
# from I_UNLINK
112
+CONST int MUXID_ALL ;
113
 
114
+CONST int MSG_HIPRI, MSG_BAND, MSG_ANY ;
115
+CONST int MORECTL, MOREDATA ;
116
 
117
+FUNC int isastream ( int ) ;
118
+FUNC int getmsg ( int, struct strbuf *, struct strbuf *, int * ) ;
119
+FUNC int getpmsg ( int, struct strbuf *, struct strbuf *, int *, int * ) ;
120
+FUNC int ioctl ( int, int, ... ) ;
121
+FUNC int putmsg ( int, const struct strbuf *, const struct strbuf *, int ) ;
122
+FUNC int putpmsg ( int, const struct strbuf *, const struct strbuf *,
123
		    int, int ) ;
124
+FUNC int fattach ( int, const char * ) ;
125
+FUNC int fdetach ( const char * ) ;