summaryrefslogtreecommitdiffstats
path: root/libutil/openpty.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-29 04:01:23 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-29 04:01:23 +0000
commita59b354f62710a795eb1675bab89047ad1618e3b (patch)
treed212209de762886835ae63c9d1dcb161628de6d8 /libutil/openpty.c
parent2d9da2f6be3e662889ef0e72759fe0f1a1495812 (diff)
downloaduClibc-alpine-a59b354f62710a795eb1675bab89047ad1618e3b.tar.bz2
uClibc-alpine-a59b354f62710a795eb1675bab89047ad1618e3b.tar.xz
Merge from trunk.
Diffstat (limited to 'libutil/openpty.c')
-rw-r--r--libutil/openpty.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/libutil/openpty.c b/libutil/openpty.c
index f0574474b..ac3e496ed 100644
--- a/libutil/openpty.c
+++ b/libutil/openpty.c
@@ -1,21 +1,21 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
+ Lesser General Public License for more details.
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If not,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
#include <errno.h>
#include <fcntl.h>
@@ -72,7 +72,7 @@ pts_name (int fd, char **pts, size_t buf_len)
if (! new_buf)
{
rv = -1;
- errno = ENOMEM;
+ __set_errno (ENOMEM);
break;
}
buf = new_buf;
@@ -90,8 +90,8 @@ pts_name (int fd, char **pts, size_t buf_len)
/* Create pseudo tty master slave pair and set terminal attributes
according to TERMP and WINP. Return handles for both ends in
AMASTER and ASLAVE, and return the name of the slave end in NAME. */
-int
-openpty (int *amaster, int *aslave, char *name, struct termios *termp,
+int attribute_hidden
+__openpty (int *amaster, int *aslave, char *name, struct termios *termp,
struct winsize *winp)
{
#if 0
@@ -158,3 +158,5 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
close (master);
return -1;
}
+
+strong_alias(__openpty,openpty)