[PATCH 15/23] linux: Add statmount and listmount

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Tue Nov 3 17:05:20 GMT 2026



On 03/11/26 12:29, Andreas Schwab wrote:
> On Nov 03 2026, Adhemerval Zanella wrote:
> 
>> diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
>> index d2fa28a69f4..7ec15e4b485 100644
>> --- a/sysdeps/unix/sysv/linux/sys/mount.h
>> +++ b/sysdeps/unix/sysv/linux/sys/mount.h
>> @@ -22,6 +22,7 @@
>>  #define _SYS_MOUNT_H	1
>>  
>>  #include <features.h>
>> +#include <bits/types.h>
> 
> Why not <sys/types.h>?
> 

The <bits/types.h> plus __ssize_t_defined pattern is what <unistd.h>,
<stdio.h>, <sys/msg.h>, and <monetary.h> already use for ssize_t.

The <sys/types.h> would work, but the header only needs ssize_t and
<sys/mount.h> did not include <sys/types.h> before. Including it would
make every existing user see about 70 new names (dev_t, pid_t, etc.)
and pull in 24 more headers.


More information about the Libc-alpha mailing list