ack/mach/sparc/libsys/geteuid.s

17 lines
181 B
ArmAsm
Raw Permalink Normal View History

1991-09-20 18:14:05 +00:00
#include <syscall.h>
.global _geteuid
_geteuid:
mov SYS_getuid, %g1
ta %g0
bgeu 0f
sethi %hi(cerror), %o5
or %o5, %lo(cerror), %o5
jmp %o5
nop
0:
mov %o1, %o0
retl
nop