The friendly Operating System for the Internet of Things
fd_t Struct Reference

File descriptor table. More...

Detailed Description

Definition at line 35 of file fd.h.

#include <fd.h>

Data Fields

int internal_active
 private status of this fd_t
 
int internal_fd
 Stores the RIOT internal value for the file descriptor (not POSIX). More...
 
ssize_t(* read )(int fd, void *buf, size_t n)
 Read n bytes into buf from fd. More...
 
ssize_t(* write )(int fd, const void *buf, size_t n)
 Write n bytes of buf to fd. More...
 
int(* close )(int fd)
 Close the file descriptor fd. More...
 

Field Documentation

int(* fd_t::close) (int fd)

Definition at line 52 of file fd.h.

int fd_t::internal_fd

Definition at line 40 of file fd.h.

ssize_t(* fd_t::read) (int fd, void *buf, size_t n)

Return the number read, -1 for errors or 0 for EOF.

Definition at line 46 of file fd.h.

ssize_t(* fd_t::write) (int fd, const void *buf, size_t n)

Return the number written, or -1.

Definition at line 49 of file fd.h.


The documentation for this struct was generated from the following file: