<div dir="ltr"><div>RTEMS does not support this so I went ahead and filed the ticket to track adding this support.</div><div><br></div><div>Thanks.</div><div><br></div><div>--joel<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 12, 2018 at 8:16 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>=========================<br><div>From 2c4927cf98fee6818d98c95106c938a175b7bf58 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:44:40 +0530</div><div>Subject: [PATCH] POSIX Signature Test for sys/statvfs (GCI2018)</div><div><br></div><div>---</div><div> testsuites/psxtests/Makefile.am | 4 ++-</div><div> .../psxtests/psxhdrs/statvfs/fstatvfs.c | 36 +++++++++++++++++++</div><div> testsuites/psxtests/psxhdrs/statvfs/statvfs.c | 36 +++++++++++++++++++</div><div> .../psxtests/psxhdrs/sys/statvfs/fstatvfs.c | 36 +++++++++++++++++++</div><div> .../psxtests/psxhdrs/sys/statvfs/statvfs.c | 36 +++++++++++++++++++</div><div> 5 files changed, 147 insertions(+), 1 deletion(-)</div><div> create mode 100644 testsuites/psxtests/psxhdrs/statvfs/fstatvfs.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/statvfs/statvfs.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/sys/statvfs/fstatvfs.c</div><div> create mode 100644 testsuites/psxtests/psxhdrs/sys/statvfs/statvfs.c</div><div><br></div><div>diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am</div><div>index 3dd8fe0139..f7989f1c7c 100644</div><div>--- a/testsuites/psxtests/Makefile.am</div><div>+++ b/testsuites/psxtests/Makefile.am</div><div>@@ -1815,7 +1815,9 @@ 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/sys/statvfs/statvfs.c \</div><div>+<span style="white-space:pre-wrap"> </span>psxhdrs/sys/statvfs/fstatvfs.c </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/statvfs/fstatvfs.c b/testsuites/psxtests/psxhdrs/statvfs/fstatvfs.c</div><div>new file mode 100644</div><div>index 0000000000..a71fce1d7d</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/statvfs/fstatvfs.c</div><div>@@ -0,0 +1,36 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief fstatvfs() 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 <sys/statvfs.h></div><div>+#include <sys/types.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ int a = 0;</div><div>+ struct statvfs b = {0,0,0,0,0};</div><div>+ return fstatvfs(a, &b);</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/statvfs/statvfs.c b/testsuites/psxtests/psxhdrs/statvfs/statvfs.c</div><div>new file mode 100644</div><div>index 0000000000..cabc7ff2e5</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/statvfs/statvfs.c</div><div>@@ -0,0 +1,36 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief statvfs() 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 <sys/statvfs.h></div><div>+#include <sys/types.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ const char a = 1;</div><div>+ struct statvfs b = {0,0,0,0,0};</div><div>+ return statvfs(&a, &b);</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/sys/statvfs/fstatvfs.c b/testsuites/psxtests/psxhdrs/sys/statvfs/fstatvfs.c</div><div>new file mode 100644</div><div>index 0000000000..a71fce1d7d</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/sys/statvfs/fstatvfs.c</div><div>@@ -0,0 +1,36 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief fstatvfs() 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 <sys/statvfs.h></div><div>+#include <sys/types.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ int a = 0;</div><div>+ struct statvfs b = {0,0,0,0,0};</div><div>+ return fstatvfs(a, &b);</div><div>+}</div><div>\ No newline at end of file</div><div>diff --git a/testsuites/psxtests/psxhdrs/sys/statvfs/statvfs.c b/testsuites/psxtests/psxhdrs/sys/statvfs/statvfs.c</div><div>new file mode 100644</div><div>index 0000000000..cabc7ff2e5</div><div>--- /dev/null</div><div>+++ b/testsuites/psxtests/psxhdrs/sys/statvfs/statvfs.c</div><div>@@ -0,0 +1,36 @@</div><div>+/**</div><div>+ * @file</div><div>+ * @brief statvfs() 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 <sys/statvfs.h></div><div>+#include <sys/types.h></div><div>+</div><div>+int test(void);</div><div>+</div><div>+int test(void)</div><div>+{</div><div>+ const char a = 1;</div><div>+ struct statvfs b = {0,0,0,0,0};</div><div>+ return statvfs(&a, &b);</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_8124567111655093548gmail_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>