Oh, like how about you try compiling a kernel after your proposed diff?

in userland -
   size_t comes from sys/types.h
   or a header file which pulls in sys/types.h, and there should be
   no further new iteration added

in kernel -
    size_t comes from either sys/param.h or sys/types.h, depending
    on which one a file includes

What you are suggesting is completely crazy.  It's akin to "all
header files should include all other dependent header files, and
hey maybe one day we can have a #include_all directive, eh?

Absolutely no way.

Rafael Sadowski <[email protected]> wrote:

> device.h misses a definition of size_t
> 
> /usr/include/sys/device.h:128:2: error: unknown type name 'size_t'
> 
> Index: device.h
> ===================================================================
> RCS file: /cvs/src/sys/sys/device.h,v
> retrieving revision 1.55
> diff -u -p -r1.55 device.h
> --- device.h  10 Sep 2018 16:18:34 -0000      1.55
> +++ device.h  28 Sep 2021 05:04:57 -0000
> @@ -44,6 +44,8 @@
>  #ifndef _SYS_DEVICE_H_
>  #define      _SYS_DEVICE_H_
>  
> +#include <stddef.h>
> +
>  #include <sys/queue.h>
>  
>  /*
> 

Reply via email to