/ error = setruid (ruid) / int ruid; / / error = seteuid (euid) / int euid; / / error = setreuid(ruid, euid); / int ruid, euid; .globl _setruid .globl _seteuid .globl _setreuid .globl cerror _setruid: mov r5,-(sp) mov sp,r5 mov 4(r5),r0 mov $-1,r1 br 0f _seteuid: mov r5,-(sp) mov sp,r5 mov $-1,r0 mov 4(r5),r1 br 0f _setreuid: mov r5,-(sp) mov sp,r5 mov 4(r5),r0 mov 6(r5),r1 0: sys local; 9f bec 1f jmp cerror 1: clr r0 mov (sp)+,r5 rts pc .data 9: sys setreuid .text