[riot-devel] C headers available in RIOT

Christian Mehlis mehlis at inf.fu-berlin.de
Tue Jun 18 17:21:14 CEST 2013


Hi all,

I'm currently trying to port CCNx (talk from Van Jakobson: 
http://www.youtube.com/watch?v=3zOLrQJ5kbU) to RIOT and I need to know 
which c includes I can rely on in riot?

I think these are ok:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdint.h>

but what about (as comment I wrote the names of the used functions):

#include <arpa/inet.h> // struct sockaddr_storage, socket, connect
#include <fcntl.h> // open, fcntl
#include <poll.h> // pollfd
#include <sys/stat.h> // mkdir
#include <sys/time.h> // gettimeofday
#include <sys/un.h> // struct sockaddr_un
#include <unistd.h> // getpid, close, write, read, sleep, access

Right now, I need to decide which parts of CCNx I need to customize for 
RIOT...

Best,
Christian


More information about the devel mailing list