Subversion Repositories tendra.SVN

Rev

Rev 5 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#                Crown Copyright (c) 1997
#   
#   This TenDRA(r) Computer Program is subject to Copyright
#   owned by the United Kingdom Secretary of State for Defence
#   acting through the Defence Evaluation and Research Agency
#   (DERA).  It is made available to Recipients with a
#   royalty-free licence for its use, reproduction, transfer
#   to other parties and amendment for any purpose not excluding
#   product development provided that any such use et cetera
#   shall be deemed to be acceptance of the following conditions:-
#   
#       (1) Its Recipients shall ensure that this Notice is
#       reproduced upon any copies or amended versions of it;
#   
#       (2) Any amended version of it shall be clearly marked to
#       show both the nature of and the organisation responsible
#       for the relevant amendment or amendments;
#   
#       (3) Its onward transfer from a recipient to another
#       party shall be deemed to be that party's acceptance of
#       these conditions;
#   
#       (4) DERA gives no warranty or assurance as to its
#       quality or suitability for any purpose and DERA accepts
#       no liability whatsoever in relation to any use to which
#       it may be put.
#
+USE "svid3", "sys/types.h" ;

+FIELD struct strbuf {
    int maxlen ;
    int len ;
    char *buf ;
} ;

+FUNC int getmsg ( int, struct strbuf *, struct strbuf *, int * ) ;
+FUNC int getpmsg ( int, struct strbuf *, struct strbuf *, int *, int * ) ;
+FUNC int putmsg ( int, const struct strbuf *, const struct strbuf *, int ) ;
+FUNC int putpmsg ( int, const struct strbuf *, const struct strbuf *,
                    int, int ) ;

+CONST int RS_HIPRI, MSG_HIPRI, MSG_BAND, MSG_ANY ;
+CONST int MORECTL, MOREDATA ;

+FIELD struct bandinfo {
    unsigned char bi_pri ;
    int bi_flag ;
} ;

+FIELD struct strpeek {
    struct strbuf ctlbuf ;
    struct strbuf databuf ;
    long flags ;
} ;

+FIELD struct strfdinsert {
    struct strbuf ctlbuf ;
    struct strbuf databuf ;
    long flags ;
    int fildes ;
    int offset ;
} ;

+FIELD struct strioctl {
    int ic_cmd ;
    int ic_timout ;
    int ic_len ;
    char *ic_dp ;
} ;

+FIELD struct strrecvfd {
    int fd ;
    uid_t uid ;
    gid_t gid ;
    char fill [8] ;
} ;

+CONST int FMNAMESZ ;
+NAT ~FMNAMESZ_PLUS_ONE ;
+FIELD struct str_mlist {
    char l_name [ ~FMNAMESZ_PLUS_ONE ] ;
} ;

+FIELD struct str_list {
    int sl_nmods ;
    struct str_mlist *sl_modlist ;
} ;

+CONST int I_PUSH, I_POP, I_LOOK, I_FLUSH, I_FLUSHBAND, I_SETSIG, I_GETSIG ;
+CONST int I_FIND, I_PEEK, I_SRDOPT, I_GRDOPT, I_NREAD, I_FDINSERT, I_STR ;
+CONST int I_SWROPT, I_GWROPT, I_SENDFD, I_RECVFD, I_LIST, I_ATMARK, I_CKBAND ;
+CONST int I_GETBAND, I_CANPUT, I_SETCLTIME, I_GETCLTIME, I_LINK, I_UNLINK ;
+CONST int I_PLINK, I_PUNLINK ;
+CONST int FLUSHR, FLUSHW, FLUSHRW ;
+CONST int S_RDNORM, S_RDBAND, S_INPUT, S_HIPRI, S_OUTPUT, S_WRNORM ;
+CONST int S_WRBAND, S_MSG, S_ERROR, S_HANGUP, S_BANDURG ;
+CONST int RNORM, RMSGD, RMSGN, RPROTNORM, RPROTDAT, RPROTDIS ;
+CONST int SNDZERO ;
+CONST int ANYMARK, LASTMARK ;
+CONST int MUXID_ALL ;

+FUNC int isastream ( int ) ;

# SVID3 not clear on ioctl(), streams(BA_DEV) requires #include <stropts.h>
+FUNC int ioctl ( int, int, ... ) ;