Skip to content

perlfunc - warn of platform specific quirks in gethost* and co. #23472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pod/perlfunc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -3398,9 +3398,12 @@ X<endnetent> X<endprotoent> X<endservent>

=for Pod::Functions be done using services file

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

In list context, the return values from the various get routines
are as follows:

# 0 1 2 3 4
my ( $name, $passwd, $gid, $members ) = getgr*
Expand Down
6 changes: 6 additions & 0 deletions pod/perlport.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,12 @@ Not implemented.
C<gethostbyname('localhost')> does not work everywhere: you may have
to use C<gethostbyname('127.0.0.1')>.

(S<Win32>)
If the C<NAME> argument is an empty string (C<"">) or something that
coerces to it (such as C<undef>), the F<winsock.f> implementation treats
this as a C<gethostname> call and will return the standard hostname for
the local computer.

=item gethostent

(Win32)
Expand Down
Loading