/*
 * Copyright (c) 1992, 1993
 *	The Regents of the University of California.  All rights reserved.
 *
 * This software was developed by the Computer Systems Engineering group
 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
 * contributed to Berkeley.
 *
 * %sccs.include.redist.c%
 *
 * from: $Header: setlogin.s,v 1.1 91/07/06 13:06:00 torek Exp $
 */

#if defined(LIBC_SCCS) && !defined(lint)
	.asciz "@(#)setlogin.s	8.1 (Berkeley) 06/04/93"
#endif /* LIBC_SCCS and not lint */

#include "SYS.h"

	.globl	__logname_valid		/* in getlogin() */

SYSCALL(setlogin)
	sethi	%hi(__logname_valid), %g1
	retl
	 st	%g0, [%g1 + %lo(__logname_valid)]
