Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | 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
+USE "svid3", "sys/types.h" ;
29
 
30
+FIELD struct strbuf {
31
    int maxlen ;
32
    int len ;
33
    char *buf ;
34
} ;
35
 
36
+FUNC int getmsg ( int, struct strbuf *, struct strbuf *, int * ) ;
37
+FUNC int getpmsg ( int, struct strbuf *, struct strbuf *, int *, int * ) ;
38
+FUNC int putmsg ( int, const struct strbuf *, const struct strbuf *, int ) ;
39
+FUNC int putpmsg ( int, const struct strbuf *, const struct strbuf *,
40
		    int, int ) ;
41
 
42
+CONST int RS_HIPRI, MSG_HIPRI, MSG_BAND, MSG_ANY ;
43
+CONST int MORECTL, MOREDATA ;
44
 
45
+FIELD struct bandinfo {
46
    unsigned char bi_pri ;
47
    int bi_flag ;
48
} ;
49
 
50
+FIELD struct strpeek {
51
    struct strbuf ctlbuf ;
52
    struct strbuf databuf ;
53
    long flags ;
54
} ;
55
 
56
+FIELD struct strfdinsert {
57
    struct strbuf ctlbuf ;
58
    struct strbuf databuf ;
59
    long flags ;
60
    int fildes ;
61
    int offset ;
62
} ;
63
 
64
+FIELD struct strioctl {
65
    int ic_cmd ;
66
    int ic_timout ;
67
    int ic_len ;
68
    char *ic_dp ;
69
} ;
70
 
71
+FIELD struct strrecvfd {
72
    int fd ;
73
    uid_t uid ;
74
    gid_t gid ;
75
    char fill [8] ;
76
} ;
77
 
78
+CONST int FMNAMESZ ;
79
+NAT ~FMNAMESZ_PLUS_ONE ;
80
+FIELD struct str_mlist {
81
    char l_name [ ~FMNAMESZ_PLUS_ONE ] ;
82
} ;
83
 
84
+FIELD struct str_list {
85
    int sl_nmods ;
86
    struct str_mlist *sl_modlist ;
87
} ;
88
 
89
+CONST int I_PUSH, I_POP, I_LOOK, I_FLUSH, I_FLUSHBAND, I_SETSIG, I_GETSIG ;
90
+CONST int I_FIND, I_PEEK, I_SRDOPT, I_GRDOPT, I_NREAD, I_FDINSERT, I_STR ;
91
+CONST int I_SWROPT, I_GWROPT, I_SENDFD, I_RECVFD, I_LIST, I_ATMARK, I_CKBAND ;
92
+CONST int I_GETBAND, I_CANPUT, I_SETCLTIME, I_GETCLTIME, I_LINK, I_UNLINK ;
93
+CONST int I_PLINK, I_PUNLINK ;
94
+CONST int FLUSHR, FLUSHW, FLUSHRW ;
95
+CONST int S_RDNORM, S_RDBAND, S_INPUT, S_HIPRI, S_OUTPUT, S_WRNORM ;
96
+CONST int S_WRBAND, S_MSG, S_ERROR, S_HANGUP, S_BANDURG ;
97
+CONST int RNORM, RMSGD, RMSGN, RPROTNORM, RPROTDAT, RPROTDIS ;
98
+CONST int SNDZERO ;
99
+CONST int ANYMARK, LASTMARK ;
100
+CONST int MUXID_ALL ;
101
 
102
+FUNC int isastream ( int ) ;
103
 
104
# SVID3 not clear on ioctl(), streams(BA_DEV) requires #include <stropts.h>
105
+FUNC int ioctl ( int, int, ... ) ;