git: <stdio.h>: Clean up the POSIX namespace better.

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Aug 13 18:27:47 PDT 2021


commit 6f932f6f1c74e5bf4d7bafc160c0353f8db4fa53
Author: Sascha Wildner <saw at online.de>
Date:   Sat Aug 14 02:51:31 2021 +0200

    <stdio.h>: Clean up the POSIX namespace better.
    
    * Include just <machine/stdint.h> for POSIX, but leave <sys/types.h>
      otherwise for the traditional expectations of third party code.
    
    * POSIX did not require <stdio.h> to define off_t until Issue 7, even
      though ftello() and fseeko() were using it for a long time. This
      seems to be a "bug" in the specification, so adjust the visibility
      of off_t to match that of the functions. Actually use off_t for the
      ftello() and fseeko() prototypes.
    
    Tested with a full bulk build.

Summary of changes:
 include/stdio.h | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6f932f6f1c74e5bf4d7bafc160c0353f8db4fa53


-- 
DragonFly BSD source repository


More information about the Commits mailing list