Subversion Repositories tendra.SVN

Rev

Rev 5 | 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
+FIELD struct hostent {
29
    char *h_name ;
30
    char **h_aliases ;
31
    int h_addrtype ;
32
    int h_length ;
33
    char **h_addr_list ;
34
} ;
35
 
36
+FUNC struct hostent *gethostent ( void ) ;
37
+FUNC struct hostent *gethostbyaddr ( const char *, int, int ) ;
38
+FUNC struct hostent *gethostbyname ( const char * ) ;
39
+FUNC int sethostent ( int ) ;
40
+FUNC int endhostent ( void ) ;
41
 
42
 
43
+FIELD struct netent {
44
    char *n_name ;
45
    char **n_aliases ;
46
    int n_addrtype ;
47
    unsigned long n_net ;
48
} ;
49
 
50
+FUNC struct netent *getnetent ( void ) ;
51
+FUNC struct netent *getnetbyaddr ( long, int ) ;
52
+FUNC struct netent *getnetbyname ( const char * ) ;
53
+FUNC int setnetent ( int ) ;
54
+FUNC int endnetent ( void ) ;
55
 
56
 
57
+FIELD struct protoent {
58
    char *p_name ;
59
    char **p_aliases ;
60
    int p_proto ;
61
} ;
62
 
63
+FUNC struct protoent *getprotoent ( void ) ;
64
+FUNC struct protoent *getprotobyname ( const char * ) ;
65
+FUNC struct protoent *getprotobynumber ( int ) ;
66
+FUNC int setprotoent ( int ) ;
67
+FUNC int endprotoent ( void ) ;
68
 
69
 
70
+FIELD struct servent {
71
    char *s_name ;
72
    char **s_aliases ;
73
    int s_port ;
74
    char *s_proto ;
75
} ;
76
 
77
+FUNC struct servent *getservent ( void ) ;
78
+FUNC struct servent *getservbyname ( const char *, const char * ) ;
79
+FUNC struct servent *getservbyport ( int, const char * ) ;
80
+FUNC int setservent ( int ) ;
81
+FUNC int endservent ( void ) ;
82
 
83
 
84
+FUNC int rcmd ( char **, unsigned short, const char *, const char *, const char *, int * ) ;
85
+FUNC int rresvport ( int * ) ;
86
+FUNC int ruserok ( const char *, int, const char *, const char * ) ;
87
+FUNC int rexec ( char **, unsigned short, const char *, const char *, const char *, int * ) ;