proposed libc interface and man page for statmount(2)

Miklos Szeredi miklos@szeredi.hu
Fri Nov 17 14:22:37 GMT 2023


On Thu, 16 Nov 2023 at 22:01, Miklos Szeredi <miklos@szeredi.hu> wrote:

> But I don't think the allocating one needs a size hint.   Your
> suggestion of passing a buffer on the stack to the syscall and then
> copying to an exact sized malloc should take care of it.   If the
> stack buffer is sized generously, then the loop will never need to
> repeat for any real life case.

       int statmount(uint64_t mnt_id, uint64_t request_mask,
                   struct statmount *buf, size_t bufsize, unsigned int flags);

       struct statmount *statmount_alloc(uint64_t mnt_id,
                   uint64_t request_mask, unsigned int flags);

Updated man page attached.

Thanks,
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: statmount.2
Type: application/x-troff-man
Size: 6622 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20231117/33fbb9a4/attachment.2>


More information about the Libc-alpha mailing list