From d35c571ce2f4b08fb2abb3d7d51286f6995616b7 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 5 Jul 2007 12:54:19 +0000 Subject: [PATCH] * removed misc/archive/archtest.c because it's also in architecture/share/archtest.c git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21570 10447126-35f2-4685-b0cf-6dd780d3921f --- misc/archive/archtest.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 misc/archive/archtest.c diff --git a/misc/archive/archtest.c b/misc/archive/archtest.c deleted file mode 100644 index dbff59b..0000000 --- a/misc/archive/archtest.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * --- T2-COPYRIGHT-NOTE-BEGIN --- - * This copyright note is auto-generated by ./scripts/Create-CopyPatch. - * - * T2 SDE: misc/archive/archtest.c - * Copyright (C) 2006 The T2 SDE Project - * - * More information can be found in the files COPYING and README. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. A copy of the - * GNU General Public License can be found in the file COPYING. - * --- T2-COPYRIGHT-NOTE-END --- - */ - -#include - -char * isbigendian () { - /* Are we little or big endian? From Harbison&Steele. */ - union { long l; char c[sizeof (long)]; } u; - u.l=1; return (u.c[0] == 1)?"no":"yes"; -} - -int main() { - printf("arch_sizeof_short=%d\n",sizeof(short)); - printf("arch_sizeof_int=%d\n",sizeof(int)); - printf("arch_sizeof_long=%d\n",sizeof(long)); - printf("arch_sizeof_long_long=%d\n",sizeof(long long)); - printf("arch_sizeof_char_p=%d\n",sizeof(char *)); - printf("arch_bigendian=%s\n",isbigendian()); - printf("arch_machine="); fflush(stdout); system("uname -m"); - system("echo arch_target=`uname -m -p | tr ' ' -`-linux"); - return 0; -}