diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-02 15:23:08 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-05-03 07:37:07 +0200 |
commit | fbea52f74a80268446f45936a0cf40400aba8565 (patch) | |
tree | 5f77314c19f34a05683d9ee8f76ab250e4e8da6f /lib/util/util.h | |
parent | 85fa87ea82a1dcbd4d0145e417d615ffca116751 (diff) | |
download | samba-fbea52f74a80268446f45936a0cf40400aba8565.tar.gz samba-fbea52f74a80268446f45936a0cf40400aba8565.tar.bz2 samba-fbea52f74a80268446f45936a0cf40400aba8565.zip |
lib/util Move more network utility functions from source3 into lib/util
This will help with the merge of the interfaces layer.
Andrew Bartlett
Diffstat (limited to 'lib/util/util.h')
-rw-r--r-- | lib/util/util.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/util/util.h b/lib/util/util.h index 8dffece0da..5ed8427498 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -131,8 +131,20 @@ _PUBLIC_ pid_t sys_fork(void); **/ _PUBLIC_ pid_t sys_getpid(void); -/* The following definitions come from lib/util/genrand.c */ +_PUBLIC_ int sys_getpeereid( int s, uid_t *uid); + +struct sockaddr; +_PUBLIC_ int sys_getnameinfo(const struct sockaddr *psa, + int salen, + char *host, + size_t hostlen, + char *service, + size_t servlen, + int flags); +_PUBLIC_ int sys_connect(int fd, const struct sockaddr * addr); + +/* The following definitions come from lib/util/genrand.c */ /** Copy any user given reseed data. **/ |