1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys: add libc includes directory and sys/uio.h header

This commit is contained in:
Kaspar Schleiser 2015-07-07 10:31:17 +02:00
parent 53b416e861
commit 7acc4141ce
2 changed files with 44 additions and 1 deletions

View File

@ -102,4 +102,6 @@ endif
ifneq (,$(filter newlib,$(USEMODULE)))
include $(RIOTBASE)/sys/newlib/Makefile.include
endif
endif
INCLUDES += -I$(RIOTBASE)/sys/libc/include

View File

@ -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 */