Skip to content

Make it clear how to write platform-dependent stubs #2275

@ymyzk

Description

@ymyzk

Background

  • These are some platform-dependent stubs
    O_DSYNC: int # Unix only
    O_RSYNC: int # Unix only
    O_SYNC: int # Unix only
    O_NDELAY: int # Unix only
    O_NONBLOCK: int # Unix only
    O_NOCTTY: int # Unix only
    O_SHLOCK: int # Unix only
    O_EXLOCK: int # Unix only
    O_BINARY: int # Windows only
    O_NOINHERIT: int # Windows only
    O_SHORT_LIVED: int # Windows only
    O_TEMPORARY: int # Windows only
    O_RANDOM: int # Windows only
    O_SEQUENTIAL: int # Windows only
    O_TEXT: int # Windows only
  • Two different styles are used to write these stubs, and this difference is confusing for contributors

Proposal

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions