diff options
author | Jim Meyering <jim@meyering.net> | 2004-11-30 14:52:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-11-30 14:52:34 +0000 |
commit | e98803ca48969ead81e753f06bc3dbf10669fb6b (patch) | |
tree | fc8c40a05d3214405deb2b8710b0948d181bff5f | |
parent | 2f024a1430155abd621ef40a17ea88ae3bc71a03 (diff) | |
download | coreutils-e98803ca48969ead81e753f06bc3dbf10669fb6b.tar.xz |
rename from chdir.m4
-rw-r--r-- | m4/chdir-long.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/m4/chdir-long.m4 b/m4/chdir-long.m4 new file mode 100644 index 000000000..32c24c761 --- /dev/null +++ b/m4/chdir-long.m4 @@ -0,0 +1,24 @@ +#serial 1 + +# Written by Jim Meyering. +# Use Gnulib's robust replacement chdir function. +# It can handle arbitrarily long directory names, which means +# that when it is given the name of an existing directory, it +# never fails with ENAMETOOLONG. +# +# It still fails with ENAMETOOLONG if the specified directory +# name contains a component that would provoke such a failure +# all by itself (e.g. if the component is longer than PATH_MAX +# on systems that define PATH_MAX). + +AC_DEFUN([gl_FUNC_CHDIR_LONG], +[ + gl_PREREQ_CHDIR_LONG +]) + +AC_DEFUN([gl_PREREQ_CHDIR_LONG], +[ + AM_STDBOOL_H + gl_FUNC_MEMPCPY + gl_FUNC_OPENAT +]) |