verify sys_select header includes
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
sys_includes = ["time.h", "signal.h"]
|
||||
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_select.h.html
|
||||
#
|
||||
# Spec quotations relating to includes:
|
||||
# - "The <sys/select.h> header shall define the time_t and suseconds_t types as described in <sys/types.h>."
|
||||
# - "The <sys/select.h> header shall define the sigset_t type as described in <signal.h>."
|
||||
# - "The <sys/select.h> header shall define the timespec structure as described in <time.h>."
|
||||
# - "Inclusion of the <sys/select.h> header may make visible all symbols from the headers <signal.h> and <time.h>."
|
||||
sys_includes = ["sys/types.h"]
|
||||
include_guard = "_RELIBC_SYS_SELECT_H"
|
||||
after_includes = """
|
||||
#include <bits/sigset-t.h> // for sigset_t from signal.h
|
||||
#include <bits/timespec.h> // for timespec from time.h
|
||||
|
||||
// from musl license MIT {
|
||||
#define FD_SETSIZE 1024
|
||||
|
||||
@@ -19,7 +30,6 @@ typedef struct {
|
||||
#endif
|
||||
// } from musl license MIT
|
||||
"""
|
||||
include_guard = "_SYS_SELECT_H"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
no_includes = true
|
||||
@@ -31,3 +41,6 @@ prefix_with_name = true
|
||||
[export]
|
||||
# fd_set is also defined in C (above) because cbindgen is incompatible with mem::size_of
|
||||
exclude = ["FD_SETSIZE", "fd_set"]
|
||||
|
||||
[export.rename]
|
||||
"timespec" = "struct timespec"
|
||||
|
||||
Reference in New Issue
Block a user