Patrik,
>* Is there a better way to use readdir() inside *>* connman_storage_get_services() in src/storage.c to retrieve the file names *>* in a sorted order in which the files are created. As per the present usage *>* i see that readdir() retrieves the files randomly. * > readdir() returns the directory entries in some order depending on the > file system data structures. Why is this a problem as all relevant files > in the directories are used anyway? Yes readdir returns all the files. But in this case we were seeing that it returns the files in a random order. So when we are trying to read the saved services it doesnt return in the order in which it is saved nor in any sorted order. we want to minimize sorting currently being done at UI layer. Regards, Sistla. _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
