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

dev/timer
Kaspar Schleiser 8 years ago
parent 53b416e861
commit 7acc4141ce

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

@ -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 */
Loading…
Cancel
Save