Deleted Added
full compact
setlogin.S (217106) setlogin.S (254463)
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 217106 2011-01-07 16:08:40Z kib $");
37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/setlogin.S 254463 2013-08-17 19:24:58Z jilles $");
38
39#include "SYS.h"
40
41.globl CNAME(_logname_valid) /* in _getlogin() */
42
43SYSCALL(setlogin)
38
39#include "SYS.h"
40
41.globl CNAME(_logname_valid) /* in _getlogin() */
42
43SYSCALL(setlogin)
44#ifdef PIC
45 PIC_PROLOGUE
44 PIC_PROLOGUE
46 pushl %eax
47 movl PIC_GOT(CNAME(_logname_valid)),%eax
48 movl $0,(%eax)
49 popl %eax
45 movl $0,PIC_GOTOFF(CNAME(_logname_valid))
50 PIC_EPILOGUE
46 PIC_EPILOGUE
51#else
52 movl $0,CNAME(_logname_valid)
53#endif
54 ret /* setlogin(name) */
55END(__sys_setlogin)
56
57 .section .note.GNU-stack,"",%progbits
47 ret /* setlogin(name) */
48END(__sys_setlogin)
49
50 .section .note.GNU-stack,"",%progbits