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 *
--- 11 unchanged lines hidden (view full) ---
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_ioctl.c 89319 2002-01-14 00:13:45Z alfred $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/consio.h>
34#include <sys/fcntl.h>
35#include <sys/file.h>
36#include <sys/filedesc.h>
--- 510 unchanged lines hidden (view full) ---
547 case IBCS2_JWINSIZE: /* Unix to Jerq I/O control */
548 {
549 struct ibcs2_jwinsize {
550 char bytex, bytey;
551 short bitx, bity;
552 } ibcs2_jwinsize;
553
554 PROC_LOCK(p);
555 ibcs2_jwinsize.bytex = 80;
556 /* p->p_session->s_ttyp->t_winsize.ws_col; XXX */
557 ibcs2_jwinsize.bytey = 25;
558 /* p->p_session->s_ttyp->t_winsize.ws_row; XXX */
559 ibcs2_jwinsize.bitx =
560 p->p_session->s_ttyp->t_winsize.ws_xpixel;
561 ibcs2_jwinsize.bity =
562 p->p_session->s_ttyp->t_winsize.ws_ypixel;
563 PROC_UNLOCK(p);
564 error = copyout((caddr_t)&ibcs2_jwinsize, SCARG(uap, data),
565 sizeof(ibcs2_jwinsize));
566 break;
567 }
568
569 /* keyboard and display ioctl's -- type 'K' */
570 case IBCS2_KDGKBMODE: /* get keyboard translation mode */
--- 122 unchanged lines hidden ---
2
3/*
4 * Copyright (c) 1994, 1995 Scott Bartram
5 * All rights reserved.
6 *
7 * based on compat/sunos/sun_ioctl.c
8 *
--- 11 unchanged lines hidden (view full) ---
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_ioctl.c 89319 2002-01-14 00:13:45Z alfred $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/consio.h>
34#include <sys/fcntl.h>
35#include <sys/file.h>
36#include <sys/filedesc.h>
--- 510 unchanged lines hidden (view full) ---
547 case IBCS2_JWINSIZE: /* Unix to Jerq I/O control */
548 {
549 struct ibcs2_jwinsize {
550 char bytex, bytey;
551 short bitx, bity;
552 } ibcs2_jwinsize;
553
554 PROC_LOCK(p);
555 ibcs2_jwinsize.bytex = 80;
556 /* p->p_session->s_ttyp->t_winsize.ws_col; XXX */
557 ibcs2_jwinsize.bytey = 25;
558 /* p->p_session->s_ttyp->t_winsize.ws_row; XXX */
559 ibcs2_jwinsize.bitx =
560 p->p_session->s_ttyp->t_winsize.ws_xpixel;
561 ibcs2_jwinsize.bity =
562 p->p_session->s_ttyp->t_winsize.ws_ypixel;
563 PROC_UNLOCK(p);
564 error = copyout((caddr_t)&ibcs2_jwinsize, SCARG(uap, data),
565 sizeof(ibcs2_jwinsize));
566 break;
567 }
568
569 /* keyboard and display ioctl's -- type 'K' */
570 case IBCS2_KDGKBMODE: /* get keyboard translation mode */
--- 122 unchanged lines hidden ---