[riot-notifications] [RIOT] Posix sockets (#226)

Oleg Hahm notifications at github.com
Wed Nov 20 11:17:27 CET 2013


> +/**
> + * Creates a new file descriptor.
> + *
> + * @param[in] internal_fd       RIOT-internal identifier for the new FD.
> + * @param[in] internal_read     Function to read from new FD.
> + * @param[in] internal_write    Function to write into new FD.
> + * @param[in] internal_close    Function to close new FD.
> + *
> + * @return  0 on success, -1 otherwise. *errno* is set accordingly.
> + */
> +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));
> +
> +/**
> + * Gets the file descriptor table entry associated with file descriptor *fd*.

For consistency a `@brief` is missing.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/226/files#r7786526
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131120/b9b531b2/attachment.html>


More information about the notifications mailing list