1: /* @(#)ioctl.s 2.2 SCCS id keyword */ 2: / C library -- ioctl 3: 4: / ioctl(fdes, command, arg) 5: / struct * arg; 6: / 7: / result == -1 if error 8: 9: .globl _ioctl, cerror 10: 11: _ioctl: 12: mov r5,-(sp) 13: mov sp,r5 14: mov 8(r5), -(sp) 15: mov 6(r5), -(sp) 16: mov 4(r5), -(sp) 17: sys ioctl+200 18: bec 1f 19: add $6, sp 20: jmp cerror 21: 1: 22: add $6, sp 23: mov (sp)+,r5 24: clr r0 25: rts pc