Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cbatt!cbosgd!soma!eneevax.umd.edu!phaedrus From: phaedrus@eneevax.umd.edu.bcm.tmc.edu (Praveen Kumar) Newsgroups: mod.computers.masscomp Subject: Do ttyname (), and ttyslot () work? Message-ID: <2398@soma.bcm.tmc.edu> Date: Fri, 14-Nov-86 18:52:21 EST Article-I.D.: soma.2398 Posted: Fri Nov 14 18:52:21 1986 Date-Received: Sun, 16-Nov-86 20:32:25 EST Sender: masscomp@soma.bcm.tmc.edu Organization: Masscomp Users' Society Lines: 36 Approved: masscomp@soma.uucp These two C library routines don't seem to work on my machine. Do they work on any of the other machines? Here is a little program to test ttyname out. #include main () { char *ttyname (); char *foo; if ((foo = ttyname (0)) == NULL) printf ("error"); printf ("%s\n", foo); } Thanks, praveen [mod-- They work fine in the att universe but not in the ucb universe. Here is a sleezy fix... run this script as root. #!/bin/sh # this program will a bug in the ucb universe libc that seems # to remain uncorrected on the Masscomp # even with the new release of the run-time libraries. # You must be the superuser to use this. ar x /.attlib/libc.a ttyname.o ar r /.ucblib/libc.a ttyname.o rm ttyname.o ranlib /.ucblib/libc.a exit 0 --- sob]