/*************************************************************************** * Copyright (C) 2020 - 2025 by Silvano Seva IU2KWO * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, see * ***************************************************************************/ #include #include #include "filesystem/file_access.h" using namespace std; #ifdef __cplusplus extern "C" { #endif /** * \internal * _write_r, write to a file */ int _write_r(struct _reent *ptr, int fd, const void *buf, size_t cnt) { (void) ptr; (void) fd; (void) buf; (void) cnt; /* If fd is not stdout or stderr */ ptr->_errno = EBADF; return -1; } /** * \internal * _read_r, read from a file. */ int _read_r(struct _reent *ptr, int fd, void *buf, size_t cnt) { (void) ptr; (void) fd; (void) buf; (void) cnt; /* If fd is not stdin */ ptr->_errno = EBADF; return -1; } #ifdef __cplusplus } #endif