File: misc.h

package info (click to toggle)
nfs-utils 1%3A1.0.10-6
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,228 kB
  • ctags: 2,554
  • sloc: ansic: 24,689; sh: 9,398; makefile: 667
file content (27 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (6)
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
/*
 * misc.h	All that didn't fit elsewhere.
 *
 * Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de>
 */

#ifndef MISC_H
#define MISC_H

/*
 * Generate random key, returning the length of the result. Currently,
 * weakrandomkey generates a maximum of 20 bytes are generated, but this
 * may change with future implementations.
 */
int	randomkey(unsigned char *keyout, int len);
int	weakrandomkey(unsigned char *keyout, int len);

int	matchhostname(const char *h1, const char *h2); 

struct hostent;
struct hostent	*hostent_dup(struct hostent *hp);
struct hostent	*get_hostent (const char *addr, int len, int type);
struct hostent *get_reliable_hostbyaddr(const char *addr, int len, int type);

extern int is_mountpoint(char *path);

#endif /* MISC_H */