File:  [CSRG BSD Unix] / 43BSDTahoe / new / xns / xnslib / names.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

/*
 * This file implements functions for dealing with names in the XNS
 * environment.
 */

/*
 $Log: names.c,v $
 Revision 1.1  2018/04/24 16:12:58  root
 Initial revision

 * Revision 2.1  86/07/29  06:44:22  jqj
 * Most code in this module is now superseded by ns_nameof() and ns_addr()
 * routines, which are part of the standard libc in 4.3bsd.
 * 
 * Revision 2.0  85/11/21  07:22:14  jqj
 * 4.3BSD standard release
 * 
 * Revision 1.2  85/10/21  12:58:41  root
 * Gould version:  eliminate various uses of ns_netof(), which doesn't
 * work on Gould.
 * 
 * Revision 1.3  85/03/11  16:37:13  jqj
 * Public alpha-test version, released 11 March 1985
 * 
 * Revision 1.2  85/01/27  07:37:32  jqj
 * finished but undebugged version
 * 
 */

#ifndef lint
static char rcsid[] = "$Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/xns/xnslib/names.c,v 1.1 2018/04/24 16:12:58 root Exp $";
#endif

#include <sys/types.h>		/* for ns.h and socket.h */
#include <sys/socket.h>		/* for ns.h */
#include <netns/ns.h>		/* for XNS addresses */


struct ns_addr *
getXNSaddr(name)
	char *name;
{
	static struct ns_addr result;
	extern struct ns_addr ns_addr();

	result = ns_addr(name);
	return &result;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.