28 #include <sys/types.h>
33 #define bzero(a,n) memset(a,0,n)
45 #include </usr/include/sys/errno.h>
46 #include <sys/types.h>
48 #include <sys/socket.h>
49 #include <netinet/in.h>
52 #include <arpa/inet.h>
78 #define MAX_NOFILE 4096
87 #define FD_SETSIZE MAX_NOFILE
92 #define MAXSELFD MAX_NOFILE
94 #define NFDBITS (sizeof(fd_mask) * NBBY)
97 #define howmany(x, y) (((x)+((y)-1))/(y))
100 #define bzero(a,n) memset(a,0,n)
101 #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
102 #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
103 #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
104 #define FD_ZERO(p) bzero((INTS1 *)(p), sizeof(*(p)))
128 #include <sys/types.h>
130 #include <sys/socket.h>
131 #include <netinet/in.h>
134 #include <arpa/inet.h>
141 #include <sys/types.h>
145 #include <netinet/in.h>
147 #include <arpa/inet.h>
155 #include <sys/types.h>
160 #include <sys/socket.h>
162 #include <netinet/in.h>
164 #include <arpa/inet.h>
172 #include <sys/types.h>
177 #include <sys/socket.h>
179 #include <netinet/in.h>
181 #include <arpa/inet.h>
189 #include <sys/types.h>
191 #include <sys/socket.h>
193 #include <netinet/in.h>
195 #include <arpa/inet.h>
198 #define _POSIX_SOURCE
210 #define MAX_NOFILE 4096
219 #define FD_SETSIZE MAX_NOFILE
224 #define MAXSELFD MAX_NOFILE
225 typedef INTS4 fd_mask;
226 #define NFDBITS (sizeof(fd_mask) * NBBY)
229 #define howmany(x, y) (((x)+((y)-1))/(y))
247 #include <sys/types.h>
250 #include <sys/socket.h>
252 #include <netinet/in.h>
254 #include <arpa/inet.h>
257 #define _POSIX_SOURCE
269 #define MAX_NOFILE 4096
278 #define FD_SETSIZE MAX_NOFILE
283 #define MAXSELFD MAX_NOFILE
285 #define NFDBITS (sizeof(fd_mask) * NBBY)
288 #define howmany(x, y) (((x)+((y)-1))/(y))
296 #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
297 #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
298 #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
314 #define PORTSERV_DATA "portserv.dat;1"
316 #define PORTSERV_DATA "portserv.dat"
320 #define PORTSERVER_PORT 1000
321 #define PORTSERVER_M_DEF "VSBP"
322 #define PORTSERVER_S_DEF "DSAG"
347 #include <ucx$inetdef.h>
350 #define $DSC_FXDLEN(name,string) name.dsc$w_length = strlen(string); \
351 strcpy(name.dsc$a_pointer,string);
357 #define f_stc_nosig( ps_server ) (ps_server)->i_signals = 100;
363 #define STC__FAILURE 0
364 #define STC__SUCCESS 1
365 #define STC__INVSOCK 2
366 #define STC__INVBUF 3
367 #define STC__NGBUFSIZE 4
368 #define STC__INVTIME 5
369 #define STC__TIMEOUT 6
370 #define STC__NOTSOCK 7
371 #define STC__INVADDR 8
372 #define STC__INVADDRF 9
373 #define STC__SOCKNSUP 10
374 #define STC__INVPROTO 11
375 #define STC__SOCKTABF 12
376 #define STC__SOCKSPAF 13
377 #define STC__SOCKISC 14
378 #define STC__CONNTOUT 15
379 #define STC__NETUNREA 16
380 #define STC__PORTINUS 17
381 #define STC__SOCKISP 18
382 #define TPS__ECPORTS 19
383 #define TPS__EREGSERV 20
384 #define TPS__EWTOPORTS 21
385 #define TPS__ERMFRPORTS 22
386 #define TPS__EGSERVICE 23
387 #define STC__BROPIPE 24
388 #define STC__NODATA 25
389 #define STC__ECONNREF 26
390 #define STC__EINTR 27
391 #define STC__ECONNRES 28
393 #define TCPCOMM_INCLUDE 1
INTS4 f_stc_disperror(INTS4 i_error, CHARS *c_dest, INTS4 i_out)
struct hostent hostentstruct
INTS4 f_stc_close(struct s_tcpcomm *ps_tcp)
INTS4 f_stc_write(void *p_buffer, INTS4 i_buflen, INTS4 i_channel)
struct hostent * hostentptr
INTS4 f_stc_createserver(INTS4 *pl_port, struct s_tcpcomm *ps_server)
INTS4 f_stc_connectserver(CHARS *c_node, INTS4 l_port, INTS4 *pi_channel, struct s_tcpcomm *ps_client)
INTS4 f_stc_listenserver(struct s_tcpcomm *ps_server)
void f_stc_swap4(INTS4 *)
struct sockaddr_in sock sock_name
INTS4 f_stc_discclient(INTS4 i_channel)
INTS4 f_stc_read(void *p_buffer, INTS4 i_buflen, INTS4 i_channel, INTS4 i_timeout)
INTS4 f_stc_acceptclient(struct s_tcpcomm *ps_server, INTS4 *pi_channel)