Return a more sensible errno when someone is trying to set the unsupported

mdmbuf option.
This commit is contained in:
leo 1995-12-03 14:32:39 +00:00
parent 99e494a984
commit 70875fa68f
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.10 1995/11/30 00:57:58 jtc Exp $ */
/* $NetBSD: zs.c,v 1.11 1995/12/03 14:32:39 leo Exp $ */
/*
* Copyright (c) 1995 L. Weppelman (Atari modifications)
@ -824,7 +824,7 @@ struct proc *p;
if(userbits & TIOCFLAG_SOFTCAR && userbits & TIOCFLAG_CLOCAL)
return(EINVAL);
if(userbits & TIOCFLAG_MDMBUF) /* don't support this (yet?) */
return(ENXIO);
return(ENODEV);
s = splzs();
if((userbits & TIOCFLAG_SOFTCAR)) {