• Paul Eggert's avatar
    Prefer PATH_MAX to MAXPATHLEN · 824f7841
    Paul Eggert authored
    PATH_MAX is standardized, MAXPATHLEN is not.
    Also, the Gnulib pathmax module fixes some rare bugs with PATH_MAX.
    So prefer PATH_MAX to MAXPATHLEN unless we know the latter is
    also correct (for some platform-specific code).
    * admin/merge-gnulib (GNULIB_MODULES): Add pathmax.
    This module was already present, as a dependency of canonicalize-lgpl,
    but now Emacs is using it directly.  Sort.
    * lib-src/emacsclient.c: Include stdint.h, pathmax.h.
    (get_current_dir_name): Sync to current src/sysdep.c.
    * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
    * src/sysdep.c: Include pathmax.h.
    (get_current_dir_name_or_unreachable):
    Use PATH_MAX instead of MAXPATHLEN.
    824f7841
Name
Last commit
Last update
..
COPYING Loading commit data...
Makefile.in Loading commit data...
_Noreturn.h Loading commit data...
acl-errno-valid.c Loading commit data...
acl-internal.c Loading commit data...
acl-internal.h Loading commit data...
acl.h Loading commit data...
acl_entries.c Loading commit data...
alloca.in.h Loading commit data...
allocator.c Loading commit data...
allocator.h Loading commit data...
arg-nonnull.h Loading commit data...
at-func.c Loading commit data...
binary-io.c Loading commit data...
binary-io.h Loading commit data...
byteswap.in.h Loading commit data...
c++defs.h Loading commit data...
c-ctype.c Loading commit data...
c-ctype.h Loading commit data...
c-strcase.h Loading commit data...
c-strcasecmp.c Loading commit data...
c-strncasecmp.c Loading commit data...
canonicalize-lgpl.c Loading commit data...
careadlinkat.c Loading commit data...
careadlinkat.h Loading commit data...
cdefs.h Loading commit data...
cloexec.c Loading commit data...
cloexec.h Loading commit data...
close-stream.c Loading commit data...
close-stream.h Loading commit data...
copy-file-range.c Loading commit data...
count-leading-zeros.c Loading commit data...
count-leading-zeros.h Loading commit data...
count-one-bits.c Loading commit data...
count-one-bits.h Loading commit data...
count-trailing-zeros.c Loading commit data...
count-trailing-zeros.h Loading commit data...
diffseq.h Loading commit data...
dirent.in.h Loading commit data...
dirfd.c Loading commit data...
dosname.h Loading commit data...
dtoastr.c Loading commit data...
dtotimespec.c Loading commit data...
dup2.c Loading commit data...
errno.in.h Loading commit data...
euidaccess.c Loading commit data...
execinfo.c Loading commit data...
execinfo.in.h Loading commit data...
explicit_bzero.c Loading commit data...
faccessat.c Loading commit data...
fcntl.c Loading commit data...
fcntl.in.h Loading commit data...
fdopendir.c Loading commit data...
filemode.c Loading commit data...
filemode.h Loading commit data...
filevercmp.c Loading commit data...
filevercmp.h Loading commit data...
fingerprint.c Loading commit data...
fingerprint.h Loading commit data...
flexmember.h Loading commit data...
fpending.c Loading commit data...
fpending.h Loading commit data...
fstatat.c Loading commit data...
fsusage.c Loading commit data...
fsusage.h Loading commit data...
fsync.c Loading commit data...
ftoastr.c Loading commit data...
ftoastr.h Loading commit data...
get-permissions.c Loading commit data...
getdtablesize.c Loading commit data...
getgroups.c Loading commit data...
getloadavg.c Loading commit data...
getopt-cdefs.in.h Loading commit data...
getopt-core.h Loading commit data...
getopt-ext.h Loading commit data...
getopt-pfx-core.h Loading commit data...
getopt-pfx-ext.h Loading commit data...
getopt.c Loading commit data...
getopt.in.h Loading commit data...
getopt1.c Loading commit data...
getopt_int.h Loading commit data...
gettext.h Loading commit data...
gettime.c Loading commit data...
gettimeofday.c Loading commit data...
gnulib.mk.in Loading commit data...
group-member.c Loading commit data...
ieee754.in.h Loading commit data...
ignore-value.h Loading commit data...
intprops.h Loading commit data...
inttypes.in.h Loading commit data...
libc-config.h Loading commit data...
limits.in.h Loading commit data...
localtime-buffer.c Loading commit data...
localtime-buffer.h Loading commit data...
lstat.c Loading commit data...
malloca.c Loading commit data...
malloca.h Loading commit data...
md5.c Loading commit data...
md5.h Loading commit data...
memmem.c Loading commit data...
memrchr.c Loading commit data...
min-max.h Loading commit data...
minmax.h Loading commit data...
mkostemp.c Loading commit data...
mktime-internal.h Loading commit data...
mktime.c Loading commit data...
nstrftime.c Loading commit data...
open.c Loading commit data...
openat-die.c Loading commit data...
openat-priv.h Loading commit data...
openat-proc.c Loading commit data...
openat.h Loading commit data...
pathmax.h Loading commit data...
pipe2.c Loading commit data...
pselect.c Loading commit data...
pthread_sigmask.c Loading commit data...
putenv.c Loading commit data...
qcopy-acl.c Loading commit data...
readlink.c Loading commit data...
readlinkat.c Loading commit data...
regcomp.c Loading commit data...
regex.c Loading commit data...
regex.h Loading commit data...
regex_internal.c Loading commit data...
regex_internal.h Loading commit data...
regexec.c Loading commit data...
root-uid.h Loading commit data...
save-cwd.c Loading commit data...
save-cwd.h Loading commit data...
set-permissions.c Loading commit data...
sha1.c Loading commit data...
sha1.h Loading commit data...
sha256.c Loading commit data...
sha256.h Loading commit data...
sha512.c Loading commit data...
sha512.h Loading commit data...
sig2str.c Loading commit data...
sig2str.h Loading commit data...
signal.in.h Loading commit data...
stat-time.c Loading commit data...
stat-time.h Loading commit data...
stdalign.in.h Loading commit data...
stddef.in.h Loading commit data...
stdint.in.h Loading commit data...
stdio-impl.h Loading commit data...
stdio.in.h Loading commit data...
stdlib.in.h Loading commit data...
stpcpy.c Loading commit data...
str-two-way.h Loading commit data...
strftime.h Loading commit data...
string.in.h Loading commit data...
strnlen.c Loading commit data...
strtoimax.c Loading commit data...
strtol.c Loading commit data...
strtoll.c Loading commit data...
symlink.c Loading commit data...
sys_select.in.h Loading commit data...
sys_stat.in.h Loading commit data...
sys_time.in.h Loading commit data...
sys_types.in.h Loading commit data...
tempname.c Loading commit data...
tempname.h Loading commit data...
time-internal.h Loading commit data...
time.in.h Loading commit data...
time_r.c Loading commit data...
time_rz.c Loading commit data...
timegm.c Loading commit data...
timespec-add.c Loading commit data...
timespec-sub.c Loading commit data...
timespec.c Loading commit data...
timespec.h Loading commit data...
u64.c Loading commit data...
u64.h Loading commit data...
unistd.c Loading commit data...
unistd.in.h Loading commit data...
unlocked-io.h Loading commit data...
utimens.c Loading commit data...
utimens.h Loading commit data...
verify.h Loading commit data...
vla.h Loading commit data...
warn-on-use.h Loading commit data...
xalloc-oversized.h Loading commit data...