From 80f1a05b780448a7aa2c882681fac502b1e162a7 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 9 Sep 2015 00:00:00 -0500 Subject: [PATCH] library: abandon long/long long distinction with KLONG With this patch the distinction between a 'long' KLONG and a 'long long' KLONG is being abandoned in favor of a consistent declaration as 'long' only. Plus we would have also defined it as 'unsigned' except there exists much code already explicitly specifying the qualifier. Signed-off-by: Jim Warner --- proc/procps.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/proc/procps.h b/proc/procps.h index f1e35575..7ee2cdf3 100644 --- a/proc/procps.h +++ b/proc/procps.h @@ -3,37 +3,9 @@ #include -// Some ports make the mistake of running a 32-bit userspace -// on a 64-bit kernel. Shame on them. It's not at all OK to -// make everything "long long", since that causes unneeded -// slowness on 32-bit hardware. -// -// SPARC: The 32-bit kernel was looking like an ex-penguin, -// but it lives! ("I'm not dead yet.") So, 64-bit users will -// just have to compile for 64-bit. Aw, the suffering. -// -// MIPS: Used 32-bit for embedded systems and obsolete hardware. -// The 64-bit systems use an n32 format executable, defining -// _ABIN32 to indicate this. Since n32 doesn't currently run on -// any 32-bit system, nobody get hurt if it's bloated. Not that -// this is sane of course, but it won't hurt the 32-bit users. -// __mips_eabi means eabi, which comes in both sizes, but isn't used. -// -// PowerPC: Big ugly problem! 32-bit Macs are still popular. :-/ -// -// x86-64: So far, nobody has been dumb enough to go 32-bit. -// -// Unknown: PA-RISC and zSeries -// -#if defined(k64test) || (defined(_ABIN32) && _MIPS_SIM == _ABIN32) -#define KLONG long long // not typedef; want "unsigned KLONG" to work -#define KLF "ll" -#define STRTOUKL strtoull -#else #define KLONG long #define KLF "l" #define STRTOUKL strtoul -#endif // since gcc-2.5 #define NORETURN __attribute__((__noreturn__)) -- 2.40.0