Merge branch 'sysuio-systypes' into 'master'
remove sys_types from sys_uio and bits_iovec See merge request redox-os/relibc!1290
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
# POSIX headers that require iovec:
|
||||
# - sys/socket.h
|
||||
# - sys/uio.h (where it should be defined)
|
||||
#
|
||||
# sys/types.h included for c_void and size_t
|
||||
sys_includes = ["sys/types.h"]
|
||||
sys_includes = []
|
||||
after_includes = """
|
||||
#include <bits/size-t.h> // for size_t from sys/types.h
|
||||
"""
|
||||
include_guard = "_RELIBC_BITS_IOVEC_H"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
|
||||
@@ -3,8 +3,15 @@
|
||||
# Spec quotations relating to includes:
|
||||
# - "The <sys/uio.h> header shall define the ssize_t and size_t types as described in <sys/types.h>."
|
||||
#
|
||||
# bits/iovec.h brings in sys/types.h
|
||||
sys_includes = ["bits/iovec.h"]
|
||||
# bits/iovec.h brings in size_t
|
||||
sys_includes = []
|
||||
after_includes = """
|
||||
#include <bits/ssize-t.h> // for ssize_t from sys/types.h
|
||||
#include <bits/iovec.h> // for iovec
|
||||
|
||||
// for Non-POSIX functions preadv and pwritev
|
||||
#include <bits/off-t.h> // for off_t from sys/types.h
|
||||
"""
|
||||
include_guard = "_RELIBC_SYS_UIO_H"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
|
||||
Reference in New Issue
Block a user