Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/riscv/semihost_fdtable.h

22 lines
410 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
/*
* Copyright (C) 2020 Embecosm Limited
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <sys/types.h>
#ifndef RISCV_SEMIHOST_FDTABLE_H
#define RISCV_SEMIHOST_FDTABLE_H
extern void __attribute__ ((constructor)) init_semihosting ();
extern int __add_fdentry (int);
extern struct fdentry * __get_fdentry (int);
extern void __remove_fdentry (int);
struct fdentry
{
int handle;
off_t pos;
};
#endif