~aleteoryx/muditaos

ref: 00ef5e69b87cf8cc44ff767d8f5fa8c0e2fb4b6e muditaos/board/linux/libiosyscalls/include/internal.hpp -rw-r--r-- 487 bytes
00ef5e69 — Marcin Smoczyński changelog: fix broken changelog for v0.49.1 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once
#include <stddef.h>

struct _FF_FILE;
struct _IO_FILE;

namespace vfsn::linux::internal
{
    int  ff_file_to_fd(_FF_FILE *fil);
    _FF_FILE * fd_to_ff_file(int fd);
    const char* relative_to_root( char *out_path, size_t out_path_len, const char *inpath );
    bool is_ff_handle(_IO_FILE* descriptor);
    bool vfs_is_initialized();
}