<div dir="ltr">Thank you.<div><br></div><div>This is now pushed.</div><div><br></div><div>Does a ticket need to be updated for this? I am having trouble remembering </div><div>how we tracked what .h files still needed work.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 6, 2019 at 2:02 PM Jacob Shin <<a href="mailto:jacobshin313@gmail.com">jacobshin313@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">---<br>
testsuites/psxtests/Makefile.am | 11 ++++<br>
.../psxtests/psxhdrs/termios/cfgetispeed.c | 50 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/cfgetospeed.c | 50 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/cfsetispeed.c | 50 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/cfsetospeed.c | 50 ++++++++++++++++++<br>
testsuites/psxtests/psxhdrs/termios/tcdrain.c | 49 ++++++++++++++++++<br>
testsuites/psxtests/psxhdrs/termios/tcflow.c | 50 ++++++++++++++++++<br>
testsuites/psxtests/psxhdrs/termios/tcflush.c | 50 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/tcgetattr.c | 50 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/tcgetsid.c | 49 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/tcsendbreak.c | 50 ++++++++++++++++++<br>
.../psxtests/psxhdrs/termios/tcsetattr.c | 51 +++++++++++++++++++<br>
12 files changed, 560 insertions(+)<br>
mode change 100644 => 100755 testsuites/psxtests/Makefile.am<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/cfgetispeed.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/cfgetospeed.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/cfsetispeed.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/cfsetospeed.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcdrain.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcflow.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcflush.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcgetattr.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcgetsid.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcsendbreak.c<br>
create mode 100755 testsuites/psxtests/psxhdrs/termios/tcsetattr.c<br>
<br>
diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am<br>
old mode 100644<br>
new mode 100755<br>
index 749258cc0c..e7be09a0e9<br>
--- a/testsuites/psxtests/Makefile.am<br>
+++ b/testsuites/psxtests/Makefile.am<br>
@@ -1832,6 +1832,17 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \<br>
## lib_a_SOURCES += psxhdrs/ulimit/ulimit.c<br>
## lib_a_SOURCES += psxhdrs/monetary/strfmon.c<br>
## lib_a_SOURCES += psxhdrs/monetary/strfmon_l.c<br>
+## lib_a_SOURCES += psxhdrs/termios/cfgetispeed.c<br>
+## lib_a_SOURCES += psxhdrs/termios/cfsetispeed.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcdrain.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcflush.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcgetsid.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcsetattr.c<br>
+## lib_a_SOURCES += psxhdrs/termios/cfgetospeed.c<br>
+## lib_a_SOURCES += psxhdrs/termios/cfsetospeed.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcflow.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcgetattr.c<br>
+## lib_a_SOURCES += psxhdrs/termios/tcsendbreak.c<br>
<br>
## Specific issues that tickets are tracking<br>
## lib_a_SOURCES += psxhdrs/dirent/dirfd.c See ticket #3371<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c b/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c<br>
new file mode 100755<br>
index 0000000000..4b2b88bc6d<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfgetispeed.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief cfgetispeed() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ struct termios term;<br>
+ speed_t rate;<br>
+ <br>
+ rate = cfgetispeed(&term);<br>
+<br>
+ (void) rate;<br>
+ return 0;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c b/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c<br>
new file mode 100755<br>
index 0000000000..4c55229645<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfgetospeed.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief cfgetospeed() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ struct termios term;<br>
+ speed_t rate;<br>
+ <br>
+ rate = cfgetospeed(&term);<br>
+<br>
+ (void) rate;<br>
+ return 0;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c b/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c<br>
new file mode 100755<br>
index 0000000000..3af199c5e6<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfsetispeed.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief cfsetispeed() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ struct termios term;<br>
+ speed_t speed = B0;<br>
+ <br>
+ result = cfsetispeed(&term, speed);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c b/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c<br>
new file mode 100755<br>
index 0000000000..4f2707ef6e<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/cfsetospeed.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief cfsetospeed() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ struct termios term;<br>
+ speed_t speed = B0;<br>
+ <br>
+ result = cfsetospeed(&term, speed);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcdrain.c b/testsuites/psxtests/psxhdrs/termios/tcdrain.c<br>
new file mode 100755<br>
index 0000000000..1de8862f65<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcdrain.c<br>
@@ -0,0 +1,49 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcdrain() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ int fildes = 0;<br>
+<br>
+ result = tcdrain(fildes);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcflow.c b/testsuites/psxtests/psxhdrs/termios/tcflow.c<br>
new file mode 100755<br>
index 0000000000..5b7d1dab39<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcflow.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcflow() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ int fildes = 0;<br>
+ int action = TCOOFF;<br>
+<br>
+ result = tcflow(fildes, action);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcflush.c b/testsuites/psxtests/psxhdrs/termios/tcflush.c<br>
new file mode 100755<br>
index 0000000000..4beccb89d5<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcflush.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcflush() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ int fildes = 0;<br>
+ int queue_selector = TCIFLUSH;<br>
+<br>
+ result = tcflush(fildes, queue_selector);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcgetattr.c b/testsuites/psxtests/psxhdrs/termios/tcgetattr.c<br>
new file mode 100755<br>
index 0000000000..d00336b214<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcgetattr.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcgetattr() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ int fildes = 0;<br>
+ struct termios term;<br>
+<br>
+ result = tcgetattr(fildes, &term);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcgetsid.c b/testsuites/psxtests/psxhdrs/termios/tcgetsid.c<br>
new file mode 100755<br>
index 0000000000..8700742166<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcgetsid.c<br>
@@ -0,0 +1,49 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcgetsid() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ pid_t result;<br>
+ int fildes = 0;<br>
+<br>
+ result = tcgetsid(fildes);<br>
+<br>
+ return (int) result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcsendbreak.c b/testsuites/psxtests/psxhdrs/termios/tcsendbreak.c<br>
new file mode 100755<br>
index 0000000000..7ef4de0b7f<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcsendbreak.c<br>
@@ -0,0 +1,50 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcsendbreak() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ int fildes = 0;<br>
+ int duration = 0;<br>
+<br>
+ result = tcsendbreak(fildes, duration);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/testsuites/psxtests/psxhdrs/termios/tcsetattr.c b/testsuites/psxtests/psxhdrs/termios/tcsetattr.c<br>
new file mode 100755<br>
index 0000000000..e2bd6980a9<br>
--- /dev/null<br>
+++ b/testsuites/psxtests/psxhdrs/termios/tcsetattr.c<br>
@@ -0,0 +1,51 @@<br>
+/**<br>
+ * @file<br>
+ * @brief tcsetattr() API Conformance Test<br>
+ */<br>
+<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2019 Jacob Shin<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 <termios.h><br>
+<br>
+int test( void );<br>
+<br>
+int test( void )<br>
+{<br>
+ int result;<br>
+ int fildes = 0;<br>
+ int optional_actions = 0;<br>
+ struct termios term;<br>
+<br>
+ result = tcsetattr(fildes, optional_actions, &term);<br>
+<br>
+ return result;<br>
+}<br>
\ No newline at end of file<br>
-- <br>
2.17.1<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><br>
</blockquote></div>