int flags; /* See below for TCB_ values */
int pid; /* If 0, this tcb is free */
int qual_flg; /* qual_flags[scno] or DEFAULT_QUAL_FLAGS + RAW */
- int u_error; /* Error code */
+ unsigned long u_error; /* Error code */
long scno; /* System call number */
long u_arg[MAX_ARGS]; /* System call arguments */
#if HAVE_STRUCT_TCB_EXT_ARG
int sys_res;
struct timeval tv;
int res;
- long u_error;
+ unsigned long u_error;
/* Measure the exit time as early as possible to avoid errors. */
if (Tflag || cflag)
u_error = tcp->u_error;
if (tcp->qual_flg & QUAL_RAW) {
if (u_error)
- tprintf("= -1 (errno %ld)", u_error);
+ tprintf("= -1 (errno %lu)", u_error);
else
tprintf("= %#lx", tcp->u_rval);
}
tprints("= ? ERESTART_RESTARTBLOCK (Interrupted by signal)");
break;
default:
- if ((unsigned long) u_error < nerrnos
- && errnoent[u_error])
+ if (u_error < nerrnos && errnoent[u_error])
tprintf("= -1 %s (%s)", errnoent[u_error],
strerror(u_error));
else
}
}
-static int saved_u_error;
+static unsigned long saved_u_error;
void
temporarily_clear_syserror(struct tcb *tcp)