[PATCH 2/2] fts: enable leaf optimization for NFS

2015-12-08 Thread Kamil Dudka
NFS provides usable dirent.d_type but not necessarily for all entries of large directories. See for details. * lib/fts.c (leaf_optimization_applies): Append NFS on the white list. --- lib/fts.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/fts.

[PATCH 1/2] fts: introduce the FTS_NOLEAF flag

2015-12-08 Thread Kamil Dudka
The flag is needed to implement the -noleaf option of find. * lib/fts.c (link_count_optimize_ok): Implement the FTS_NOLEAF flag. * lib/fts_.h (FTS_NOLEAF): New macro, shifted conflicting constants. --- lib/fts.c | 4 lib/fts_.h | 12 +--- 2 files changed, 13 insertions(+), 3 deletio

Re: [PATCH] multiple --local-dir options

2015-12-08 Thread Pádraig Brady
On 07/12/15 10:46, Pádraig Brady wrote: > On 23/11/15 12:01, Pavel Raiskup wrote: >> On Monday 23 of November 2015 11:31:15 Pádraig Brady wrote: >>> On 23/11/15 08:30, Pavel Raiskup wrote: Hello maintainers, I planned to reuse some of my local gnulib modules in multiple projects. >>>

[PATCH] fix freadptr to work with ungetc on all uClibc configs

2015-12-08 Thread Pádraig Brady
This was noticed at https://bugs.busybox.net/show_bug.cgi?id=4099 where GNU coreutils cut fails like: $echo '3:0:0:' | cut -d : -f 2 30 The reason is because GNU cut uses ungetc(), and that wasn't handled appropriately on uClibc when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined. * lib/frea