shell: Rename "IO" typedef for better Doxygen

An automatic link from every place in the documentation which mentions
"IO" to this dd command internal "IO" typedef is not really nice.
This commit is contained in:
Sebastian Huber
2020-11-28 09:44:08 +01:00
parent b1a8be45b0
commit 501bd46fd6
3 changed files with 6 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ typedef struct {
const char *name; /* name */ const char *name; /* name */
int fd; /* file descriptor */ int fd; /* file descriptor */
off_t offset; /* # of blocks to skip */ off_t offset; /* # of blocks to skip */
} IO; } rtems_shell_dd_IO;
typedef struct { typedef struct {
uintmax_t in_full; /* # of full input blocks */ uintmax_t in_full; /* # of full input blocks */
@@ -72,7 +72,7 @@ typedef struct {
uintmax_t swab; /* # of odd-length swab blocks */ uintmax_t swab; /* # of odd-length swab blocks */
uintmax_t bytes; /* # of bytes written */ uintmax_t bytes; /* # of bytes written */
double start; /* start time of dd */ double start; /* start time of dd */
} STAT; } rtems_shell_dd_STAT;
/* Flags (in ddflags). */ /* Flags (in ddflags). */
#define C_ASCII 0x00001 #define C_ASCII 0x00001

View File

@@ -40,8 +40,8 @@
#include <setjmp.h> #include <setjmp.h>
typedef struct rtems_shell_dd_globals_t { typedef struct rtems_shell_dd_globals_t {
IO in, out; /* input/output state */ rtems_shell_dd_IO in, out; /* input/output state */
STAT st; /* statistics */ rtems_shell_dd_STAT st; /* statistics */
void (*cfunc)(struct rtems_shell_dd_globals_t* globals); /* conversion function */ void (*cfunc)(struct rtems_shell_dd_globals_t* globals); /* conversion function */
uintmax_t cpy_cnt; /* # of blocks to copy */ uintmax_t cpy_cnt; /* # of blocks to copy */
u_int ddflags; /* conversion options */ u_int ddflags; /* conversion options */

View File

@@ -86,7 +86,7 @@ __FBSDID("$FreeBSD: src/bin/dd/dd.c,v 1.43 2004/08/15 19:10:05 rwatson Exp $");
static void dd_close(rtems_shell_dd_globals* globals); static void dd_close(rtems_shell_dd_globals* globals);
static void dd_in(rtems_shell_dd_globals* globals); static void dd_in(rtems_shell_dd_globals* globals);
static void getfdtype(rtems_shell_dd_globals* globals, IO *); static void getfdtype(rtems_shell_dd_globals* globals, rtems_shell_dd_IO *);
static void setup(rtems_shell_dd_globals* globals); static void setup(rtems_shell_dd_globals* globals);
#if RTEMS_REMOVED #if RTEMS_REMOVED
@@ -299,7 +299,7 @@ setup(rtems_shell_dd_globals* globals)
} }
static void static void
getfdtype(rtems_shell_dd_globals* globals, IO *io) getfdtype(rtems_shell_dd_globals* globals, rtems_shell_dd_IO *io)
{ {
struct stat sb; struct stat sb;
#if RTEMS_REMOVED #if RTEMS_REMOVED