diff options
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -80,19 +80,6 @@ # include <asm/ptrace.h> #endif -#ifndef ERESTARTSYS -# define ERESTARTSYS 512 -#endif -#ifndef ERESTARTNOINTR -# define ERESTARTNOINTR 513 -#endif -#ifndef ERESTARTNOHAND -# define ERESTARTNOHAND 514 /* restart if no handler */ -#endif -#ifndef ERESTART_RESTARTBLOCK -# define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */ -#endif - #ifndef NSIG # warning: NSIG is not defined, using 32 # define NSIG 32 @@ -694,21 +681,6 @@ getrval2(struct tcb *tcp) } #endif -int -is_restart_error(struct tcb *tcp) -{ - switch (tcp->u_error) { - case ERESTARTSYS: - case ERESTARTNOINTR: - case ERESTARTNOHAND: - case ERESTART_RESTARTBLOCK: - return 1; - default: - break; - } - return 0; -} - #if defined(I386) struct user_regs_struct i386_regs; # define ARCH_REGS_FOR_GETREGSET i386_regs |