Skip to content

Commit d70bab4

Browse files
committed
perlfunc/perlport - warn of perl-platform quirks (gethostbyname example)
1 parent 466e944 commit d70bab4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

pod/perlfunc.pod

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3398,9 +3398,12 @@ X<endnetent> X<endprotoent> X<endservent>
33983398

33993399
=for Pod::Functions be done using services file
34003400

3401-
These routines are the same as their counterparts in the
3402-
system C library. In list context, the return values from the
3403-
various get routines are as follows:
3401+
These routines are the same as their counterparts in the system
3402+
C library. (This means that platform-specific quirks may be
3403+
encountered, please refer to L<perlport> for examples.)
3404+
3405+
In list context, the return values from the various get routines
3406+
are as follows:
34043407

34053408
# 0 1 2 3 4
34063409
my ( $name, $passwd, $gid, $members ) = getgr*

pod/perlport.pod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,12 @@ Not implemented.
17821782
C<gethostbyname('localhost')> does not work everywhere: you may have
17831783
to use C<gethostbyname('127.0.0.1')>.
17841784

1785+
(S<Win32>)
1786+
If the C<NAME> argument is an empty string (C<"">) or something that
1787+
coerces to it (such as C<undef>), the F<winsock.f> implementation treats
1788+
this as a C<gethostname> call and will return the standard hostname for
1789+
the local computer.
1790+
17851791
=item gethostent
17861792

17871793
(Win32)

0 commit comments

Comments
 (0)