git: <stdint.h>: Move out ptrdiff_t type.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Nov 14 05:37:54 PST 2019


commit 125cd2f035cd8575998c9daf79f1f7a17ea7aab8
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Nov 10 17:03:35 2019 +0200

    <stdint.h>: Move out ptrdiff_t type.
    
     The ISO C does not specify that <stdint.h> should provide this type,
     this type should be declared in <stddef.h> for use by userland.
    
     Since we do not want to create a separate header for this useful type
     to be used by kernel, move it to <sys/types.h> under _KERNEL visibility.
    
     Adjust few places to include <stddef.h> with a minor whitespace cleanup.

Summary of changes:
 include/stdint.h          |  5 -----
 lib/libevtr/evtr.c        | 13 +++++++------
 lib/libstand/printf.c     |  1 +
 sys/sys/types.h           |  5 +++++
 usr.bin/ktrdump/ktrdump.c | 11 ++++++-----
 5 files changed, 19 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/125cd2f035cd8575998c9daf79f1f7a17ea7aab8


-- 
DragonFly BSD source repository



More information about the Commits mailing list