From 43a4bf11fa3d07c67784c62a7dfc13471c7f052b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 10 Feb 2002 18:33:10 +0000 Subject: 2002-02-10 Marcus Brinkmann * 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. --- term/users.c | 1 + 1 file changed, 1 insertion(+) (limited to 'term/users.c') 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; -- cgit v1.2.3