summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 3204b626a..2346a5ea5 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.3 2001/02/22 21:59:44 markus Exp $ */ 1/* $OpenBSD: misc.h,v 1.4 2001/04/12 20:09:36 stevesk Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -22,6 +22,13 @@ void set_nonblock(int fd);
22 22
23struct passwd * pwcopy(struct passwd *pw); 23struct passwd * pwcopy(struct passwd *pw);
24 24
25/*
26 * Convert ASCII string to TCP/IP port number.
27 * Port must be >0 and <=65535.
28 * Return 0 if invalid.
29 */
30int a2port(const char *s);
31
25/* wrapper for signal interface */ 32/* wrapper for signal interface */
26typedef void (*mysig_t)(int); 33typedef void (*mysig_t)(int);
27mysig_t mysignal(int sig, mysig_t act); 34mysig_t mysignal(int sig, mysig_t act);