]> Savannah Git Hosting - gnulib.git/commit
savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 13 Feb 2014 20:01:39 +0000 (22:01 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 13 Feb 2014 20:02:48 +0000 (22:02 +0200)
commitbe7d73709d2b3bceb987f1be00a049bb7021bf87
tree084dbe836236a15aecced6a2949fc9d1e3393259
parent26f3204a95c587cac83288cc91c81d18baeaa109
savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir

Patch based on an idea by Dick Streefland in
<https://savannah.gnu.org/patch/?7892>.

* NEWS: Document this.
* lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
(direntry_t, comparison_function): New types.
(direntry_cmp_name): New function.
(direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
(streamsavedir, savedir): New arg OPTION.
(streamsavedir): Simplify memory allocation.
(fdsavedir): Remove.
* lib/savedir.h (enum savedir_option): New type.
(streamsavedir, savedir): New arg OPTION.
(fdsavedir): Remove.
ChangeLog
NEWS
lib/savedir.c
lib/savedir.h