[comp.os.minix] login.c for /dev/tty99, cdiffs anyone?

baron@wiesje.hobby.nl (Wim `Blue Baron' van Dorst) (05/07/91)

Hello *,

I have on my system Wiesje the virtual consoles, which implies that
my terminal on the serial ports is /dev/tty64 and /dev/tty65. I could
live with the fact that it shows up as /dev/ttyp in the utmp file,
but now that I work a lot on the terminal, and I want to do a 'talk'
to someone elsewhere, my terminal needs to be addressed properly.

Therefore I need to patch login.c (and perhaps other programs?) so that
the complete name (tty?? instead of tty?) gets registered in the utmp
file. Is there anyone who has a ready available cdiff for me, please? That
saves me the work to do it all by myself (I know I am lazy).

Met vriendelijke groeten, Wim `Blue Baron' van Dorst.
---------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319
(-:       baron@wiesje.hobby.nl           tgcpwd@urc.tue.nl       :-)
---------------------------------------------------------------------

waltje@uwalt.nl.mugnet.org (Fred 'The Rebel' van Kempen) (05/20/91)

baron@wiesje.hobby.nl (Wim `Blue Baron' van Dorst) wrote:
> Hello *,
> 
> I have on my system Wiesje the virtual consoles, which implies that
> my terminal on the serial ports is /dev/tty64 and /dev/tty65. I could
> live with the fact that it shows up as /dev/ttyp in the utmp file,
> but now that I work a lot on the terminal, and I want to do a 'talk'
> to someone elsewhere, my terminal needs to be addressed properly.
Humm.  I _do_ have "ttyp0" and such, but they are PTY's...

> Therefore I need to patch login.c (and perhaps other programs?) so that
> the complete name (tty?? instead of tty?) gets registered in the utmp
> file. Is there anyone who has a ready available cdiff for me, please? That
> saves me the work to do it all by myself (I know I am lazy).
Simple: set the _first_ minor dev of the serial lines (COM1:) to number
5, not 64.  It is silly to allocate minor devs for 64 virtual screens...

brw-------  1 bin      sys        2,  28 Apr 17  1990 PS0
brw-------  1 bin      sys        2,  29 Apr 17  1990 PS1
brw-------  1 bin      sys        2,   8 Dec  9 03:08 at0
brw-------  1 bin      sys        2, 136 May 27  1990 at0f
brw-------  1 bin      sys        2,   9 Dec  9 03:08 at1
brw-------  1 bin      sys        2, 137 May 27  1990 at1f
brw-------  1 bin      sys        7,   0 Jan 16  1990 cmos
crw--w--w-  2 bin      sys        4,   0 Dec  9 03:09 console
brw-------  1 bin      sys        2,   8 Jan  4 01:25 dosA
brw-------  1 bin      sys        2,  17 Jan  4 01:26 dosB
brw-------  1 bin      sys        3,   1 Jan  4 01:26 dosC
brw-------  1 bin      sys        2,  20 Jan  4 01:26 dosE
crw-------  1 bin      sys       10,   0 Apr 29 06:12 ether
brw-------  1 bin      sys        2,   0 Dec  9 03:07 fd0
brw-------  1 bin      sys        2, 148 Feb  6 04:43 fd0f
brw-------  1 bin      sys        2,   1 Dec  9 03:08 fd1
brw-------  1 bin      sys        2, 149 May 27  1990 fd1f
brw-------  1 bin      sys      192,   0 Feb 18 04:15 freddy
brw-------  1 bin      sys        3,   0 Dec  9 03:06 hd0
brw-------  1 bin      sys        3,   1 Dec  9 03:06 hd1
brw-------  1 bin      sys        3,   2 Dec  9 03:06 hd2
brw-------  1 bin      sys        3,   3 Dec  9 03:06 hd3
brw-------  1 bin      sys        3,   4 Dec  9 03:06 hd4
brw-------  1 bin      sys        3,   5 Dec  9 03:06 hd5
brw-------  1 bin      sys        3,   6 Dec  9 03:06 hd6
brw-------  1 bin      sys        3,   7 Dec  9 03:06 hd7
brw-------  1 bin      sys        3,   8 Dec  9 03:06 hd8
brw-------  1 bin      sys        3,   9 Dec  9 03:06 hd9
crw-------  1 bin      sys      129,   1 May 11 00:39 ip
brw-------  1 bin      sys        1,   2 Dec  9 03:10 kmem
brw-------  1 bin      sys      193,   0 Feb 18 04:00 linda
crw-------  1 lp       daemon     6,   0 Jan 16  1990 lp
brw-------  1 bin      sys        1,   1 Dec  9 03:10 mem
crw-------  1 bin      sys        8,   0 Apr 29 06:11 mouse
crw-rw-rw-  1 bin      sys        1,   3 Dec  9 03:10 null
brw-------  1 bin      sys        2,  20 Feb  6 04:44 pat0
brw-------  1 bin      sys        2,  21 Feb  6 04:44 pat1
brw-------  1 bin      sys        2,   4 Apr  6 20:26 pc0
brw-------  1 bin      sys        2, 132 May 27  1990 pc0f
brw-------  1 bin      sys        2,   5 Apr  6 20:27 pc1
brw-------  1 bin      sys        2, 133 May 27  1990 pc1f
prw-------  1 bin      sys             0 Apr 29 00:47 pipe
brw-------  1 bin      sys        1,   4 Jan 16  1990 port
brw-------  1 bin      sys        2,  16 Apr 17  1990 ps0
brw-------  1 bin      sys        2, 144 May 27  1990 ps0f
brw-------  1 bin      sys        2,  17 Apr 17  1990 ps1
brw-------  1 bin      sys        2, 145 May 27  1990 ps1f
crw-------  1 bin      sys      128,   0 Feb 14 09:34 ptyp0
crw-------  1 bin      sys      128,   1 Feb 14 09:34 ptyp1
crw-------  1 bin      sys      128,   2 Feb 14 09:34 ptyp2
crw-------  1 bin      sys      128,   3 Feb 14 09:34 ptyp3
crw-------  1 bin      sys      128,   4 Feb 14 09:34 ptyp4
crw-------  1 bin      sys      128,   5 Feb 14 09:34 ptyp5
crw-------  1 bin      sys      128,   6 Feb 14 09:34 ptyp6
crw-------  1 bin      sys      128,   7 Feb 14 09:34 ptyp7
brw-------  1 bin      sys        1,   0 Dec  9 03:10 ram
crw-------  1 bin      sys        9,   0 Apr 29 06:11 slip
crw-------  1 bin      sys      129,   0 May 11 00:39 socket
crw-------  1 bin      sys      129,   2 May 11 00:39 tcp
crw-------  1 bin      sys        5,   0 Dec  9 03:09 tty
crw--w--w-  2 bin      sys        4,   0 Dec  9 03:09 tty0
crw--w--w-  1 root     root       4,   1 Dec  9 03:09 tty1
crw--w--w-  1 waltje   user       4,   2 Dec  9 03:09 tty2
crw--w--w-  1 bin      sys        4,   3 Dec  9 03:09 tty3
crw--w--w-  1 bin      sys        4,   4 Dec  9 03:09 tty4
crw--w--w-  1 uucp     uucp       4,   5 Dec  9 03:09 tty5
crw--w--w-  1 uucp     uucp       4,   6 Dec  9 03:09 tty6
crw--w--w-  1 uucp     uucp       4,   7 Dec  9 03:09 tty7
crw--w--w-  1 uucp     uucp       4,   8 Dec  9 03:09 tty8
crw--w--w-  1 uucp     uucp       4,   9 Dec  9 03:09 tty9
crw--w--w-  1 uucp     uucp       4,  10 Dec  9 03:09 ttyA
crw--w--w-  1 bin      sys      128, 128 Feb 14 09:34 ttyp0
crw--w--w-  1 bin      sys      128, 129 Feb 14 09:34 ttyp1
crw--w--w-  1 bin      sys      128, 130 Feb 14 09:34 ttyp2
crw--w--w-  1 bin      sys      128, 131 Feb 14 09:34 ttyp3
crw--w--w-  1 bin      sys      128, 132 Feb 14 09:34 ttyp4
crw--w--w-  1 bin      sys      128, 133 Feb 14 09:34 ttyp5
crw--w--w-  1 bin      sys      128, 134 Feb 14 09:34 ttyp6
crw--w--w-  1 bin      sys      128, 135 Feb 14 09:34 ttyp7
crw-------  1 bin      sys      129,   3 May 11 00:39 udp

Hope this helps,

Fred.
--
MicroWalt Corporation, for MINIX Development	waltje@uwalt.nl.mugnet.org
Tel (+31) 252 230 205, Hoefbladhof  27, 2215 DV  VOORHOUT, The Netherlands
	"An Operating System is what the _USERS_ think of it- me"