]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - termios/tcgetattr.c
nptl: Move pthread_attr_setinheritsched implementation into libc.
[thirdparty/glibc.git] / termios / tcgetattr.c
index d47d7e70f9e54bf739d4d81ea6ed2b658647cb3f..a111aa203b94870d5157a30de74048b8a0fbdac1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -13,7 +13,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
 #include <stddef.h>
@@ -21,9 +21,7 @@
 
 /* Put the state of FD into *TERMIOS_P.  */
 int
-__tcgetattr (fd, termios_p)
-     int fd;
-     struct termios *termios_p;
+__tcgetattr (int fd, struct termios *termios_p)
 {
   if (fd < 0)
     {
@@ -41,5 +39,5 @@ __tcgetattr (fd, termios_p)
 }
 stub_warning (tcgetattr)
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)
-#include <stub-tag.h>