Skip to content

Commit 4883a73

Browse files
committed
Add native-descriptor description
1 parent 77518c1 commit 4883a73

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

doc/Type/IO/Handle.pod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ Will flush the filehandle to disk.
168168
169169
$fh.flush;
170170
171+
=head2 method native-descriptor
172+
173+
method native-descriptor()
174+
175+
This returns a value that the operating system would understand as a "file descriptor" and
176+
is suitable for passing to a native function that requires a file descriptor as an
177+
argument such as C<fcntl> or C<ioctl>.
178+
171179
=head1 Related roles and classes
172180
173181
See also the related role L<IO> and the related class L<IO::Path>.

doc/Type/IO/Socket.pod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,12 @@ Closes the socket.
5656
5757
Fails if the socket is not connected.
5858
59+
=head2 method native-descriptor
60+
61+
method native-descriptor()
62+
63+
This returns a value that the operating system would understand as a "socket descriptor" and
64+
is suitable for passing to a native function that requires a socket descriptor as an
65+
argument such as C<setsockopt>.
66+
5967
=end pod

0 commit comments

Comments
 (0)