Thread View: mod.computers.masscomp
1 messages
1 total messages
Started by Praveen Kumar
Fri, 14 Nov 1986 23:52
Do ttyname (), and ttyslot () work?
Author: Praveen Kumar
Date: Fri, 14 Nov 1986 23:52
Date: Fri, 14 Nov 1986 23:52
36 lines
1379 bytes
1379 bytes
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]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads