Skip to content
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

Add RawFD constructors as an alternative to fd #55028

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LilithHafner
Copy link
Member

@LilithHafner LilithHafner commented Jul 4, 2024

This provides an alternative to fd for getting the raw file descriptor of a File or IOStream. This is important because fd returns an Int which is a poor choice of return type in the presence of Base.RawFD. I copped most of the docstring and implementation from fd.

This allows folks to write RawFD(::File) instead of RawFD(fd(::File)::Int), and eventually may enable us to deprecate fd.

See also: #51710

@ViralBShah ViralBShah added the domain:docs This change adds or pertains to documentation label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants