mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
1999-08-25 Ulrich Drepper <drepper@cygnus.com> * inet/Makefile (routines): Add getipnodebynm. * inet/getipnodebynm.c: New file. * nss/digits_dots.c: If HAVE_TYPE is define type contains the interface type. * nss/nss_files/files-XXX.c: Define EXTRA_ARGS, EXTRA_ARGS_DECL, and EXTRA_ARGS_VALUE is not already done. (internal_getent): Allow extra parameters and pass them to parse_line. (_nss_files_get,ENTNAME_r): Pass extra parameters to internal_getent. (_nss_files_get##name##_r): Likewise. * nss/nss_files/files-hosts.c: Define EXTRA_ARGS, EXTRA_ARGS_DECL, and EXTRA_ARGS_VALUE to pass flags and type to parser. Add getipnodebyname function. * nss/nss_files/files-parse.c: Define EXTRA_ARGS, EXTRA_ARGS_DECL, and EXTRA_ARGS_VALUE is not already done. (parse_line): Add EXTRA_ARGS_DECL to parameter list. * nss/nss_db/db-XXX.c (lookup): Allow extra parameters and pass them to parse_line. (_nss_db_get##name##_r): Pass extra parameters to lookup. (_nss_db_get,ENTNAME_r): Likewise. * sysdeps/generic/if_index.c (__protocol_available): New function. * sysdeps/unix/sysv/linux/if_index.c: Likewise.
This commit is contained in:
@@ -31,11 +31,12 @@
|
||||
host_addr_list_t *h_addr_ptrs;
|
||||
size_t size_needed;
|
||||
int addr_size;
|
||||
#ifndef HAVE_AF
|
||||
int af = -1;
|
||||
#endif
|
||||
#ifdef HAVE_TYPE
|
||||
int af = type;
|
||||
#else
|
||||
# ifndef HAVE_AF
|
||||
int af = -1;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
switch (af)
|
||||
@@ -153,7 +154,7 @@
|
||||
/* That's bad. The user hasn't specified that she
|
||||
allows IPv4 numeric addresses. */
|
||||
result = NULL;
|
||||
*herrno_p = HOST_NOT_FOUND;
|
||||
*h_errnop = HOST_NOT_FOUND;
|
||||
goto done;
|
||||
}
|
||||
else
|
||||
@@ -206,11 +207,12 @@
|
||||
host_addr_list_t *h_addr_ptrs;
|
||||
size_t size_needed;
|
||||
int addr_size;
|
||||
#ifndef HAVE_AF
|
||||
int af = -1;
|
||||
#endif
|
||||
#ifdef HAVE_TYPE
|
||||
int af = type;
|
||||
#else
|
||||
# ifndef HAVE_AF
|
||||
int af = -1;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
switch (af)
|
||||
|
Reference in New Issue
Block a user