git: <unistd.h>: Fix profil(2) prototype.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Oct 6 03:42:36 PDT 2019


commit c0da416664b722f6d1d1108213e799ad669e1fc2
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Oct 6 10:27:18 2019 +0300

    <unistd.h>: Fix profil(2) prototype.
    
     First off the vm_offset_t is somewhat bogus in this context, same could
     be said about size_t variant in sys/sysproto.h.  Just use plain u_long
     type like it is already used in "struct uprof" and fix forth argument
     to take u_int.  In public headers prefer to use generic types.

Summary of changes:
 include/unistd.h         | 2 +-
 lib/libc/sys/profil.2    | 5 ++---
 sys/kern/syscalls.master | 2 +-
 sys/sys/sysproto.h       | 2 +-
 4 files changed, 5 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c0da416664b722f6d1d1108213e799ad669e1fc2


-- 
DragonFly BSD source repository



More information about the Commits mailing list