Skip to content

missing termios constants #51944

Closed
Closed

Description

@conorh
mannequin
BPO 7695
Nosy @vstinner, @tiran
Files
  • patch_termios_consts_issue7695.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2010-01-13.20:02:29.631>
    labels = ['type-feature', 'library']
    title = 'missing termios constants'
    updated_at = <Date 2014-12-31.16:20:36.861>
    user = 'https://bugs.python.org/conorh'

    bugs.python.org fields:

    activity = <Date 2014-12-31.16:20:36.861>
    actor = 'akuchling'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2010-01-13.20:02:29.631>
    creator = 'conorh'
    dependencies = []
    files = ['20015']
    hgrepos = []
    issue_num = 7695
    keywords = ['patch']
    message_count = 5.0
    messages = ['97736', '97749', '123803', '174714', '174727']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'christian.heimes', 'conorh', 'Rodolpho.Eckhardt']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue7695'
    versions = ['Python 3.4']

    Linked PRs

    Activity

    1. conorh commented on Jan 13, 2010

      conorhmannequin
      MannequinAuthor

      Module termios is missing some constants useful for handling control characters under Mac OS X (and Solaris, and probably BSD but I don't have a pure BSD system to test against).

      In particular, these systems support a control character "DSUSP" (which is similar to SUSP), but there is no provided symbol for the index into the cc array to use. The correct value for the proposed termios.VDSUSP would be 11 on MacOS and Solaris. I'm no Linux wizard but I don't believe it has this control character.

      In addition, MacOS supports a control character STATUS, and the correct value for the proposed termios.VSTATUS would be 18.

      Likewise, _POSIX_VDISABLE (or some similar identifier) is missing from the module. I believe the correct value on Solaris would be '\x00', MacOS '\xff', Linux '\x00'.

    2. added
      type-bugAn unexpected behavior, bug, or error
      stdlibStandard Library Python modules in the Lib/ directory
      on Jan 13, 2010
    3. conorh commented on Jan 14, 2010

      conorhmannequin
      MannequinAuthor

      As these aren't POSIX, changing to feature request.

    4. added
      type-featureA feature request or enhancement
      and removed
      type-bugAn unexpected behavior, bug, or error
      on Jan 14, 2010
    5. RodolphoEckhardt commented on Dec 11, 2010

      RodolphoEckhardtmannequin
      Mannequin

      Because these constants might not exist on all platforms, the patch uses ifdef's around them.

    6. akuchling commented on Nov 3, 2012

      @akuchling
      Contributor

      Patch seems clearly correct; compiles & works on MacOS. We could just apply this.

    7. tiran commented on Nov 4, 2012

      @tiran
      Member

      The patch looks good to me but it's missing doc updates.

    8. transferred this issue fromon Apr 10, 2022
    9. added 2 commits that reference this issue on Dec 7, 2023
    10. ronaldoussoren commented on Dec 7, 2023

      @ronaldoussoren
      Contributor

      #112823 adds all missing public symbols, but does not add _POSIX_VDISABLE because that's a private name.

    11. added 2 commits that reference this issue on Dec 12, 2023
    12. added 2 commits that reference this issue on Feb 11, 2024
    13. added 2 commits that reference this issue on Sep 2, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      OS-macstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions