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:
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
|
||||
|
41
sys/libc/include/sys/uio.h
Normal file
41
sys/libc/include/sys/uio.h
Normal 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 */
|
Loading…
Reference in New Issue
Block a user