1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
emacs/lib
Paul Eggert 3a8d0cc825 Avoid most stat calls when completing file names
* admin/merge-gnulib (GNULIB_MODULES): Add d-type.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/d-type.m4: New file, copied from gnulib.
* src/dired.c (DT_UNKNOWN, DT_DIR, DT_LINK)
[!HAVE_STRUCT_DIRENT_D_TYPE]: New constants.
(dirent_type): New function.
(file_name_completion): Use it, to avoid unnecessary calls to
stat-like functions on GNU/Linux and other platforms with d_type.
(file_name_completion_stat): Just follow the link; there is no
need to try first with AT_SYMLINK_NOFOLLOW since the directory
entry was already checked to exist.
2017-07-31 12:56:51 -07:00
..
_Noreturn.h
acl_entries.c
acl-errno-valid.c
acl-internal.c
acl-internal.h
acl.h
alloca.in.h
allocator.c
allocator.h
arg-nonnull.h
at-func.c
binary-io.c
binary-io.h
byteswap.in.h
c-ctype.c
c-ctype.h
c-strcase.h
c-strcasecmp.c
c-strncasecmp.c
c++defs.h
careadlinkat.c
careadlinkat.h
close-stream.c
close-stream.h
COPYING
count-leading-zeros.c
count-leading-zeros.h
count-one-bits.c
count-one-bits.h
count-trailing-zeros.c
count-trailing-zeros.h
diffseq.h
dirent.in.h
dirfd.c
dosname.h
dtoastr.c
dtotimespec.c
dup2.c
errno.in.h
euidaccess.c
execinfo.c
execinfo.in.h
explicit_bzero.c Use explicit_bzero to clear GnuTLS keys 2017-07-16 16:29:12 -07:00
faccessat.c
fcntl.c
fcntl.in.h
fdatasync.c
fdopendir.c
filemode.c
filemode.h
filevercmp.c
filevercmp.h
flexmember.h
fpending.c
fpending.h
fstatat.c
fsync.c
ftoastr.c
ftoastr.h
get-permissions.c
getdtablesize.c
getgroups.c
getloadavg.c
getopt1.c
getopt_.h
getopt_int.h
getopt-cdefs.in.h
getopt-core.h
getopt-ext.h
getopt-pfx-core.h
getopt-pfx-ext.h
getopt.c
getopt.in.h
gettext.h
gettime.c
gettimeofday.c
gnulib.mk.in Avoid most stat calls when completing file names 2017-07-31 12:56:51 -07:00
group-member.c
ignore-value.h
intprops.h
inttypes.in.h
limits.in.h
localtime-buffer.c
localtime-buffer.h
lstat.c
Makefile.in
md5.c
md5.h
memrchr.c
min-max.h
minmax.h
mkostemp.c
mktime-internal.h
mktime.c
nstrftime.c Merge from gnulib 2017-07-23 22:23:49 -07:00
openat-die.c
openat-priv.h
openat-proc.c
openat.h
pipe2.c
pselect.c
pthread_sigmask.c
putenv.c
qcopy-acl.c
readlink.c
readlinkat.c
root-uid.h
save-cwd.c
save-cwd.h
secure_getenv.c
set-permissions.c
sha1.c
sha1.h
sha256.c
sha256.h
sha512.c
sha512.h
sig2str.c
sig2str.h
signal.in.h
stat-time.c
stat-time.h
stdalign.in.h
stddef.in.h
stdint.in.h
stdio-impl.h
stdio.in.h
stdlib.in.h
stpcpy.c
strftime.h
string.in.h
strtoimax.c
strtol.c
strtoll.c
symlink.c
sys_select.in.h
sys_stat.in.h
sys_time.in.h
sys_types.in.h
tempname.c Merge from gnulib 2017-07-30 22:47:24 -07:00
tempname.h
time_r.c
time_rz.c
time-internal.h
time.in.h
timegm.c
timespec-add.c
timespec-sub.c
timespec.c
timespec.h
u64.c
u64.h
unistd.c
unistd.in.h
unlocked-io.h
utimens.c
utimens.h
verify.h
vla.h
warn-on-use.h
xalloc-oversized.h