genode/repos/libports/src/lib/libc/internal/file_operations.h

36 lines
778 B
C++

/*
* \brief Libc-internal file operations
* \author Norman Feske
* \date 2019-09-23
*/
/*
* Copyright (C) 2019 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _LIBC__INTERNAL__FILE_OPERATIONS_H_
#define _LIBC__INTERNAL__FILE_OPERATIONS_H_
/* Genode includes */
#include <os/path.h>
/* libc includes */
#include <limits.h> /* for 'PATH_MAX' */
/* libc-internal includes */
#include <internal/types.h>
namespace Libc {
typedef Genode::Path<PATH_MAX> Absolute_path;
class Symlink_resolve_error : Exception { };
void resolve_symlinks(char const *path, Absolute_path &resolved_path);
}
#endif /* _LIBC__INTERNAL__FILE_OPERATIONS_H_ */