Initial commit
[dsnet.git] / tools / dsnet / lib / net.c
blob9fe7ef7a4d79a3b91150cd9b46bcb9a58786488b
1 /tmp/g/tools/dsnet/lib/net.c:
2 static int getport_net (char *portp /* 0x8 */)
5 int f_rel;
6 int value;
7 int delta;
8 struct servent *sp;
11 static int getaddr_net (char *name /* 0x8 */, struct sockaddr_in *sin /* 0xc */)
14 int len;
15 long unsigned int temp;
16 struct hostent *hp;
17 char *portp;
18 char *hostp;
19 char hostname[64];
22 static int setup_net (int s /* 0x8 */)
25 int flag;
26 int hold;
27 struct protoent *protoent;
30 static DS_DESC *ds_open_dev (char *name /* 0x8 */, DS_RECV_FUNC *recv_func /* 0xc */)
33 int fd;
36 DS_DESC *ds_connect_net (char *targetp /* 0x8 */, DS_RECV_FUNC *recv_func /* 0xc */)
39 char name[1024];
40 int r;
41 int i;
42 int fd;
43 struct sockaddr_in sin;
44 struct stat stbuf;
47 DS_DESC *ds_listen_net (char *portp /* 0x8 */, int (*accept_func) (/* unknown */) /* 0xc */)
50 char name[1024];
51 int hold;
52 int fd;
53 struct sockaddr_in sin;
56 DS_DESC *ds_accept (int s /* 0x8 */, int (*accept_func) (/* unknown */) /* 0xc */)
59 char name[1024];
60 size_t len;
61 int fd;
62 struct sockaddr_in sin;
65 int (*ds_rdwr_mem_align_func) (/* unknown */);
66 int (*ds_load_mem_func) (/* unknown */);
67 int (*ds_store_mem_func) (/* unknown */);
68 int (*ds_load_quad_reg_func) (/* unknown */);
69 int (*ds_store_quad_reg_func) (/* unknown */);
70 int (*ds_symbol_to_value_func) (/* unknown */);
71 int (*ds_symbol_completion_func) (/* unknown */);
72 int (*ds_help_completion_func) (/* unknown */);
73 void (*ds_idle_func) (/* unknown */);
74 int (*ds_check_reserved_name_func) (/* unknown */);
75 void (*ds_drfp_err_func) (/* unknown */);
76 struct _GIF_OPT gif;
77 struct _GIF_OPT *pgif;
78 struct _SMEM_OPT smem;
79 struct _SMEM_OPT *psmem;
80 int m_result;
81 word m_sdram;
82 word m_init;