The friendly Operating System for the Internet of Things
fd.h File Reference

Unifies diverse identifiers of RIOT to POSIX like file descriptors. More...

Detailed Description

#include <stdlib.h>
#include <sys/types.h>
#include "kernel_types.h"
#include "cpu.h"
+ Include dependency graph for fd.h:

Go to the source code of this file.

Data Structures

struct  fd_t
 File descriptor table. More...


int fd_init (void)
 Initializes file descriptors. More...
int fd_new (int internal_fd, ssize_t(*internal_read)(int, void *, size_t), ssize_t(*internal_write)(int, const void *, size_t), int(*internal_close)(int))
 Creates a new file descriptor. More...
fd_tfd_get (int fd)
 Gets the file descriptor table entry associated with file descriptor fd. More...
void fd_destroy (int fd)
 Removes file descriptor table entry associated with fd from table. More...