/usr/include/dovecot/sieve/realpath.h is in dovecot-dev 1:2.2.22-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #ifndef REALPATH_H
#define REALPATH_H
/* Returns path as the normalized absolute path, which means that './'
and '../' components are resolved, and that duplicate and trailing
slashes are removed. If it's not already the absolute path, it's
assumed to be relative to the current working directory.
NOTE: Be careful with this function. The resolution of '../' components
with the parent component as if it were a normal directory is not valid
if the path contains symbolic links.
*/
int t_normpath(const char *path, const char **npath_r);
/* Like t_normpath(), but path is relative to given root. */
int t_normpath_to(const char *path, const char *root,
const char **npath_r);
/* Returns path as the real normalized absolute path, which means that all
symbolic links in the path are resolved, that './' and '../' components
are resolved, and that duplicate and trailing slashes are removed. If it's
not already the absolute path, it's assumed to be relative to the current
working directory.
NOTE: This function calls stat() for each path component and more when
there are symbolic links (just like POSIX realpath()).
*/
int t_realpath(const char *path, const char **npath_r);
/* Like t_realpath(), but path is relative to given root. */
int t_realpath_to(const char *path, const char *root,
const char **npath_r);
#endif
|