<div dir="ltr"><div>Again this is one not suppported by RTEMS. I filed a ticket and referenced it.</div><div><br></div><div>Also, this needs the license updated. Please. :)<br></div><div><br></div><div>Merged with the ticket addressed.<br></div><div><br></div><div>Thanks<br></div><div><br></div><div>--joel<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 12, 2018 at 8:25 AM Abhimanyu Raghuvanshi <<a href="mailto:abhimanyuraghuvanshi29@gmail.com">abhimanyuraghuvanshi29@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"><div dir="ltr"><div dir="ltr">Patch Attached<br>==========================<br><div>From 855ee6828d3ee171df52308e399749fc9bee42ed Mon Sep 17 00:00:00 2001</div><div>From: ABR290B <<a href="mailto:abhimanyuraghuvanshi29@gmail.com" target="_blank">abhimanyuraghuvanshi29@gmail.com</a>></div><div>Date: Wed, 12 Dec 2018 19:53:35 +0530</div><div>Subject: [PATCH] POSIX Signature Test for utmpx.h (GCI2018)</div><div><br></div><div>---</div><div> testsuites/psxtests/Makefile.am | 9 ++++-</div><div> testsuites/psxtests/psxhdrs/utmpx/endutxent.c | 34 ++++++++++++++++++</div><div> testsuites/psxtests/psxhdrs/utmpx/getutxent.c | 34 ++++++++++++++++++</div><div> testsuites/psxtests/psxhdrs/utmpx/getutxid.c | 35 +++++++++++++++++++</div><div> .../psxtests/psxhdrs/utmpx/getutxline.c | 35 +++++++++++++++++++</div><div> .../psxtests/psxhdrs/utmpx/pututxline.c | 35 +++++++++++++++++++</div><div> testsuites/psxtests/psxhdrs/utmpx/setutxent.c | 34 ++++++++++++++++++</div><div> 7 files changed, 215 insertions(+), 1 deletion(-)</div><div> create mode 100644 testsuites/psxtests/psxhdrs/utmpx/endutxent.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/utmpx/getutxent.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/utmpx/getutxid.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/utmpx/getutxline.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/utmpx/pututxline.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/utmpx/setutxent.c</div><div><br></div><div>diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am</div><div>index 3dd8fe0139..5062857855 100644</div><div>--- a/testsuites/psxtests/Makefile.am</div><div>+++ b/testsuites/psxtests/Makefile.am</div><div>@@ -1815,7 +1815,14 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \</div><div> <span style="white-space:pre-wrap"> </span>psxhdrs/setjmp/longjmp.c \</div><div> <span style="white-space:pre-wrap"> </span>psxhdrs/setjmp/setjmp.c \</div><div> <span style="white-space:pre-wrap"> </span>psxhdrs/setjmp/siglongjmp.c \</div><div>-<span style="white-space:pre-wrap"> </span>psxhdrs/setjmp/sigsetjmp.c</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/setjmp/sigsetjmp.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/utmpx/setutxent.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/utmpx/endutxent.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/utmpx/getutxent.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/utmpx/getutxid.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/utmpx/getutxline.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/utmpx/pututxline.c</div><div>+<span style="white-space:pre-wrap"> </span></div><div> </div><div> ## Not supported by RTEMS, but POSIX API Compliance tests exist.</div><div> ## lib_a_SOURCES += psxhdrs/ulimit/ulimit.c</div><div>diff --git a/testsuites/psxtests/psxhdrs/utmpx/endutxent.c b/testsuites/psxtests/psxhdrs/utmpx/endutxent.c</div><div>new file mode 100644</div><div>index 0000000000..9dd54bccda</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/utmpx/endutxent.c</div><div>@@ -0,0 +1,34 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief endutxent() API Conformance Test</div><div>+ */</div><div>+</div><div>+/*</div><div>+ * COPYRIGHT (c) 2018.</div><div>+ * Abhimanyu Raghuvanshi</div><div>+ *</div><div>+ * Permission to use, copy, modify, and/or distribute this software</div><div>+ * for any purpose with or without fee is hereby granted.</div><div>+ * </div><div>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL</div><div>+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED</div><div>+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR</div><div>+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES</div><div>+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,</div><div>+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,</div><div>+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</div><div>+ */</div><div>+</div><div>+#ifdef HAVE_CONFIG_H</div><div>+#include "config.h"</div><div>+#endif</div><div>+</div><div>+#include <utmpx.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ endutxent();</div><div>+ return (0);</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/utmpx/getutxent.c b/testsuites/psxtests/psxhdrs/utmpx/getutxent.c</div><div>new file mode 100644</div><div>index 0000000000..25a80c4810</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/utmpx/getutxent.c</div><div>@@ -0,0 +1,34 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief getutxent() API Conformance Test</div><div>+ */</div><div>+</div><div>+/*</div><div>+ * COPYRIGHT (c) 2018.</div><div>+ * Abhimanyu Raghuvanshi</div><div>+ *</div><div>+ * Permission to use, copy, modify, and/or distribute this software</div><div>+ * for any purpose with or without fee is hereby granted.</div><div>+ * </div><div>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL</div><div>+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED</div><div>+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR</div><div>+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES</div><div>+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,</div><div>+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,</div><div>+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</div><div>+ */</div><div>+</div><div>+#ifdef HAVE_CONFIG_H</div><div>+#include "config.h"</div><div>+#endif</div><div>+</div><div>+#include <utmpx.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ struct utmpx *a = getutxent();</div><div>+ return !a;</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/utmpx/getutxid.c b/testsuites/psxtests/psxhdrs/utmpx/getutxid.c</div><div>new file mode 100644</div><div>index 0000000000..60fd67008c</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/utmpx/getutxid.c</div><div>@@ -0,0 +1,35 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief getutxid() API Conformance Test</div><div>+ */</div><div>+</div><div>+/*</div><div>+ * COPYRIGHT (c) 2018.</div><div>+ * Abhimanyu Raghuvanshi</div><div>+ *</div><div>+ * Permission to use, copy, modify, and/or distribute this software</div><div>+ * for any purpose with or without fee is hereby granted.</div><div>+ * </div><div>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL</div><div>+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED</div><div>+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR</div><div>+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES</div><div>+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,</div><div>+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,</div><div>+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</div><div>+ */</div><div>+</div><div>+#ifdef HAVE_CONFIG_H</div><div>+#include "config.h"</div><div>+#endif</div><div>+</div><div>+#include <utmpx.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ const struct utmpx b = {0};</div><div>+ struct utmpx *a = getutxid(&b);</div><div>+ return !a;</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/utmpx/getutxline.c b/testsuites/psxtests/psxhdrs/utmpx/getutxline.c</div><div>new file mode 100644</div><div>index 0000000000..11e17f06b3</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/utmpx/getutxline.c</div><div>@@ -0,0 +1,35 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief getutxline() API Conformance Test</div><div>+ */</div><div>+</div><div>+/*</div><div>+ * COPYRIGHT (c) 2018.</div><div>+ * Abhimanyu Raghuvanshi</div><div>+ *</div><div>+ * Permission to use, copy, modify, and/or distribute this software</div><div>+ * for any purpose with or without fee is hereby granted.</div><div>+ * </div><div>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL</div><div>+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED</div><div>+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR</div><div>+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES</div><div>+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,</div><div>+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,</div><div>+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</div><div>+ */</div><div>+</div><div>+#ifdef HAVE_CONFIG_H</div><div>+#include "config.h"</div><div>+#endif</div><div>+</div><div>+#include <utmpx.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ const struct utmpx b = {0};</div><div>+ struct utmpx *a = getutxline(&b);</div><div>+ return !a;</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/utmpx/pututxline.c b/testsuites/psxtests/psxhdrs/utmpx/pututxline.c</div><div>new file mode 100644</div><div>index 0000000000..7613dc8e36</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/utmpx/pututxline.c</div><div>@@ -0,0 +1,35 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief pututxline() API Conformance Test</div><div>+ */</div><div>+</div><div>+/*</div><div>+ * COPYRIGHT (c) 2018.</div><div>+ * Abhimanyu Raghuvanshi</div><div>+ *</div><div>+ * Permission to use, copy, modify, and/or distribute this software</div><div>+ * for any purpose with or without fee is hereby granted.</div><div>+ * </div><div>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL</div><div>+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED</div><div>+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR</div><div>+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES</div><div>+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,</div><div>+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,</div><div>+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</div><div>+ */</div><div>+</div><div>+#ifdef HAVE_CONFIG_H</div><div>+#include "config.h"</div><div>+#endif</div><div>+</div><div>+#include <utmpx.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ const struct utmpx b = {0};</div><div>+ struct utmpx *a = pututxline(&b);</div><div>+ return !a;</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/utmpx/setutxent.c b/testsuites/psxtests/psxhdrs/utmpx/setutxent.c</div><div>new file mode 100644</div><div>index 0000000000..6665aff7fc</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/utmpx/setutxent.c</div><div>@@ -0,0 +1,34 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief setutxent() API Conformance Test</div><div>+ */</div><div>+</div><div>+/*</div><div>+ * COPYRIGHT (c) 2018.</div><div>+ * Abhimanyu Raghuvanshi</div><div>+ *</div><div>+ * Permission to use, copy, modify, and/or distribute this software</div><div>+ * for any purpose with or without fee is hereby granted.</div><div>+ * </div><div>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL</div><div>+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED</div><div>+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR</div><div>+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES</div><div>+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,</div><div>+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,</div><div>+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</div><div>+ */</div><div>+</div><div>+#ifdef HAVE_CONFIG_H</div><div>+#include "config.h"</div><div>+#endif</div><div>+</div><div>+#include <utmpx.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ setutxent();</div><div>+ return (0);</div><div>+}</div><div>\ No newline at end of file</div><div>-- </div><div>2.19.1.windows.1</div><div>===================================</div><div><br></div><div><br><br></div><div><div dir="ltr" class="gmail-m_-4275744811854924892gmail_signature"><div dir="ltr"><div><br></div><div><font face="arial black, sans-serif">ABR</font></div></div></div></div></div></div>
_______________________________________________<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>