diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-02-10 18:33:10 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-02-10 18:33:10 +0000 |
commit | 43a4bf11fa3d07c67784c62a7dfc13471c7f052b (patch) | |
tree | c690e14e1967dbbbb33a4ae1a92c65201991e558 /term/users.c | |
parent | 15395557e2aaf3ec9c86ba15d14e0c08a9a86405 (diff) |
2002-02-10 Marcus Brinkmann <marcus@gnu.org>
* term.h: Declare rdev.
* main.c (options): New variable.
(parse_opt): Handle case `n' to set rdev number.
Also return EINVAL if terminal type is invalid.
* users.c (trivfs_modify_stat): Set ST->st_rdev to global rdev.
Diffstat (limited to 'term/users.c')
-rw-r--r-- | term/users.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/term/users.c b/term/users.c index 0d3297b2..5597a522 100644 --- a/term/users.c +++ b/term/users.c @@ -341,6 +341,7 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st) st->st_fstype = FSTYPE_TERM; st->st_fsid = getpid (); st->st_ino = 0; + st->st_rdev = rdev; st->st_mode = term_mode; st->st_uid = term_owner; st->st_gid = term_group; |