[systemd-devel] sd_get_uids gives a sorted list?
Kay Sievers
kay at vrfy.org
Thu Jul 26 06:34:02 PDT 2012
On Thu, Jul 26, 2012 at 2:16 PM, Stef Bon <stefbon at gmail.com> wrote:
> I'm implementing the sd_get_uids function in my app. It basically
> reads the directory /run/systemd/users.
> I do not know, is this list already sorted?? this is the same question
> as is the readdir function "sort" sensitive?
readdir() in many cases returns stuff in reverse order of creation,
the order is not defined, and it is never sorted.
Kay
More information about the systemd-devel
mailing list