diff options
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 | ||
23 | struct passwd * pwcopy(struct passwd *pw); | 23 | struct 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 | */ | ||
30 | int a2port(const char *s); | ||
31 | |||
25 | /* wrapper for signal interface */ | 32 | /* wrapper for signal interface */ |
26 | typedef void (*mysig_t)(int); | 33 | typedef void (*mysig_t)(int); |
27 | mysig_t mysignal(int sig, mysig_t act); | 34 | mysig_t mysignal(int sig, mysig_t act); |