setlogin.S (184548) | setlogin.S (184996) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#if defined(LIBC_SCCS) && !defined(lint) 34 .asciz "@(#)setlogin.s 5.2 (Berkeley) 4/12/91" 35#endif /* LIBC_SCCS and not lint */ 36#include <machine/asm.h> | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#if defined(LIBC_SCCS) && !defined(lint) 34 .asciz "@(#)setlogin.s 5.2 (Berkeley) 4/12/91" 35#endif /* LIBC_SCCS and not lint */ 36#include <machine/asm.h> |
37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/setlogin.S 184548 2008-11-02 01:28:47Z peter $"); | 37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/setlogin.S 184996 2008-11-15 22:23:07Z peter $"); |
38 39#include "SYS.h" 40 41.globl CNAME(_logname_valid) /* in _getlogin() */ 42 43SYSCALL(setlogin) 44#ifdef PIC 45 PIC_PROLOGUE 46 pushl %eax 47 movl PIC_GOT(CNAME(_logname_valid)),%eax 48 movl $0,(%eax) 49 popl %eax 50 PIC_EPILOGUE 51#else 52 movl $0,CNAME(_logname_valid) 53#endif 54 ret /* setlogin(name) */ | 38 39#include "SYS.h" 40 41.globl CNAME(_logname_valid) /* in _getlogin() */ 42 43SYSCALL(setlogin) 44#ifdef PIC 45 PIC_PROLOGUE 46 pushl %eax 47 movl PIC_GOT(CNAME(_logname_valid)),%eax 48 movl $0,(%eax) 49 popl %eax 50 PIC_EPILOGUE 51#else 52 movl $0,CNAME(_logname_valid) 53#endif 54 ret /* setlogin(name) */ |
55END(setlogin) | 55END(__sys_setlogin) |