aboutsummaryrefslogtreecommitdiff
path: root/resolv/netdb.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-04-04 22:01:52 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-04 22:01:52 -0700
commit2cd9670885d32eed6f4de12ddbeb2a9d049f198e (patch)
treefba29d27d96d1f17fb67070ce0f53735f80ba5ca /resolv/netdb.h
parent7ebaec64a0171a54dbe9aedd95497b130458060e (diff)
downloadglibc-2cd9670885d32eed6f4de12ddbeb2a9d049f198e.tar
glibc-2cd9670885d32eed6f4de12ddbeb2a9d049f198e.tar.gz
glibc-2cd9670885d32eed6f4de12ddbeb2a9d049f198e.tar.bz2
glibc-2cd9670885d32eed6f4de12ddbeb2a9d049f198e.zip
Declare iruserok and iruserok_af.
Diffstat (limited to 'resolv/netdb.h')
-rw-r--r--resolv/netdb.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index 7671c6aca5..e60dc4405b 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -518,6 +518,30 @@ extern int ruserok_af (__const char *__rhost, int __suser,
__const char *__remuser, __const char *__locuser,
sa_family_t __af);
+/* Check whether user REMUSER on system indicated by IPv4 address
+ RADDR is allowed to login as LOCUSER. Non-IPv4 (e.g., IPv6) are
+ not supported. If SUSER is not zero the user tries to become
+ superuser. Return 0 if it is possible.
+
+ This function is not part of POSIX and therefore no official
+ cancellation point. But due to similarity with an POSIX interface
+ or due to the implementation it is a cancellation point and
+ therefore not marked with __THROW. */
+extern int iruserok (uint32_t __raddr, int __suser,
+ __const char *__remuser, __const char *__locuser);
+
+/* This is the equivalent function where the pfamiliy if the address
+ pointed to by RADDR is determined by the value of AF. It therefore
+ can be used for IPv6
+
+ This function is not part of POSIX and therefore no official
+ cancellation point. But due to similarity with an POSIX interface
+ or due to the implementation it is a cancellation point and
+ therefore not marked with __THROW. */
+extern int iruserok_af (__const void *__raddr, int __suser,
+ __const char *__remuser, __const char *__locuser,
+ sa_family_t __af);
+
/* Try to allocate reserved port, returning a descriptor for a socket opened
at this port or -1 if unsuccessful. The search for an available port
will start at ALPORT and continues with lower numbers.