diff options
author | avg <avg@FreeBSD.org> | 2011-12-17 15:16:54 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2011-12-17 15:16:54 +0000 |
commit | 53f09b7dafb734fd1c82af5d5e7415c7380c60db (patch) | |
tree | ec0a518e9e619f1d03d7c942ce15d3f80c2e2f47 /sys/geom | |
parent | d062f5e7d808af770ca939a38c47ac94d6846449 (diff) | |
download | FreeBSD-src-53f09b7dafb734fd1c82af5d5e7415c7380c60db.zip FreeBSD-src-53f09b7dafb734fd1c82af5d5e7415c7380c60db.tar.gz |
introduce cngets, a method for kernel to read a string from console
This is intended as a replacement for libkern's gets and mostly borrows
its implementation. It uses cngrab/cnungrab to delimit kernel's access
to console input.
Note: libkern's gets obviously doesn't share any bits of implementation
iwth libc's gets. They also have different APIs and the former doesn't
have the overflow problems of the latter.
Inspired by: bde
MFC after: 2 months
Diffstat (limited to 'sys/geom')
0 files changed, 0 insertions, 0 deletions