From 4793221a53fb69aa519bc91ab19a79524c0df097 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 30 Jun 2013 23:53:49 +0200 Subject: Fold is_restart_error() into its sole user Signed-off-by: Denys Vlasenko --- syscall.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'syscall.c') diff --git a/syscall.c b/syscall.c index 8220906..105b28c 100644 --- a/syscall.c +++ b/syscall.c @@ -80,19 +80,6 @@ # include #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 -- cgit v1.2.3