🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.computers.masscomp
Article #68

Do ttyname (), and ttyslot () work?

#68
From: Praveen Kumar
Date: Fri, 14 Nov 1986 23:52
36 lines
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]
Technical Details
Message-ID: <2398@soma.bcm.tmc.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cbatt!cbosgd!soma!eneevax.umd.edu!phaedrus

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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