mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
* resolv/netdb.h: Adjust parameters of gethostbyaddr and gethostbyaddr_r. * inet/gethstbyad.c: Correct type of len parameter. * inet/gethstbyad_r.c: Likewise.
This commit is contained in:
parent
6bd7b31b9c
commit
5da9f08469
@ -1,5 +1,10 @@
|
|||||||
1999-07-17 Ulrich Drepper <drepper@cygnus.com>
|
1999-07-17 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* resolv/netdb.h: Adjust parameters of gethostbyaddr and
|
||||||
|
gethostbyaddr_r.
|
||||||
|
* inet/gethstbyad.c: Correct type of len parameter.
|
||||||
|
* inet/gethstbyad_r.c: Likewise.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/arm/Versions: Undo last change.
|
* sysdeps/unix/sysv/linux/arm/Versions: Undo last change.
|
||||||
|
|
||||||
1999-07-17 Zack Weinberg <zack@rabi.columbia.edu>
|
1999-07-17 Zack Weinberg <zack@rabi.columbia.edu>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@ -23,7 +23,7 @@
|
|||||||
#define LOOKUP_TYPE struct hostent
|
#define LOOKUP_TYPE struct hostent
|
||||||
#define FUNCTION_NAME gethostbyaddr
|
#define FUNCTION_NAME gethostbyaddr
|
||||||
#define DATABASE_NAME hosts
|
#define DATABASE_NAME hosts
|
||||||
#define ADD_PARAMS const char *addr, int len, int type
|
#define ADD_PARAMS const char *addr, size_t len, int type
|
||||||
#define ADD_VARIABLES addr, len, type
|
#define ADD_VARIABLES addr, len, type
|
||||||
#define BUFLEN 1024
|
#define BUFLEN 1024
|
||||||
#define NEED_H_ERRNO 1
|
#define NEED_H_ERRNO 1
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@ -23,7 +23,7 @@
|
|||||||
#define LOOKUP_TYPE struct hostent
|
#define LOOKUP_TYPE struct hostent
|
||||||
#define FUNCTION_NAME gethostbyaddr
|
#define FUNCTION_NAME gethostbyaddr
|
||||||
#define DATABASE_NAME hosts
|
#define DATABASE_NAME hosts
|
||||||
#define ADD_PARAMS const char *addr, int len, int type
|
#define ADD_PARAMS const char *addr, size_t len, int type
|
||||||
#define ADD_VARIABLES addr, len, type
|
#define ADD_VARIABLES addr, len, type
|
||||||
#define NEED_H_ERRNO 1
|
#define NEED_H_ERRNO 1
|
||||||
#define NEED__RES 1
|
#define NEED__RES 1
|
||||||
|
@ -113,7 +113,7 @@ extern struct hostent *gethostent __P ((void));
|
|||||||
|
|
||||||
/* Return entry from host data base which address match ADDR with
|
/* Return entry from host data base which address match ADDR with
|
||||||
length LEN and type TYPE. */
|
length LEN and type TYPE. */
|
||||||
extern struct hostent *gethostbyaddr __P ((__const char *__addr, int __len,
|
extern struct hostent *gethostbyaddr __P ((__const char *__addr, size_t __len,
|
||||||
int __type));
|
int __type));
|
||||||
|
|
||||||
/* Return entry from host data base for host with NAME. */
|
/* Return entry from host data base for host with NAME. */
|
||||||
@ -135,7 +135,7 @@ extern int gethostent_r __P ((struct hostent *__restrict __result_buf,
|
|||||||
struct hostent **__restrict __result,
|
struct hostent **__restrict __result,
|
||||||
int *__restrict __h_errnop));
|
int *__restrict __h_errnop));
|
||||||
|
|
||||||
extern int gethostbyaddr_r __P ((__const char *__restrict __addr, int __len,
|
extern int gethostbyaddr_r __P ((__const char *__restrict __addr, size_t __len,
|
||||||
int __type,
|
int __type,
|
||||||
struct hostent *__restrict __result_buf,
|
struct hostent *__restrict __result_buf,
|
||||||
char *__restrict __buf, size_t __buflen,
|
char *__restrict __buf, size_t __buflen,
|
||||||
|
Loading…
Reference in New Issue
Block a user