You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
410 B
C

/*
* 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