1 |
+ |
/* $MidnightBSD$ */ |
2 |
|
/*- |
3 |
|
* Copyright (c) 1991 The Regents of the University of California. |
4 |
|
* All rights reserved. |
35 |
|
.asciz "@(#)setlogin.s 5.2 (Berkeley) 4/12/91" |
36 |
|
#endif /* LIBC_SCCS and not lint */ |
37 |
|
#include <machine/asm.h> |
38 |
< |
__FBSDID("$FreeBSD$"); |
38 |
> |
__FBSDID("$FreeBSD: stable/10/lib/libc/i386/sys/setlogin.S 254463 2013-08-17 19:24:58Z jilles $"); |
39 |
|
|
40 |
|
#include "SYS.h" |
41 |
|
|
42 |
|
.globl CNAME(_logname_valid) /* in _getlogin() */ |
43 |
|
|
44 |
|
SYSCALL(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 |
46 |
> |
movl $0,PIC_GOTOFF(CNAME(_logname_valid)) |
47 |
|
PIC_EPILOGUE |
51 |
– |
#else |
52 |
– |
movl $0,CNAME(_logname_valid) |
53 |
– |
#endif |
48 |
|
ret /* setlogin(name) */ |
49 |
|
END(__sys_setlogin) |
50 |
|
|