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
Oh and I might add, that HEAD of this branch is quite volatile for now (heavy rebasing with refactor_modules [1]).
Kind regards,
Martin Lenders
[1] https://github.com/authmillenon/RIOT/tree/refactor_modules
My question about the includes is more like: which ones are currently supported on all board (declared and implemented)? What is the libc on these boards? Is this libc feature complete to this list of headers:
http://de.wikipedia.org/wiki/Standard_C_Library
Best
Christian
so on which parts of riot you are working right now? I think on the current network stacks, right?
Riot is moving it's HEAD too, so I would be happy to see your stuff in master, perhaps I can benefit from it too!
regards,
Christian
Hi Christian,
My question about the includes is more like: which ones are
currently supported on all board (declared and implemented)? What is
the libc on these boards?
for all supported ARM-based platforms RIOT relies on the Newlib (beware of
the lousy documentation!), while mspgcc provides its own libc [2] for the
MSP430 platforms.
Cheers,
Oleg
[1] http://sourceware.org/newlib/
[2] http://sourceforge.net/projects/mspgcc/files/msp430-libc/
2013/6/18 Christian Mehlis <mehlis@inf.fu-berlin.de>