posix: define POLLPRI in posix/poll.h
Add the POLLPRI constant defined by POSIX and test for it. Signed-off-by: Jakub Michalski <jmichalski@antmicro.com> Signed-off-by: Maciej Sobkowski <msobkowski@antmicro.com>
This commit is contained in:
parent
f4cb7e35ec
commit
191d38dee8
2 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ typedef unsigned int nfds_t;
|
|||
#define pollfd zsock_pollfd
|
||||
|
||||
#define POLLIN ZSOCK_POLLIN
|
||||
#define POLLPRI ZSOCK_POLLPRI
|
||||
#define POLLOUT ZSOCK_POLLOUT
|
||||
#define POLLERR ZSOCK_POLLERR
|
||||
#define POLLHUP ZSOCK_POLLHUP
|
||||
|
|
|
@ -28,7 +28,7 @@ ZTEST(posix_headers, test_poll_h)
|
|||
zassert_not_equal(-1, POLLIN);
|
||||
/* zassert_not_equal(-1, POLLRDNORM); */ /* not implemented */
|
||||
/* zassert_not_equal(-1, POLLRDBAND); */ /* not implemented */
|
||||
/* zassert_not_equal(-1, POLLPRI); */ /* not implemented */
|
||||
zassert_not_equal(-1, POLLPRI);
|
||||
zassert_not_equal(-1, POLLOUT);
|
||||
/* zassert_not_equal(-1, POLLWRNORM); */ /* not implemented */
|
||||
/* zassert_not_equal(-1, POLLWRBAND); */ /* not implemented */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue