mirror of git://sourceware.org/git/glibc.git
Update.
1998-12-07 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/speed.c (cfsetispeed): Make a real function. Don't set speed is SPEED parameter is zero since this means set it to the output speed. * version.h (VERSION): Bump to 2.0.106. 1998-12-07 12:06 Ulrich Drepper <drepper@cygnus.com> * po/de.po: Update from translation team. * po/ko.po: Likewise. 1998-12-07 Richard Henderson <rth@cygnus.com> * sysdeps/unix/sysv/linux/alpha/select.S: Save a4 through both paths.
This commit is contained in:
parent
c882585fc8
commit
5470bc9f78
18
ChangeLog
18
ChangeLog
|
@ -1,3 +1,21 @@
|
||||||
|
1998-12-07 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/speed.c (cfsetispeed): Make a real
|
||||||
|
function. Don't set speed is SPEED parameter is zero since this
|
||||||
|
means set it to the output speed.
|
||||||
|
|
||||||
|
* version.h (VERSION): Bump to 2.0.106.
|
||||||
|
|
||||||
|
1998-12-07 12:06 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* po/de.po: Update from translation team.
|
||||||
|
* po/ko.po: Likewise.
|
||||||
|
|
||||||
|
1998-12-07 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/select.S: Save a4 through
|
||||||
|
both paths.
|
||||||
|
|
||||||
1998-12-05 Roland McGrath <roland@baalperazim.frob.com>
|
1998-12-05 Roland McGrath <roland@baalperazim.frob.com>
|
||||||
|
|
||||||
* sysdeps/mach/hurd/pselect.c: New file.
|
* sysdeps/mach/hurd/pselect.c: New file.
|
||||||
|
|
|
@ -50,6 +50,11 @@ LEAF(SELECT, 64)
|
||||||
.prologue 1
|
.prologue 1
|
||||||
|
|
||||||
ldl t0, __libc_missing_axp_tv64
|
ldl t0, __libc_missing_axp_tv64
|
||||||
|
|
||||||
|
/* Save timeout early, since we'll need to recover this after
|
||||||
|
the system call. */
|
||||||
|
stq a4, 48(sp)
|
||||||
|
|
||||||
bne t0, $do32
|
bne t0, $do32
|
||||||
|
|
||||||
/* Save arguments in case we do need to fall back. */
|
/* Save arguments in case we do need to fall back. */
|
||||||
|
@ -57,7 +62,6 @@ LEAF(SELECT, 64)
|
||||||
stq a1, 16(sp)
|
stq a1, 16(sp)
|
||||||
stq a2, 24(sp)
|
stq a2, 24(sp)
|
||||||
stq a3, 32(sp)
|
stq a3, 32(sp)
|
||||||
stq a4, 48(sp)
|
|
||||||
|
|
||||||
ldi v0, SYS_ify(select)
|
ldi v0, SYS_ify(select)
|
||||||
callsys
|
callsys
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* `struct termios' speed frobnication functions. Linux version.
|
/* `struct termios' speed frobnication functions. Linux version.
|
||||||
Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
|
Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -54,5 +54,26 @@ cfsetospeed (termios_p, speed)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the input baud rate stored in *TERMIOS_P to SPEED.
|
/* Set the input baud rate stored in *TERMIOS_P to SPEED.
|
||||||
For Linux there is no difference between input and output speed. */
|
Although for Linux there is no difference between input and output
|
||||||
strong_alias (cfsetospeed, cfsetispeed);
|
speed, the numerical 0 is a special case for the input baud rate. It
|
||||||
|
should set the input baud rate to the output baud rate. */
|
||||||
|
int
|
||||||
|
cfsetispeed (termios_p, speed)
|
||||||
|
struct termios *termios_p;
|
||||||
|
speed_t speed;
|
||||||
|
{
|
||||||
|
if ((speed & ~CBAUD) != 0
|
||||||
|
&& (speed < B57600 || speed > B460800))
|
||||||
|
{
|
||||||
|
__set_errno (EINVAL);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (speed != 0)
|
||||||
|
{
|
||||||
|
termios_p->c_cflag &= ~(CBAUD | CBAUDEX);
|
||||||
|
termios_p->c_cflag |= speed;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue