DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T u

⟦6a1bec62b⟧ TextFile

    Length: 828 (0x33c)
    Types: TextFile
    Names: »unix_name.c«

Derivation

└─⟦8ee07855d⟧ Bits:30000545 8mm tape, Rational 1000, DTIA 2_1_6
    └─ ⟦0c25cb74a⟧ »DATA« 
        └─⟦038380b96⟧ 
└─⟦d0624311f⟧ Bits:30000529 8mm tape, Rational 1000, DTIA 2_1_7
    └─ ⟦f494b5154⟧ »DATA« 
        └─⟦038380b96⟧ 
            └─ ⟦this⟧ »unix_name.c« 
└─⟦8ee07855d⟧ Bits:30000545 8mm tape, Rational 1000, DTIA 2_1_6
    └─ ⟦0c25cb74a⟧ »DATA« 
        └─⟦0732ea0cf⟧ 
└─⟦d0624311f⟧ Bits:30000529 8mm tape, Rational 1000, DTIA 2_1_7
    └─ ⟦f494b5154⟧ »DATA« 
        └─⟦0732ea0cf⟧ 
            └─ ⟦this⟧ »../../dtia/release_apollo_2.1/unix_name.c« 
└─⟦8ee07855d⟧ Bits:30000545 8mm tape, Rational 1000, DTIA 2_1_6
    └─ ⟦0c25cb74a⟧ »DATA« 
        └─⟦25fab149a⟧ 
└─⟦d0624311f⟧ Bits:30000529 8mm tape, Rational 1000, DTIA 2_1_7
    └─ ⟦f494b5154⟧ »DATA« 
        └─⟦25fab149a⟧ 
            └─ ⟦this⟧ »../../dtia/release_sun_2.1/unix_name.c« 
└─⟦8ee07855d⟧ Bits:30000545 8mm tape, Rational 1000, DTIA 2_1_6
    └─ ⟦0c25cb74a⟧ »DATA« 
        └─⟦be254d495⟧ 
└─⟦d0624311f⟧ Bits:30000529 8mm tape, Rational 1000, DTIA 2_1_7
    └─ ⟦f494b5154⟧ »DATA« 
        └─⟦be254d495⟧ 
            └─ ⟦this⟧ »../../dtia/release_aix_2.1/unix_name.c« 
└─⟦8ee07855d⟧ Bits:30000545 8mm tape, Rational 1000, DTIA 2_1_6
    └─ ⟦0c25cb74a⟧ »DATA« 
        └─⟦c67979795⟧ 
└─⟦d0624311f⟧ Bits:30000529 8mm tape, Rational 1000, DTIA 2_1_7
    └─ ⟦f494b5154⟧ »DATA« 
        └─⟦c67979795⟧ 
            └─ ⟦this⟧ »../../dtia/release_hp_2.1/unix_name.c« 

TextFile

#ifndef	lint
#ifndef	DEBUG
static char SCCS_id[] = "@(#)unix_name.c 2.1 90/08/02 19:03:59  Copyright(c) 1990 by Rational.";
#else
static char SCCS_id[] = "@(#)unix_name.c DEBUG 2.1 90/08/02 19:03:59  Copyright(c) 1990 by Rational.";
#endif
#endif

#define	UNIX_NAME
#include	"talk.h"
#undef	UNIX_NAME

static	char	name[MAXNAMLEN+1];
static	char	host[MAXHOSTNAMELEN+1];

int	put_unix_name(s)	char *s; 
{
	if (strlen(s) > MAXNAMLEN)	s[MAXNAMLEN]='\0';
	(void)strcpy(name,s);
}

int	get_unix_name(s)	char **s; 
{
	*s=name;
}

int	put_unix_host(s)	char *s; 
{
	if (strlen(s) > MAXHOSTNAMELEN)	s[MAXHOSTNAMELEN]='\0';
	(void)strcpy(host,s);
}

int	get_unix_host(s)	char **s; 
{
	*s=host;
}

int	get_host_name(h)	char **h; 
{
	if (gethostname(host,MAXHOSTNAMELEN)== -1)
		return -1;
	host[MAXHOSTNAMELEN]='\0';
	*h=host;
	return 0;
}