git: <sys/uio.h>: Extract kernel structures to a separate header.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Oct 24 04:59:30 PDT 2019


commit c58037577b149162274f6e5a4b2ee11b75feb139
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Thu Oct 17 18:02:47 2019 +0300

    <sys/uio.h>: Extract kernel structures to a separate header.
    
     The only userspace user of these bits is kdump(1) that already properly
     defines _KERNEL_STRUCTURES before including system headers.
     * Put ui_rw and ui_seg enums under _KERNEL_STRUCTURES.
     * Adjust <sys/ktrace.h> for 'struct ktr_genio' visibility too.
    
     Handling KTR_GENIO requires special knowledge (hidden members) and
     kdump(1) is also a single userspace case using it. This does not affect
     utilities like ktrace(1) and allows for further cleanups.

Summary of changes:
 lib/libc/sys/ktrace.2        |  7 +++---
 lib/libc/sys/utrace.2        |  4 +---
 sys/sys/{_iovec.h => _uio.h} | 54 +++++++++++++++++++++++++++++++++-----------
 sys/sys/ktrace.h             |  7 +++---
 sys/sys/uio.h                | 31 +------------------------
 5 files changed, 49 insertions(+), 54 deletions(-)
 copy sys/sys/{_iovec.h => _uio.h} (61%)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list