Date: Fri, 7 May 2021 00:54:49 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 075f27cf4a8f - stable/12 - ioccom: define ioctl cmd value that can never be valid Message-ID: <202105070054.1470snf1065814@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=075f27cf4a8ffd8d2189c40614edda074de5a6e8 commit 075f27cf4a8ffd8d2189c40614edda074de5a6e8 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-04-22 19:40:08 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-05-07 00:44:08 +0000 ioccom: define ioctl cmd value that can never be valid (cherry picked from commit 619fe095861274576a2cb45628076968051b1585) --- sys/sys/ioccom.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/sys/ioccom.h b/sys/sys/ioccom.h index 3e5f7200fb1a..f7e9fa12a960 100644 --- a/sys/sys/ioccom.h +++ b/sys/sys/ioccom.h @@ -73,6 +73,9 @@ #define IOCPARM_IVAL(x) ((int)(intptr_t)(void *)*(caddr_t *)(void *)(x)) #endif +#define _IOC_INVALID (_IOC_VOID|_IOC_INOUT) /* Never valid cmd value, + use as filler */ + #else #include <sys/cdefs.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105070054.1470snf1065814>