.byte $2C ; bit opcode, eats the next 2 bytes
noiocb: lda #EMFILE ; "too many open files"
jsr incsp2 ; clean up stack
-seterr: jsr __directerrno
- lda #$FF
- tax
- rts ; return -1
+seterr: jmp __directerrno
+
; entry point
static void cmd_exec(void)
{
- int st;
unsigned char *progname, *arguments;
progname = strtok(args, " \t\n");
arguments = strtok(NULL, "");
/*printf("exec: %s %s\n", progname, arguments ? arguments : "");*/
- st = exec(progname, arguments);
+ (void)exec(progname, arguments);
printf("exec error: %s\n", strerror(errno));
}