git-posix_openpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 17 Mar 2022 21:37:00 +0000 (21:37 +0000)
committerAurelien Jarno <aurel32@debian.org>
Thu, 17 Mar 2022 21:37:00 +0000 (21:37 +0000)
commitfa36c9838a6e2566b5e751d5fb9906dc1d54cb67
tree9fef07e32c215408b648086b337da78e5dfa8c13
parentf8535b92215271d358c8a4d46d23edb7fe429b01
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