Deleted Added
full compact
tty.c (184522) tty.c (184771)
1/*-
2 * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Portions of this software were developed under sponsorship from Snow
6 * B.V., the Netherlands.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Portions of this software were developed under sponsorship from Snow
6 * B.V., the Netherlands.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/kern/tty.c 184522 2008-11-01 13:40:46Z ed $");
31__FBSDID("$FreeBSD: head/sys/kern/tty.c 184771 2008-11-08 20:40:39Z ed $");
32
33#include "opt_compat.h"
34
35#include <sys/param.h>
36#include <sys/conf.h>
37#include <sys/cons.h>
38#include <sys/fcntl.h>
39#include <sys/file.h>

--- 757 unchanged lines hidden (view full) ---

797 return (ENOIOCTL);
798}
799
800static int
801ttydevsw_defparam(struct tty *tp, struct termios *t)
802{
803
804 /* Use a fake baud rate, we're not a real device. */
32
33#include "opt_compat.h"
34
35#include <sys/param.h>
36#include <sys/conf.h>
37#include <sys/cons.h>
38#include <sys/fcntl.h>
39#include <sys/file.h>

--- 757 unchanged lines hidden (view full) ---

797 return (ENOIOCTL);
798}
799
800static int
801ttydevsw_defparam(struct tty *tp, struct termios *t)
802{
803
804 /* Use a fake baud rate, we're not a real device. */
805 t->c_ispeed = t->c_ospeed = TTYDEF_SPEED_PSEUDO;
805 t->c_ispeed = t->c_ospeed = TTYDEF_SPEED;
806
807 return (0);
808}
809
810static int
811ttydevsw_defmodem(struct tty *tp, int sigon, int sigoff)
812{
813

--- 1212 unchanged lines hidden ---
806
807 return (0);
808}
809
810static int
811ttydevsw_defmodem(struct tty *tp, int sigon, int sigoff)
812{
813

--- 1212 unchanged lines hidden ---