libctru v2.5.0
Loading...
Searching...
No Matches
gdbhio_dev.h
Go to the documentation of this file.
1/**
2 * @file gdbhio_dev.h
3 * @brief Luma3DS GDB HIO (called File I/O in GDB documentation) devoptab wrapper.
4 */
5
6#pragma once
7
8#include <stdbool.h>
9
10struct timeval;
11
12///< Initializes the GDB HIO devoptab wrapper, returns 0 on success, -1 on failure.
13int gdbHioDevInit(void);
14
15///< Deinitializes the GDB HIO devoptab wrapper.
16void gdbHioDevExit(void);
17
18///< Returns a file descriptor mapping to the GDB client console's standard input stream.
20
21///< Returns a file descriptor mapping to the GDB client console's standard output stream.
23
24///< Returns a file descriptor mapping to the GDB client console's standard error stream.
26
27///< Redirects 0 to 3 of the application's standard streams to GDB client console's. Returns -1, -2, or -3, resp., on failure; 0 on success.
28int gdbHioDevRedirectStdStreams(bool in, bool out, bool err);
29
30///< GDB HIO POSIX function gettimeofday.
31int gdbHioDevGettimeofday(struct timeval *tv, void *tz);
32
33///< GDB HIO POSIX function isatty.
34int gdbHioDevIsatty(int fd);
35
36///< GDB HIO POSIX function system. Requires 'set remote system-call-allowed 1'.
37int gdbHioDevSystem(const char *command);
int gdbHioDevGetStderr(void)
Redirects 0 to 3 of the application's standard streams to GDB client console's. Returns -1,...
int gdbHioDevGettimeofday(struct timeval *tv, void *tz)
GDB HIO POSIX function isatty.
void gdbHioDevExit(void)
Returns a file descriptor mapping to the GDB client console's standard input stream.
int gdbHioDevGetStdout(void)
Returns a file descriptor mapping to the GDB client console's standard error stream.
int gdbHioDevIsatty(int fd)
GDB HIO POSIX function system. Requires 'set remote system-call-allowed 1'.
int gdbHioDevInit(void)
Initializes the GDB HIO devoptab wrapper, returns 0 on success, -1 on failure.
int gdbHioDevGetStdin(void)
Returns a file descriptor mapping to the GDB client console's standard output stream.
int gdbHioDevRedirectStdStreams(bool in, bool out, bool err)
GDB HIO POSIX function gettimeofday.