git-posix_openpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 5 Jan 2021 05:47:42 +0000 (05:47 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 Jan 2021 05:47:42 +0000 (05:47 +0000)
commit9722c2416fbef1f0058c5eb3ee0db2b509a65c58
tree351fd2b5f6f3e492653d843ab62f2d6addde1274
parent24bcbd1436f65d480728b4c81c59f488c8020503
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