git: <stdio.h>: Fix issues introduced with the fopencookie() changes.

Sascha Wildner swildner at
Thu Feb 9 06:55:27 PST 2023

commit a431bfe52a2aad0a18cf535124e1b488f6d7ce06
Author: Sascha Wildner <saw at>
Date:   Thu Feb 9 15:53:29 2023 +0100

    <stdio.h>: Fix issues introduced with the fopencookie() changes.
    a765cedf26cef470ba7deee42c365f0221690a1a added fopencookie() and
    associated types from FreeBSD but it introduced a number of issues:
    * Wrong parentheses caused it to try to (re-)typedef the ssize_t type.
      Fixed by removing parentheses and using __ssize_t. This fixes
      graphics/png as pointed out by David Shao. ssize_t isn't available
      in the compilation environment that graphics/png uses.
    * Use off_t which is 64 bits in DragonFly. No need for off64_t.
    * Put everything under __BSD_VISIBLE because it is not standard.
    * While here, bump the manpage's date properly.
    Reported-by:   David Shao
    Dragonfly-bug: <>

Summary of changes:
 include/stdio.h              | 15 +++++----------
 lib/libc/stdio/fopencookie.3 |  4 ++--
 2 files changed, 7 insertions(+), 12 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list