Deleted Added
full compact
ibcs2_ioctl.c (115684) ibcs2_ioctl.c (130892)
1/* $NetBSD: ibcs2_ioctl.c,v 1.6 1995/03/14 15:12:28 scottb Exp $ */
2
3/*
4 * Copyright (c) 1994, 1995 Scott Bartram
5 * All rights reserved.
6 *
7 * based on compat/sunos/sun_ioctl.c
8 *

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/* $NetBSD: ibcs2_ioctl.c,v 1.6 1995/03/14 15:12:28 scottb Exp $ */
2
3/*
4 * Copyright (c) 1994, 1995 Scott Bartram
5 * All rights reserved.
6 *
7 * based on compat/sunos/sun_ioctl.c
8 *

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_ioctl.c 115684 2003-06-02 06:48:51Z obrien $");
30__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_ioctl.c 130892 2004-06-21 22:57:16Z phk $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/consio.h>
35#include <sys/fcntl.h>
36#include <sys/file.h>
37#include <sys/filedesc.h>
38#include <sys/filio.h>

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

52#include <i386/ibcs2/ibcs2_ioctl.h>
53
54static void stios2btios(struct ibcs2_termios *, struct termios *);
55static void btios2stios(struct termios *, struct ibcs2_termios *);
56static void stios2stio(struct ibcs2_termios *, struct ibcs2_termio *);
57static void stio2stios(struct ibcs2_termio *, struct ibcs2_termios *);
58
59
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/consio.h>
35#include <sys/fcntl.h>
36#include <sys/file.h>
37#include <sys/filedesc.h>
38#include <sys/filio.h>

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

52#include <i386/ibcs2/ibcs2_ioctl.h>
53
54static void stios2btios(struct ibcs2_termios *, struct termios *);
55static void btios2stios(struct termios *, struct ibcs2_termios *);
56static void stios2stio(struct ibcs2_termios *, struct ibcs2_termio *);
57static void stio2stios(struct ibcs2_termio *, struct ibcs2_termios *);
58
59
60#ifndef BURN_BRIDGES
60int
61ibcs2_gtty(struct thread *td, struct ibcs2_gtty_args *args)
62{
63 struct ioctl_args ioctl_arg;
64
65 ioctl_arg.fd = args->fd;
66 ioctl_arg.com = TIOCGETC;
67 ioctl_arg.data = (caddr_t)args->buf;

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

75 struct ioctl_args ioctl_arg;
76
77 ioctl_arg.fd = args->fd;
78 ioctl_arg.com = TIOCSETC;
79 ioctl_arg.data = (caddr_t)args->buf;
80
81 return ioctl(td, &ioctl_arg);
82}
61int
62ibcs2_gtty(struct thread *td, struct ibcs2_gtty_args *args)
63{
64 struct ioctl_args ioctl_arg;
65
66 ioctl_arg.fd = args->fd;
67 ioctl_arg.com = TIOCGETC;
68 ioctl_arg.data = (caddr_t)args->buf;

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

76 struct ioctl_args ioctl_arg;
77
78 ioctl_arg.fd = args->fd;
79 ioctl_arg.com = TIOCSETC;
80 ioctl_arg.data = (caddr_t)args->buf;
81
82 return ioctl(td, &ioctl_arg);
83}
84#endif /* BURN BRIDGES */
83
84
85/*
86 * iBCS2 ioctl calls.
87 */
88
89static struct speedtab sptab[] = {
90 { 0, 0 },

--- 608 unchanged lines hidden ---
85
86
87/*
88 * iBCS2 ioctl calls.
89 */
90
91static struct speedtab sptab[] = {
92 { 0, 0 },

--- 608 unchanged lines hidden ---