From ac8dee6952df0b0fd697d8acc6d85f0bbd0d3c8d Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sat, 17 Dec 2011 15:39:14 +0000 Subject: [PATCH] move GETS_*ECHO* defintions from libkern.h to cons.h MFC after: 2 months --- sys/sys/cons.h | 5 +++++ sys/sys/libkern.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/sys/cons.h b/sys/sys/cons.h index 79e2574895fc..8442bf3a76e9 100644 --- a/sys/sys/cons.h +++ b/sys/sys/cons.h @@ -86,6 +86,11 @@ struct consdev { #define CN_FLAG_NODEBUG 0x00000001 /* Not supported with debugger. */ #define CN_FLAG_NOAVAIL 0x00000002 /* Temporarily not available. */ +/* Visibility of characters in cngets() */ +#define GETS_NOECHO 0 /* Disable echoing of characters. */ +#define GETS_ECHO 1 /* Enable echoing of characters. */ +#define GETS_ECHOPASS 2 /* Print a * for every character. */ + #ifdef _KERNEL extern struct msgbuf consmsgbuf; /* Message buffer for constty. */ diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h index 65405d049b3e..b58f9ff75dd7 100644 --- a/sys/sys/libkern.h +++ b/sys/sys/libkern.h @@ -188,9 +188,4 @@ strrchr(const char *p, int ch) #define FNM_IGNORECASE FNM_CASEFOLD #define FNM_FILE_NAME FNM_PATHNAME -/* Visibility of characters in gets() */ -#define GETS_NOECHO 0 /* Disable echoing of characters. */ -#define GETS_ECHO 1 /* Enable echoing of characters. */ -#define GETS_ECHOPASS 2 /* Print a * for every character. */ - #endif /* !_SYS_LIBKERN_H_ */