Skip to content

future consideration for file descriptors once we have reference-types #34

@wanderer

Description

@wanderer

I think ideally we could represent file descriptors as an anyref once we have reference-types. For the preopened file descriptors we could designate an anyref table which would be exported to load the references into. fd_renumber could be deprecated and table.set/get could be used instead.

Using a table might also affect how preopened fd's are inherited by forking. Instead of forking there it might be nice to have a something that is tied more closely to wasm like module.instantiate -> modRef The parent processes then could populate the preopened file descriptors table before calling the entry point function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionA discussion that doesn't yet have a specific conclusion or actionable proposal.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions