xref: /csrg-svn/lib/libc/mips/sys/setlogin.s (revision 61148)
152731Sbostic/*-
2*61148Sbostic * Copyright (c) 1991, 1993
3*61148Sbostic *	The Regents of the University of California.  All rights reserved.
452731Sbostic *
552731Sbostic * This code is derived from software contributed to Berkeley by
652731Sbostic * Ralph Campbell.
752731Sbostic *
852731Sbostic * %sccs.include.redist.c%
952731Sbostic */
1052731Sbostic
1152731Sbostic#include "SYS.h"
1252731Sbostic
1352731Sbostic#if defined(LIBC_SCCS) && !defined(lint)
14*61148Sbostic	ASMSTR("@(#)setlogin.s	8.1 (Berkeley) 06/04/93")
1552731Sbostic#endif /* LIBC_SCCS and not lint */
1652731Sbostic
1752731SbosticLEAF(setlogin)
1852731Sbostic	li	v0, SYS_setlogin	# setlogin(name)
1952731Sbostic	syscall
2052731Sbostic	bne	a3, zero, 1f
2152731Sbostic	sw	zero, _logname_valid	# in getlogin()
2252731Sbostic	j	ra
2352731Sbostic1:
2452731Sbostic	j	_cerror
2552731SbosticEND(setlogin)
26