2 * misc.h All that didn't fit elsewhere.
4 * Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de>
11 * Generate random key, returning the length of the result. Currently,
12 * weakrandomkey generates a maximum of 20 bytes are generated, but this
13 * may change with future implementations.
15 int randomkey(unsigned char *keyout, int len);
16 int weakrandomkey(unsigned char *keyout, int len);
18 int matchhostname(const char *h1, const char *h2);
21 struct hostent *hostent_dup(struct hostent *hp);
22 struct hostent *get_hostent (const char *addr, int len, int type);
23 struct hostent *get_reliable_hostbyaddr(const char *addr, int len, int type);
25 extern int is_mountpoint(char *path);