git-posix_openpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 2 Oct 2021 12:47:40 +0000 (13:47 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 2 Oct 2021 12:47:40 +0000 (13:47 +0100)
commitc45bf5bd200e4fbb866b5113244e60eedf2003c5
treec0c0f7f9f3828952705320a31414500492056473
parent8343e8888451171a2ff81a86ed2142b751119010
git-posix_openpt

https://sourceware.org/ml/libc-alpha/2019-12/msg00799.html

Committed for 2.33

Author: Samuel Thibault <samuel.thibault@ens-lyon.org>

    Rearrange bsd_getpt vs bsd_openpt and implement posix_openpt on BSD

    * sysdeps/unix/bsd/getpt.c (__getpt): Add oflag parameter, pass
    it to the _open call and rename to...
    (__bsd_openpt): ... new function.
    [!HAVE_GETPT] (__getpt): Reimplement on top of __bsd_openpt.
    (__posix_openpt): Replace stub with implementation on top of __bsd_openpt.
    (posix_openpt): Remove stub warning.

    * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Replace prototype with
    __bsd_openpt prototype.
    (__getpt): Use __bsd_openpt instead of __bsd_getpt (as fallback when
    _posix_openpt fails).
    (getpt): Add alias
    (__getpt): Do not define.
    (HAVE_GETPT): Define.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-posix_openpt.diff
sysdeps/unix/bsd/getpt.c
sysdeps/unix/sysv/linux/getpt.c