/usr/include/astrometry/fileutils.h is in libastrometry-dev 0.70+dfsg-1.
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 | /*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#ifndef FILEUTILS_H
#define FILEUTILS_H
/*
Removes '.' and '..' references from a path.
Collapses '//' to '/'.
Does NOT care whether the file actually exists.
Does NOT resolve symlinks.
Assumes '/' is the path separator.
Returns a newly-allocated string which should be freed with free().
*/
char* an_canonicalize_file_name(const char* fn);
char* resolve_path(const char* filename, const char* basedir);
char* find_executable(const char* progname, const char* sibling);
#endif
|