From: Jim Meyering Date: Mon, 4 Sep 2000 20:51:12 +0000 (+0000) Subject: Move declaractions of lstat, stat, and rpl_lstat X-Git-Tag: FILEUTILS-4_0z~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cec4418796b4bf464a51896a8f8abf903d84d9e8;p=thirdparty%2Fcoreutils.git Move declaractions of lstat, stat, and rpl_lstat as well as the definition of lstat from cp.c to this file. --- diff --git a/src/copy.h b/src/copy.h index 69a2e2e311..e5a35cd6d8 100644 --- a/src/copy.h +++ b/src/copy.h @@ -130,6 +130,18 @@ struct cp_options int (*xstat) (); }; +int stat (); +int lstat (); + +/* Arrange to make lstat calls go through the wrapper function + on systems with an lstat function that does not dereference symlinks + that are specified with a trailing slash. */ +# if ! LSTAT_FOLLOWS_SLASHED_SYMLINK +int rpl_lstat PARAMS((const char *, struct stat *)); +# undef lstat +# define lstat rpl_lstat +# endif + int copy PARAMS ((const char *src_path, const char *dst_path, int nonexistent_dst, const struct cp_options *options,