Welcome to mirror list, hosted at ThFree Co, Russian Federation.

semihost_fdtable.h « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f596a409a7be69e0af2a1d9df5cd35d887c015fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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