diff options
author | rui zang - Sun Microsystems - Beijing China <Aaron.Zang@Sun.COM> | 2008-09-25 14:01:48 +0800 |
---|---|---|
committer | rui zang - Sun Microsystems - Beijing China <Aaron.Zang@Sun.COM> | 2008-09-25 14:01:48 +0800 |
commit | aecfc01d1bad84e66649703f7fc2926ef70b34ba (patch) | |
tree | 30d7ae76f4cff7994f216c9e89819dda18b2ae63 /usr/src/lib/libc | |
parent | f4565e39fe75b2c28258c16bc697741760935002 (diff) | |
download | illumos-gate-aecfc01d1bad84e66649703f7fc2926ef70b34ba.tar.gz |
PSARC 2006/591 Virtual Console
PSARC 2008/515 Virtual Console Update
4309501 Need additional local 'terminal'
--HG--
rename : usr/src/uts/intel/sys/kd.h => usr/src/uts/common/sys/kd.h
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r-- | usr/src/lib/libc/port/gen/ttyname.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/libc/port/gen/ttyname.c b/usr/src/lib/libc/port/gen/ttyname.c index 24f2725199..01a4ea8cb7 100644 --- a/usr/src/lib/libc/port/gen/ttyname.c +++ b/usr/src/lib/libc/port/gen/ttyname.c @@ -124,6 +124,7 @@ static const entry_t dev_dir = static const entry_t def_srch_dirs[] = { /* default search list */ { "/dev/pts", MATCH_ALL }, + { "/dev/vt", MATCH_ALL }, { "/dev/term", MATCH_ALL }, { "/dev/zcons", MATCH_ALL }, { NULL, 0 } @@ -537,6 +538,9 @@ srch_dir(const entry_t path, /* current path */ if (stat64(file_name, &tsb) < 0) continue; + if (strcmp(file_name, "/dev/vt/active") == 0) + continue; + /* * skip "/dev/syscon" because it may be an invalid link after * single user mode. |