\hypertarget{structnewlib__device__t}{
\section{newlib\_\-device\_\-t Struct Reference}
\label{structnewlib__device__t}\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}}
}


{\ttfamily \#include $<$newintf.h$>$}

\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{structnewlib__device__t_a7ef0ce2c73459f4307c119e3a4354f5e}{valid}
\item 
int \hyperlink{structnewlib__device__t_a3edfa05840bcbf0e4497ba86e84ae705}{ident}
\item 
char \hyperlink{structnewlib__device__t_a9d45b0dad14df2c661a0ad6c25ef4dae}{tag} \mbox{[}8\mbox{]}
\item 
BOOL \hyperlink{structnewlib__device__t_a3460bf75028270b1be1f2673831f5233}{is\_\-tty}
\item 
void $\ast$($\ast$ \hyperlink{structnewlib__device__t_abbeb5cdc46b93a7a2fe8c933bba86141}{open} )(struct \_\-reent $\ast$r, const char $\ast$name, int flags, int mode)
\item 
int($\ast$ \hyperlink{structnewlib__device__t_a78278eb8e9a517b8733bd36941f23103}{close} )(struct \_\-reent $\ast$r, int fd)
\item 
off\_\-t($\ast$ \hyperlink{structnewlib__device__t_a728b39e5583201e60c98ac90ab87aa40}{lseek} )(struct \_\-reent $\ast$r, int fd, off\_\-t pos, int whence)
\item 
long($\ast$ \hyperlink{structnewlib__device__t_a0307ee7325495b6513f55457eb62b9e4}{read} )(struct \_\-reent $\ast$r, int fd, void $\ast$buf, size\_\-t cnt)
\item 
long($\ast$ \hyperlink{structnewlib__device__t_afdd71a6a7e0559754b04e85be77e1b16}{write} )(struct \_\-reent $\ast$r, int fd, const void $\ast$buf, size\_\-t cnt)
\item 
int($\ast$ \hyperlink{structnewlib__device__t_ad51d3c4fc1c0ffc72eab2d35cfa03afd}{stat} )(struct \_\-reent $\ast$r, const char $\ast$file, struct \hyperlink{structnewlib__device__t_ad51d3c4fc1c0ffc72eab2d35cfa03afd}{stat} $\ast$pstat)
\item 
int($\ast$ \hyperlink{structnewlib__device__t_a3437bf15e92a388a7e6e8493849d9946}{fstat} )(struct \_\-reent $\ast$r, int fd, struct \hyperlink{structnewlib__device__t_ad51d3c4fc1c0ffc72eab2d35cfa03afd}{stat} $\ast$pstat)
\item 
int($\ast$ \hyperlink{structnewlib__device__t_a2a30dc08bb89718d638dabd0dbcd5d1c}{link} )(struct \_\-reent $\ast$r, const char $\ast$old, const char $\ast$n)
\item 
int($\ast$ \hyperlink{structnewlib__device__t_a2dc7a1d0c803e16de30fa8a6dc0eb0d3}{unlink} )(struct \_\-reent $\ast$r, const char $\ast$file)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The interface between newlib and any user devices to be accessed with stdio. 

\subsection{Field Documentation}
\hypertarget{structnewlib__device__t_a78278eb8e9a517b8733bd36941f23103}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!close@{close}}
\index{close@{close}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{close}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf newlib\_\-device\_\-t::close})(struct \_\-reent $\ast$r, int fd)}}
\label{structnewlib__device__t_a78278eb8e9a517b8733bd36941f23103}
\hyperlink{structnewlib__device__t_a78278eb8e9a517b8733bd36941f23103}{close()} \hypertarget{structnewlib__device__t_a3437bf15e92a388a7e6e8493849d9946}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!fstat@{fstat}}
\index{fstat@{fstat}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{fstat}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf newlib\_\-device\_\-t::fstat})(struct \_\-reent $\ast$r, int fd, struct {\bf stat} $\ast$pstat)}}
\label{structnewlib__device__t_a3437bf15e92a388a7e6e8493849d9946}
\hyperlink{structnewlib__device__t_a3437bf15e92a388a7e6e8493849d9946}{fstat()} \hypertarget{structnewlib__device__t_a3edfa05840bcbf0e4497ba86e84ae705}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!ident@{ident}}
\index{ident@{ident}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{ident}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf newlib\_\-device\_\-t::ident}}}
\label{structnewlib__device__t_a3edfa05840bcbf0e4497ba86e84ae705}
Identifier (Don't touch this) \hypertarget{structnewlib__device__t_a3460bf75028270b1be1f2673831f5233}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!is\_\-tty@{is\_\-tty}}
\index{is\_\-tty@{is\_\-tty}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{is\_\-tty}]{\setlength{\rightskip}{0pt plus 5cm}BOOL {\bf newlib\_\-device\_\-t::is\_\-tty}}}
\label{structnewlib__device__t_a3460bf75028270b1be1f2673831f5233}
TRUE if this device is a TTY, FALSE otherwise \hypertarget{structnewlib__device__t_a2a30dc08bb89718d638dabd0dbcd5d1c}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!link@{link}}
\index{link@{link}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{link}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf newlib\_\-device\_\-t::link})(struct \_\-reent $\ast$r, const char $\ast$old, const char $\ast$n)}}
\label{structnewlib__device__t_a2a30dc08bb89718d638dabd0dbcd5d1c}
\hyperlink{structnewlib__device__t_a2a30dc08bb89718d638dabd0dbcd5d1c}{link()} \hypertarget{structnewlib__device__t_a728b39e5583201e60c98ac90ab87aa40}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!lseek@{lseek}}
\index{lseek@{lseek}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{lseek}]{\setlength{\rightskip}{0pt plus 5cm}off\_\-t($\ast$ {\bf newlib\_\-device\_\-t::lseek})(struct \_\-reent $\ast$r, int fd, off\_\-t pos, int whence)}}
\label{structnewlib__device__t_a728b39e5583201e60c98ac90ab87aa40}
\hyperlink{structnewlib__device__t_a728b39e5583201e60c98ac90ab87aa40}{lseek()} \hypertarget{structnewlib__device__t_abbeb5cdc46b93a7a2fe8c933bba86141}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!open@{open}}
\index{open@{open}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{open}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$($\ast$ {\bf newlib\_\-device\_\-t::open})(struct \_\-reent $\ast$r, const char $\ast$name, int flags, int mode)}}
\label{structnewlib__device__t_abbeb5cdc46b93a7a2fe8c933bba86141}
\hyperlink{structnewlib__device__t_abbeb5cdc46b93a7a2fe8c933bba86141}{open()} \hypertarget{structnewlib__device__t_a0307ee7325495b6513f55457eb62b9e4}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!read@{read}}
\index{read@{read}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}long($\ast$ {\bf newlib\_\-device\_\-t::read})(struct \_\-reent $\ast$r, int fd, void $\ast$buf, size\_\-t cnt)}}
\label{structnewlib__device__t_a0307ee7325495b6513f55457eb62b9e4}
\hyperlink{structnewlib__device__t_a0307ee7325495b6513f55457eb62b9e4}{read()} \hypertarget{structnewlib__device__t_ad51d3c4fc1c0ffc72eab2d35cfa03afd}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!stat@{stat}}
\index{stat@{stat}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{stat}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf newlib\_\-device\_\-t::stat})(struct \_\-reent $\ast$r, const char $\ast$file, struct {\bf stat} $\ast$pstat)}}
\label{structnewlib__device__t_ad51d3c4fc1c0ffc72eab2d35cfa03afd}
\hyperlink{structnewlib__device__t_ad51d3c4fc1c0ffc72eab2d35cfa03afd}{stat()} \hypertarget{structnewlib__device__t_a9d45b0dad14df2c661a0ad6c25ef4dae}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!tag@{tag}}
\index{tag@{tag}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{tag}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf newlib\_\-device\_\-t::tag}\mbox{[}8\mbox{]}}}
\label{structnewlib__device__t_a9d45b0dad14df2c661a0ad6c25ef4dae}
The tag for the device filenames (tag:/path/to/file) \hypertarget{structnewlib__device__t_a2dc7a1d0c803e16de30fa8a6dc0eb0d3}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!unlink@{unlink}}
\index{unlink@{unlink}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{unlink}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf newlib\_\-device\_\-t::unlink})(struct \_\-reent $\ast$r, const char $\ast$file)}}
\label{structnewlib__device__t_a2dc7a1d0c803e16de30fa8a6dc0eb0d3}
\hyperlink{structnewlib__device__t_a2dc7a1d0c803e16de30fa8a6dc0eb0d3}{unlink()} \hypertarget{structnewlib__device__t_a7ef0ce2c73459f4307c119e3a4354f5e}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!valid@{valid}}
\index{valid@{valid}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{valid}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf newlib\_\-device\_\-t::valid}}}
\label{structnewlib__device__t_a7ef0ce2c73459f4307c119e3a4354f5e}
Don't touch this \hypertarget{structnewlib__device__t_afdd71a6a7e0559754b04e85be77e1b16}{
\index{newlib\_\-device\_\-t@{newlib\_\-device\_\-t}!write@{write}}
\index{write@{write}!newlib_device_t@{newlib\_\-device\_\-t}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}long($\ast$ {\bf newlib\_\-device\_\-t::write})(struct \_\-reent $\ast$r, int fd, const void $\ast$buf, size\_\-t cnt)}}
\label{structnewlib__device__t_afdd71a6a7e0559754b04e85be77e1b16}
\hyperlink{structnewlib__device__t_afdd71a6a7e0559754b04e85be77e1b16}{write()} 

The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize}
\item 
libnewintf/\hyperlink{newintf_8h}{newintf.h}\end{DoxyCompactItemize}
