summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-18 06:46:32 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-18 06:46:32 +0000
commit2d29aba941a4b4ba789f2e0f591ebe85d3ea300a (patch)
tree70b3d3c9343fd025e82b95bce29907798b536070 /resolv
parent0482576eec37874110782f0bae6dd0e1b4a357c6 (diff)
downloadglibc-2d29aba941a4b4ba789f2e0f591ebe85d3ea300a.tar.gz
Update.
2000-01-17 Ulrich Drepper <drepper@cygnus.com> * inet/rcmd.c: Implement rcmd_af, rresvport_af, ruserok_af, and iruserok_af. * inet/rexec.c: Implement rexec_af. Patch by Hideaki YOSHIFUJI <yoshfuji@ecei.tohoku.ac.jp>. * resolv/netdb.h: Add declarations of rcmd_af, rexec_af, ruserok_af, and rresvport_af.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/netdb.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index 45a80dc3ea..716753c3cd 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it
@@ -368,6 +368,14 @@ extern int rcmd (char **__restrict __ahost, unsigned short int __rport,
__const char *__restrict __cmd, int *__restrict __fd2p)
__THROW;
+/* This is the equivalent function where the protocol can be selected
+ and which therefore can be used for IPv6. */
+extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport,
+ __const char *__restrict __locuser,
+ __const char *__restrict __remuser,
+ __const char *__restrict __cmd, int *__restrict __fd2p,
+ sa_family_t __af) __THROW;
+
/* Call `rexecd' at port RPORT on remote machine *AHOST to execute
CMD. The process runs at the remote machine using the ID of user
NAME whose cleartext password is PASSWD. In *FD2P the descriptor
@@ -379,15 +387,33 @@ extern int rexec (char **__restrict __ahost, int __rport,
__const char *__restrict __cmd, int *__restrict __fd2p)
__THROW;
+/* This is the equivalent function where the protocol can be selected
+ and which therefore can be used for IPv6. */
+extern int rexec_af (char **__restrict __ahost, int __rport,
+ __const char *__restrict __name,
+ __const char *__restrict __pass,
+ __const char *__restrict __cmd, int *__restrict __fd2p,
+ sa_family_t __af) __THROW;
+
/* Check whether user REMUSER on system RHOST is allowed to login as LOCUSER.
If SUSER is not zero the user tries to become superuser. Return 0 if
it is possible. */
extern int ruserok (__const char *__rhost, int __suser,
__const char *__remuser, __const char *__locuser) __THROW;
+/* This is the equivalent function where the protocol can be selected
+ and which therefore can be used for IPv6. */
+extern int ruserok_af (__const char *__rhost, int __suser,
+ __const char *__remuser, __const char *__locuser,
+ sa_family_t __af) __THROW;
+
/* 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. */
+extern int rresvport_af (int *__alport, sa_family_t __af) __THROW;
+
+/* This is the equivalent function where the protocol can be selected
+ and which therefore can be used for IPv6. */
extern int rresvport (int *__alport) __THROW;
#endif