Skip to content

Commit

Permalink
sys: add libc includes directory and sys/uio.h header
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jul 13, 2015
1 parent 53b416e commit 7acc414
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/Makefile.include
Expand Up @@ -102,4 +102,6 @@ endif

ifneq (,$(filter newlib,$(USEMODULE)))
include $(RIOTBASE)/sys/newlib/Makefile.include
endif
endif

INCLUDES += -I$(RIOTBASE)/sys/libc/include
41 changes: 41 additions & 0 deletions sys/libc/include/sys/uio.h
@@ -0,0 +1,41 @@
/*
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/

/**
* @addtogroup posix
* @{
*/

/**
* @file
* @brief libc header for scatter/gather I/O
*
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifndef UIO_H
#define UIO_H

#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Structure for scatter/gather I/O.
*/
struct iovec {
void *iov_base; /**< Pointer to data. */
size_t iov_len; /**< Length of data. */
};

#ifdef __cplusplus
}
#endif
/** @} */
#endif /* UIO_H */

0 comments on commit 7acc414

Please sign in to comment.