[riot-devel] C headers available in RIOT

Martin Lenders authmillenon at gmail.com
Tue Jun 18 17:32:25 CEST 2013


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


2013/6/18 Martin Lenders <authmillenon at gmail.com>

> Hi Christian,
>
> 2013/6/18 Christian Mehlis <mehlis at inf.fu-berlin.de>
>
>> Hi all,
>
> I'm currently trying to port CCNx (talk from Van Jakobson:
>> http://www.youtube.com/watch?**v=3zOLrQJ5kbU<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>
>>
>>
> Those should be included by the toolchain, yes.
>
>
>> 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
>
>
> some of these you can find in
> https://github.com/authmillenon/RIOT/tree/posix_wrapper/sys/posix/include but
> they are absolutely not tested (ETA for tests: July 19, but if you need
> them and would like to test them, I would be more than pleased :D).
> Especially close() propably won't help you since it only closes sockets by
> now. Still missing POSIX-Headers can be found here:
> https://github.com/authmillenon/RIOT/tree/posix_wrapper_todo/sys/posix/include
>
>
>>
>> Right now, I need to decide which parts of CCNx I need to customize for
>> RIOT...
>>
>> Best,
>> Christian
>> ______________________________**_________________
>> devel mailing list
>> devel at riot-os.org
>> http://lists.riot-os.org/**mailman/listinfo/devel<http://lists.riot-os.org/mailman/listinfo/devel>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20130618/8f5836b4/attachment.html>


More information about the devel mailing list