1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
$NetBSD: patch-ac,v 1.6 2014/04/21 18:16:13 joerg Exp $
- don't use "restrict" as an identifier, it's a keyword now
- ...? (XXX)
--- src/externs.h.orig 2000-03-15 22:28:13.000000000 +0000
+++ src/externs.h
@@ -1,6 +1,8 @@
/* Copyright (c) 1989 by Carrick Sean Casey. All rights reserved. */
/* For copying and distribution information, see the file "copyright.h." */
+#include <sys/types.h> /* for time_t etc. */
+
/* external definitions for "icb" global variables */
/* defined in port.c */
@@ -25,6 +27,7 @@ extern char *mygroup; /* requested grou
extern char *myserver; /* server name */
extern char *myhost; /* server host */
extern int myport; /* server port */
+extern char *mylhost; /* local address */
extern char *mbuf; /* message buffer */
extern char *mbuf2; /* message buffer */
extern int connected; /* whether we are validated or not */
@@ -69,7 +72,7 @@ void clearargs (int argc, char **argv);
int clientserve (void);
void closesessionlog (void);
void cmdoutmsg (char *pkt);
-int connecttoport (char *host_name, int port_number);
+int connecttoport (char *host_name, int port_number, char *lhost_name);
void copenmsg (char *pkt);
void cpersonalmsg (char *pkt);
void csendopen (char *txt);
@@ -79,14 +82,14 @@ void echo (void);
void errormsg (char *pkt);
void exitmsg (void);
char *findspace (char *s);
-char *getline (char *prompt, int expand);
+char *i2cb_getline (char *prompt, int expand);
char *getloginid (void);
char *getswitch (int argc, char **argv, char **switchv);
void getterm (void);
void gettime (void);
void getwinsize (void);
char *getword (char *s);
-void handletab (int count, char c);
+int handletab (int count, char c);
void histclear (void);
int histcount (void);
void histdel (char *name);
@@ -115,7 +118,7 @@ void quoteify (char *a, char *b);
void readlineinit (void);
void regnick (char *password);
void restoreterm (void);
-void restrict (void);
+void setrestricted (void);
int s_admin (TARGLIST);
int s_beep (TARGLIST);
int s_bump (TARGLIST);
|