Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/common Make LINUX_FIOCLEX and LINUX_FIONCLE...



details:   https://anonhg.NetBSD.org/src/rev/3d628bd3b2fb
branches:  trunk
changeset: 1026416:3d628bd3b2fb
user:      pho <pho%NetBSD.org@localhost>
date:      Tue Nov 23 17:54:08 2021 +0000

description:
Make LINUX_FIOCLEX and LINUX_FIONCLEX work

These ioctls were declared in linux_termios.h but were not actually
handled.

diffstat:

 sys/compat/linux/common/linux_termios.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r fbf02c8a8dbc -r 3d628bd3b2fb sys/compat/linux/common/linux_termios.c
--- a/sys/compat/linux/common/linux_termios.c   Tue Nov 23 02:49:55 2021 +0000
+++ b/sys/compat/linux/common/linux_termios.c   Tue Nov 23 17:54:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_termios.c,v 1.38 2019/08/23 12:09:17 maxv Exp $  */
+/*     $NetBSD: linux_termios.c,v 1.39 2021/11/23 17:54:08 pho Exp $   */
 
 /*-
  * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_termios.c,v 1.38 2019/08/23 12:09:17 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_termios.c,v 1.39 2021/11/23 17:54:08 pho Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ptm.h"
@@ -276,6 +276,12 @@
        case LINUX_TIOCSPGRP:
                SCARG(&ia, com) = TIOCSPGRP;
                break;
+       case LINUX_FIOCLEX:
+               SCARG(&ia, com) = FIOCLEX;
+               break;
+       case LINUX_FIONCLEX:
+               SCARG(&ia, com) = FIONCLEX;
+               break;
        case LINUX_FIONREAD:
                SCARG(&ia, com) = FIONREAD;
                break;



Home | Main Index | Thread Index | Old Index