<div dir="ltr"><div>Thanks. I have pushed this!</div><div><br></div><div>I need to figure out how much you guys left to do for psxhdrs. :)</div><div><br></div><div>--joel<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 11, 2018 at 10:41 AM Marçal Comajoan Cara <<a href="mailto:mcomajoancara@gmail.com">mcomajoancara@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">poll.h implements poll() which is not supported by RTEMS according<br>
to the RTEMS POSIX 1003.1 Compliance Guide. See #3657.<br>
<br>
This work was part of GCI 2018.<br>
---<br>
 testsuites/psxtests/Makefile.am         |  1 +<br>
 testsuites/psxtests/psxhdrs/poll/poll.c | 50 +++++++++++++++++++++++++<br>
 2 files changed, 51 insertions(+)<br>
 create mode 100644 testsuites/psxtests/psxhdrs/poll/poll.c<br>
<br>
diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am<br>
index a2b04caf33..5948998ce0 100644<br>
--- a/testsuites/psxtests/Makefile.am<br>
+++ b/testsuites/psxtests/Makefile.am<br>
@@ -1858,6 +1858,7 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \<br>
 ## lib_a_SOURCES += psxhdrs/sys/resource/getrlimit.c     See ticket #3653<br>
 ## lib_a_SOURCES += psxhdrs/sys/resource/setpriority.c   See ticket #3654<br>
 ## lib_a_SOURCES += psxhdrs/sys/resource/setrlimit.c     See ticket #3655<br>
+## lib_a_SOURCES += psxhdrs/poll/poll.c                  See ticket #3657<br>
 endif<br>
<br>
 rtems_tests_PROGRAMS = $(psx_tests)<br>
diff --git a/testsuites/psxtests/psxhdrs/poll/poll.c b/testsuites/psxtests/psxhdrs/poll/poll.c<br>
new file mode 100644<br>
index 0000000000..368fe248dd<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/poll/poll.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ *  @file<br>
+ *  @brief poll() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2018 Marçal Comajoan Cara<br>
+ *<br>
+ * Redistribution and use in source and binary forms, with or without<br>
+ * modification, are permitted provided that the following conditions<br>
+ * are met:<br>
+ * 1. Redistributions of source code must retain the above copyright<br>
+ *    notice, this list of conditions and the following disclaimer.<br>
+ * 2. Redistributions in binary form must reproduce the above copyright<br>
+ *    notice, this list of conditions and the following disclaimer in the<br>
+ *    documentation and/or other materials provided with the distribution.<br>
+ *<br>
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"<br>
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE<br>
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE<br>
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE<br>
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR<br>
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF<br>
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS<br>
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN<br>
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)<br>
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE<br>
+ * POSSIBILITY OF SUCH DAMAGE.<br>
+ */<br>
+<br>
+#ifdef HAVE_CONFIG_H<br>
+#include "config.h"<br>
+#endif<br>
+<br>
+#include <poll.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+  struct pollfd fds[2];<br>
+  int timeout_msecs = 0;<br>
+  int result;<br>
+<br>
+  result = poll( fds, 2, timeout_msecs );<br>
+<br>
+  return result;<br>
+}<br>
-- <br>
2.19.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div>