1: / gid = getgid(); 2: 3: .globl _getgid 4: 5: _getgid: 6: mov r5,-(sp) 7: mov sp,r5 8: sys getgid 9: mov (sp)+,r5 10: rts pc 11: 12: / gid = getegid(); 13: 14: .globl _getegid 15: 16: _getegid: 17: mov r5,-(sp) 18: mov sp,r5 19: sys getgid 20: mov r1,r0 21: mov (sp)+,r5 22: rts pc