ack/mach/sparc/libsys/getegid.s

17 lines
181 B
ArmAsm
Raw Normal View History

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