[LTP] [PATCH v12 2/3] lib: New library function tst_get_free_uid

Andrea Cervesato andrea.cervesato@suse.com
Fri Aug 28 09:57:44 CEST 2026


Hi Wei,

> > +/**
> > + * tst_get_free_gid() - Find a GID not assigned to any group.
> > + * @skip: GID value to skip (pass 0 to skip none).
> > + *
> > + * Scans the group database for the first unused GID starting from 1,
> > + * skipping @skip. The @skip argument can be used to ignore e.g. the main
> > + * group of a specific user in case it's not listed in the group file.
> > + * Calls tst_brk(TBROK) if no free GID is found or a lookup error occurs.
> > + *
> > + * Return: An unused gid_t value.
> > + */
> 
> This documentation is out of scope and should be sent from an another
> patch-set.

this is still valid. Can you please remove it from the patch, or
append a new patch just for this documentation? So we can split
the current implementation from the documentation part.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list