Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2005 20:25:21 +0900
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        soc-bushman <soc-bushman@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   Re: PERFORCE change 79976 for review
Message-ID:  <ygemzotshy6.wl%ume@mahoroba.org>
In-Reply-To: <200507111108.j6BB8ExJ013721@repoman.freebsd.org>
References:  <200507111108.j6BB8ExJ013721@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Mon, 11 Jul 2005 11:08:14 GMT
>>>>> soc-bushman <soc-bushman@FreeBSD.org> said:

soc-bushman> ==== //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/netdb_private.h#4 (text+ko) ====

soc-bushman> @@ -134,11 +134,11 @@
soc-bushman>  int getprotobyname_r(const char *, struct protoent *, struct protoent_data *);
soc-bushman>  int getprotobynumber_r(int, struct protoent *, struct protoent_data *);
soc-bushman>  int getprotoent_r(struct protoent *, struct protoent_data *);
soc-bushman> -int getservbyname_r(const char *, const char *, struct servent *,
soc-bushman> -	char *, size_t, struct servent **);
soc-bushman> -int getservbyport_r(int, const char *, struct servent *,
soc-bushman> -	char *, size_t, struct servent **);
soc-bushman> -int getservent_r(struct servent *, char *, size_t, struct servent **);
soc-bushman> +struct servent *getservbyname_r(const char *, const char *, struct servent *,
soc-bushman> +	char *, size_t);
soc-bushman> +struct servent *getservbyport_r(int, const char *, struct servent *,
soc-bushman> +	char *, size_t);
soc-bushman> +struct servent *getservent_r(struct servent *, char *, size_t);
soc-bushman>  void sethostent_r(int, struct hostent_data *);
soc-bushman>  void setnetent_r(int, struct netent_data *);
soc-bushman>  void setprotoent_r(int, struct protoent_data *);

Why did you need to change the return value of *_r() functions from
int to struct servent *.  Though *_r() are not exposed yet, these
should be int for consistensy with other platforms.  So, please don't
change them.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygemzotshy6.wl%ume>