]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: remove now-redundant definitions provided by sys/wait.h
authorJim Meyering <meyering@redhat.com>
Mon, 3 May 2010 08:45:47 +0000 (10:45 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 3 May 2010 10:26:00 +0000 (12:26 +0200)
* src/timeout.c (WIFSIGNALED, WTERMSIG): Remove definitions,
now that gnulib guarantees they are defined in <sys/wait.h>.
* src/operand2sig.c: Likewise.
* src/kill.c: Likewise.

src/kill.c
src/operand2sig.c
src/timeout.c

index 09d280822be68efda3841ac449a992b72d8c48de..4210c37b5db64fcda291cf03481cbfbe8beb01cc 100644 (file)
 #include <getopt.h>
 #include <sys/types.h>
 #include <signal.h>
-
 #include <sys/wait.h>
-#ifndef WIFSIGNALED
-# define WIFSIGNALED(s) (((s) & 0xFFFF) - 1 < (unsigned int) 0xFF)
-#endif
-#ifndef WTERMSIG
-# define WTERMSIG(s) ((s) & 0x7F)
-#endif
 
 #include "system.h"
 #include "error.h"
index d0500cdac2effa6023b0774663b690cba490e20b..8c1e7802c5a1ef9f758c7ffb122a9e493fa4cb7f 100644 (file)
 #include <config.h>
 #include <stdio.h>
 #include <sys/types.h>
-
 #include <sys/wait.h>
-#ifndef WIFSIGNALED
-# define WIFSIGNALED(s) (((s) & 0xFFFF) - 1 < (unsigned int) 0xFF)
-#endif
-#ifndef WTERMSIG
-# define WTERMSIG(s) ((s) & 0x7F)
-#endif
 
 #include "system.h"
 #include "error.h"
index c6f65258bf0d93871454d2bc801f2b7a0546457f..e2234c3f0435b6651fdaa2ad21ccf4a3393a2c08 100644 (file)
 #include <signal.h>
 #include <sys/wait.h>
 
-#ifndef WIFSIGNALED
-# define WIFSIGNALED(s) (((s) & 0xFFFF) - 1 < (unsigned int) 0xFF)
-#endif
-#ifndef WTERMSIG
-# define WTERMSIG(s) ((s) & 0x7F)
-#endif
-
 #include "system.h"
 #include "xstrtol.h"
 #include "sig2str.h"