phaedrus@eneevax.umd.edu.bcm.tmc.edu (Praveen Kumar) (11/15/86)
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 <stdio.h>
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]