mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

636 lines
23 KiB

  1. --- ./sysdeps/unix/sysv/linux/mips/Makefile 2003-09-03 05:16:54.000000000 +0200
  2. +++ ./sysdeps/unix/sysv/linux/mips/Makefile 2004-07-20 18:37:41.000000000 +0200
  3. @@ -21,20 +21,25 @@
  4. echo '# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."'; \
  5. echo '#endif'; \
  6. echo ''; \
  7. + echo '#include <sgidefs.h>'; \
  8. rm -f $(@:.d=.h).newt; \
  9. $(CC) -E -MD -MP -MF $(@:.h=.d)-t -MT '$(@:.d=.h) $(@:.h=.d)' \
  10. - -x c -I $(common-objdir) $(sysincludes) $< -D_LIBC -dM | \
  11. + -x c $(+includes) $(sysincludes) $< -D_LIBC -dM | \
  12. sed -n 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p' \
  13. > $(@:.d=.h).newt; \
  14. if grep SYS_O32_ $(@:.d=.h).newt > /dev/null; then \
  15. - echo '#if defined _ABI64 && _MIPS_SIM == _ABI64'; \
  16. - sed -n 's/^\(#define SYS_\)N64_/\1/p' < $(@:.d=.h).newt; \
  17. - echo '#elif defined _ABIN32 && _MIPS_SIM == _ABIN32'; \
  18. - sed -n 's/^\(#define SYS_\)N32_/\1/p' < $(@:.d=.h).newt; \
  19. + echo '#if _MIPS_SIM == _MIPS_SIM_NABI32'; \
  20. + sed -n 's/^\(#define SYS_\)N32_/\1/p' < $(@:.d=.h).newt | \
  21. + LC_ALL=C sort; \
  22. + echo '#elif _MIPS_SIM == _MIPS_SIM_ABI64'; \
  23. + sed -n 's/^\(#define SYS_\)N64_/\1/p' < $(@:.d=.h).newt | \
  24. + LC_ALL=C sort; \
  25. echo '#else'; \
  26. - sed -n 's/^\(#define SYS_\)O32_/\1/p' < $(@:.d=.h).newt; \
  27. + sed -n 's/^\(#define SYS_\)O32_/\1/p' < $(@:.d=.h).newt | \
  28. + LC_ALL=C sort; \
  29. echo '#endif'; \
  30. - sed -n '/^#define SYS_\([ON]32\|N64\)_/p' < $(@:.d=.h).newt; \
  31. + sed -n '/^#define SYS_\([ON]32\|N64\)_/p' < $(@:.d=.h).newt | \
  32. + LC_ALL=C sort +1.8; \
  33. else \
  34. cat $(@:.d=.h).newt; \
  35. fi; \
  36. --- ./sysdeps/unix/sysv/linux/mips/bits/fcntl.h 2003-04-04 07:12:00.000000000 +0200
  37. +++ ./sysdeps/unix/sysv/linux/mips/bits/fcntl.h 2004-07-20 18:35:29.000000000 +0200
  38. @@ -1,5 +1,5 @@
  39. /* O_*, F_*, FD_* bit values for Linux.
  40. - Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2003
  41. + Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2003, 2004
  42. Free Software Foundation, Inc.
  43. This file is part of the GNU C Library.
  44. @@ -23,7 +23,7 @@
  45. #endif
  46. #include <sys/types.h>
  47. -
  48. +#include <sgidefs.h>
  49. /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
  50. located on an ext2 file system */
  51. @@ -81,7 +81,7 @@
  52. #define F_SETLK64 34 /* Set record locking info (non-blocking). */
  53. #define F_SETLKW64 35 /* Set record locking info (blocking). */
  54. -#if defined __USE_BSD || defined __USE_XOPEN2K
  55. +#if defined __USE_BSD || defined __USE_UNIX98
  56. # define F_SETOWN 24 /* Get owner of socket (receiver of SIGIO). */
  57. # define F_GETOWN 23 /* Set owner of socket (receiver of SIGIO). */
  58. #endif
  59. @@ -143,7 +143,7 @@
  60. #ifndef __USE_FILE_OFFSET64
  61. __off_t l_start; /* Offset where the lock begins. */
  62. __off_t l_len; /* Size of the locked area; zero means until EOF. */
  63. -#if ! (defined _ABI64 && _MIPS_SIM == _ABI64)
  64. +#if _MIPS_SIM != _MIPS_SIM_ABI64
  65. /* The 64-bit flock structure, used by the n64 ABI, and for 64-bit
  66. fcntls in o32 and n32, never has this field. */
  67. long int l_sysid;
  68. @@ -153,7 +153,7 @@
  69. __off64_t l_len; /* Size of the locked area; zero means until EOF. */
  70. #endif
  71. __pid_t l_pid; /* Process holding the lock. */
  72. -#if ! defined __USE_FILE_OFFSET64 && ! (defined _ABI64 && _MIPS_SIM == _ABI64)
  73. +#if ! defined __USE_FILE_OFFSET64 && _MIPS_SIM != _MIPS_SIM_ABI64
  74. /* The 64-bit flock structure, used by the n64 ABI, and for 64-bit
  75. flock in o32 and n32, never has this field. */
  76. long int pad[4];
  77. --- ./sysdeps/unix/sysv/linux/mips/bits/sigcontext.h 2003-04-13 13:36:32.000000000 +0200
  78. +++ ./sysdeps/unix/sysv/linux/mips/bits/sigcontext.h 2004-07-20 18:35:29.000000000 +0200
  79. @@ -1,4 +1,4 @@
  80. -/* Copyright (C) 1996, 1997, 1998, 2003 Free Software Foundation, Inc.
  81. +/* Copyright (C) 1996, 1997, 1998, 2003, 2004 Free Software Foundation, Inc.
  82. This file is part of the GNU C Library.
  83. The GNU C Library is free software; you can redistribute it and/or
  84. @@ -20,6 +20,8 @@
  85. # error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
  86. #endif
  87. +#include <sgidefs.h>
  88. +
  89. #ifndef sigcontext_struct
  90. /* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
  91. we need sigcontext. */
  92. --- ./sysdeps/unix/sysv/linux/mips/bits/stat.h 2003-04-05 21:57:35.000000000 +0200
  93. +++ ./sysdeps/unix/sysv/linux/mips/bits/stat.h 2004-07-20 18:35:28.000000000 +0200
  94. @@ -1,4 +1,4 @@
  95. -/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003
  96. +/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  97. Free Software Foundation, Inc.
  98. This file is part of the GNU C Library.
  99. @@ -21,6 +21,8 @@
  100. # error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
  101. #endif
  102. +#include <sgidefs.h>
  103. +
  104. /* Versions of the `struct stat' data structure. */
  105. #define _STAT_VER_LINUX_OLD 1
  106. #define _STAT_VER_KERNEL 1
  107. --- ./sysdeps/unix/sysv/linux/mips/configure 2003-03-28 07:11:03.000000000 +0100
  108. +++ ./sysdeps/unix/sysv/linux/mips/configure 2004-07-20 18:35:29.000000000 +0200
  109. @@ -30,6 +30,7 @@
  110. -e 's,__NR_N64_N32_,__NR_N32_,g' \
  111. -e 's,__NR_N64_N64_,__NR_N64_,g' \
  112. | awk > asm-unistd.h '
  113. +BEGIN { print "#include <sgidefs.h>"; }
  114. /^#define __NR.*unused/ { print; next; }
  115. /^#define __NR_N64__exit __NR_N64_exit/ {
  116. print "#define __NR__exit __NR_exit";
  117. @@ -50,7 +51,7 @@
  118. name = $2;
  119. sub (/_N32_/, "_", name);
  120. print;
  121. - print "#if defined _ABIN32 && _MIPS_SIM == _ABIN32";
  122. + print "#if _MIPS_SIM == _MIPS_SIM_NABI32";
  123. print "# define " name " " $2;
  124. print "#endif";
  125. next;
  126. @@ -59,7 +60,7 @@
  127. name = $2;
  128. sub (/_N64_/, "_", name);
  129. print;
  130. - print "#if defined _ABI64 && _MIPS_SIM == _ABI64";
  131. + print "#if _MIPS_SIM == _MIPS_SIM_ABI64";
  132. print "# define " name " " $2;
  133. print "#endif";
  134. next;
  135. --- ./sysdeps/unix/sysv/linux/mips/configure.in 2003-03-17 16:50:05.000000000 +0100
  136. +++ ./sysdeps/unix/sysv/linux/mips/configure.in 2004-07-20 18:35:29.000000000 +0200
  137. @@ -30,6 +30,7 @@
  138. -e 's,__NR_N64_N32_,__NR_N32_,g' \
  139. -e 's,__NR_N64_N64_,__NR_N64_,g' \
  140. | awk > asm-unistd.h '
  141. +BEGIN { print "#include <sgidefs.h>"; }
  142. /^#define __NR.*unused/ { print; next; }
  143. /^#define __NR_N64__exit __NR_N64_exit/ {
  144. print "#define __NR__exit __NR_exit";
  145. @@ -50,7 +51,7 @@
  146. name = $2;
  147. sub (/_N32_/, "_", name);
  148. print;
  149. - print "#if defined _ABIN32 && _MIPS_SIM == _ABIN32";
  150. + print "#if _MIPS_SIM == _MIPS_SIM_NABI32";
  151. print "# define " name " " $2;
  152. print "#endif";
  153. next;
  154. @@ -59,7 +60,7 @@
  155. name = $2;
  156. sub (/_N64_/, "_", name);
  157. print;
  158. - print "#if defined _ABI64 && _MIPS_SIM == _ABI64";
  159. + print "#if _MIPS_SIM == _MIPS_SIM_ABI64";
  160. print "# define " name " " $2;
  161. print "#endif";
  162. next;
  163. --- ./sysdeps/unix/sysv/linux/mips/kernel_stat.h 2003-04-05 21:57:35.000000000 +0200
  164. +++ ./sysdeps/unix/sysv/linux/mips/kernel_stat.h 2004-07-20 18:35:29.000000000 +0200
  165. @@ -1,3 +1,4 @@
  166. +#include <sgidefs.h>
  167. /* As tempting as it is to define XSTAT_IS_XSTAT64 for n64, the
  168. userland data structures are not identical, because of different
  169. padding. */
  170. --- ./sysdeps/unix/sysv/linux/mips/mips64/syscalls.list 2003-09-03 05:16:25.000000000 +0200
  171. +++ ./sysdeps/unix/sysv/linux/mips/mips64/syscalls.list 2004-07-21 08:13:15.000000000 +0200
  172. @@ -16,5 +16,6 @@
  173. shmdt - shmdt i:s __shmdt shmdt
  174. shmget - shmget i:iii __shmget shmget
  175. semop - semop i:ipi __semop semop
  176. +semtimedop - semtimedop i:ipip semtimedop
  177. semget - semget i:iii __semget semget
  178. semctl - semctl i:iiii __semctl semctl
  179. --- ./sysdeps/unix/sysv/linux/mips/pread.c 2003-09-11 01:38:52.000000000 +0200
  180. +++ ./sysdeps/unix/sysv/linux/mips/pread.c 2004-07-20 18:35:29.000000000 +0200
  181. @@ -1,4 +1,5 @@
  182. -/* Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
  183. +/* Copyright (C) 1997, 1998, 2000, 2002, 2003, 2004
  184. + Free Software Foundation, Inc.
  185. This file is part of the GNU C Library.
  186. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
  187. @@ -27,6 +28,7 @@
  188. #include <bp-checks.h>
  189. #include <kernel-features.h>
  190. +#include <sgidefs.h>
  191. #ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */
  192. # ifdef __NR_pread
  193. @@ -51,14 +53,14 @@
  194. {
  195. ssize_t result;
  196. -#if (defined _ABI64 && _MIPS_SIM != _ABI64)
  197. +#if _MIPS_SIM != _MIPS_SIM_ABI64
  198. assert (sizeof (offset) == 4);
  199. #endif
  200. if (SINGLE_THREAD_P)
  201. {
  202. /* First try the syscall. */
  203. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  204. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  205. result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
  206. offset);
  207. #else
  208. @@ -76,7 +78,7 @@
  209. int oldtype = LIBC_CANCEL_ASYNC ();
  210. /* First try the syscall. */
  211. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  212. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM_ABI64
  213. result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
  214. #else
  215. result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
  216. --- ./sysdeps/unix/sysv/linux/mips/pread64.c 2003-09-11 01:38:52.000000000 +0200
  217. +++ ./sysdeps/unix/sysv/linux/mips/pread64.c 2004-07-20 18:35:29.000000000 +0200
  218. @@ -1,4 +1,5 @@
  219. -/* Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
  220. +/* Copyright (C) 1997, 1998, 2000, 2002, 2003, 2004
  221. + Free Software Foundation, Inc.
  222. This file is part of the GNU C Library.
  223. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
  224. @@ -26,6 +27,7 @@
  225. #include <bp-checks.h>
  226. #include <kernel-features.h>
  227. +#include <sgidefs.h>
  228. #ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */
  229. # ifdef __NR_pread
  230. @@ -54,7 +56,7 @@
  231. if (SINGLE_THREAD_P)
  232. {
  233. /* First try the syscall. */
  234. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  235. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  236. result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
  237. offset);
  238. #else
  239. @@ -73,7 +75,7 @@
  240. int oldtype = LIBC_CANCEL_ASYNC ();
  241. /* First try the syscall. */
  242. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  243. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  244. result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
  245. #else
  246. result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
  247. --- ./sysdeps/unix/sysv/linux/mips/ptrace.c 2003-09-03 05:21:27.000000000 +0200
  248. +++ ./sysdeps/unix/sysv/linux/mips/ptrace.c 2004-07-20 18:35:29.000000000 +0200
  249. @@ -1,4 +1,4 @@
  250. -/* Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2003
  251. +/* Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2003, 2004
  252. Free Software Foundation, Inc.
  253. This file is part of the GNU C Library.
  254. @@ -26,8 +26,9 @@
  255. #include <sysdep.h>
  256. #include <sys/syscall.h>
  257. #include <bp-checks.h>
  258. +#include <sgidefs.h>
  259. -#if defined _ABIN32 && _MIPS_SIM == _ABIN32
  260. +#if _MIPS_SIM == _MIPS_SIM_NABI32
  261. __extension__ typedef long long int reg_type;
  262. #else
  263. typedef long int reg_type;
  264. --- ./sysdeps/unix/sysv/linux/mips/pwrite.c 2003-09-11 01:38:52.000000000 +0200
  265. +++ ./sysdeps/unix/sysv/linux/mips/pwrite.c 2004-07-20 18:35:29.000000000 +0200
  266. @@ -1,4 +1,5 @@
  267. -/* Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
  268. +/* Copyright (C) 1997, 1998, 2000, 2002, 2003, 2004
  269. + Free Software Foundation, Inc.
  270. This file is part of the GNU C Library.
  271. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
  272. @@ -27,6 +28,7 @@
  273. #include <bp-checks.h>
  274. #include <kernel-features.h>
  275. +#include <sgidefs.h>
  276. #ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */
  277. # ifdef __NR_pwrite
  278. @@ -51,14 +53,14 @@
  279. {
  280. ssize_t result;
  281. -#if (defined _ABI64 && _MIPS_SIM != _ABI64)
  282. +#if _MIPS_SIM == _MIPS_SIM_ABI64
  283. assert (sizeof (offset) == 4);
  284. #endif
  285. if (SINGLE_THREAD_P)
  286. {
  287. /* First try the syscall. */
  288. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  289. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  290. result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
  291. offset);
  292. #else
  293. @@ -76,7 +78,7 @@
  294. int oldtype = LIBC_CANCEL_ASYNC ();
  295. /* First try the syscall. */
  296. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  297. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  298. result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
  299. #else
  300. result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
  301. --- ./sysdeps/unix/sysv/linux/mips/pwrite64.c 2003-09-11 01:38:52.000000000 +0200
  302. +++ ./sysdeps/unix/sysv/linux/mips/pwrite64.c 2004-07-20 18:35:29.000000000 +0200
  303. @@ -1,4 +1,5 @@
  304. -/* Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
  305. +/* Copyright (C) 1997, 1998, 2000, 2002, 2003, 2004
  306. + Free Software Foundation, Inc.
  307. This file is part of the GNU C Library.
  308. Contributed by Ralf Baechle <ralf@gnu.org>, 1998.
  309. @@ -53,7 +54,7 @@
  310. if (SINGLE_THREAD_P)
  311. {
  312. /* First try the syscall. */
  313. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  314. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  315. result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
  316. offset);
  317. #else
  318. @@ -73,7 +74,7 @@
  319. int oldtype = LIBC_CANCEL_ASYNC ();
  320. /* First try the syscall. */
  321. -#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
  322. +#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64
  323. result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
  324. #else
  325. result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
  326. --- ./sysdeps/unix/sysv/linux/mips/sigaction.c 2003-09-03 05:21:27.000000000 +0200
  327. +++ ./sysdeps/unix/sysv/linux/mips/sigaction.c 2004-07-20 18:35:29.000000000 +0200
  328. @@ -1,4 +1,5 @@
  329. -/* Copyright (C) 1997,1998,1999,2000,2002,2003 Free Software Foundation, Inc.
  330. +/* Copyright (C) 1997,1998,1999,2000,2002,2003, 2004
  331. + Free Software Foundation, Inc.
  332. This file is part of the GNU C Library.
  333. The GNU C Library is free software; you can redistribute it and/or
  334. @@ -23,6 +24,8 @@
  335. #include <sysdep.h>
  336. #include <sys/syscall.h>
  337. +#include <sgidefs.h>
  338. +
  339. #include "kernel-features.h"
  340. /* The difference here is that the sigaction structure used in the
  341. --- ./sysdeps/unix/sysv/linux/mips/sigcontextinfo.h 2003-04-13 13:36:32.000000000 +0200
  342. +++ ./sysdeps/unix/sysv/linux/mips/sigcontextinfo.h 2004-07-20 18:35:29.000000000 +0200
  343. @@ -1,4 +1,4 @@
  344. -/* Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
  345. +/* Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
  346. This file is part of the GNU C Library.
  347. Contributed by Andreas Jaeger <aj@suse.de>, 2000.
  348. @@ -18,6 +18,8 @@
  349. 02111-1307 USA. */
  350. +#include <sgidefs.h>
  351. +
  352. #if _MIPS_SIM == _MIPS_SIM_ABI32
  353. #define SIGCONTEXT unsigned long _code, struct sigcontext *
  354. --- ./sysdeps/unix/sysv/linux/mips/sys/procfs.h 2003-03-17 16:47:13.000000000 +0100
  355. +++ ./sysdeps/unix/sysv/linux/mips/sys/procfs.h 2004-07-20 18:35:28.000000000 +0200
  356. @@ -1,4 +1,4 @@
  357. -/* Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
  358. +/* Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
  359. Free Software Foundation, Inc.
  360. This file is part of the GNU C Library.
  361. @@ -28,12 +28,13 @@
  362. #include <sys/time.h>
  363. #include <sys/types.h>
  364. #include <sys/user.h>
  365. +#include <sgidefs.h>
  366. /* ELF register definitions */
  367. #define ELF_NGREG 45
  368. #define ELF_NFPREG 33
  369. -#if defined _ABIN32 && _MIPS_SIM == _ABIN32
  370. +#if _MIPS_SIM == _MIPS_SIM_NABI32
  371. __extension__ typedef unsigned long long elf_greg_t;
  372. #else
  373. typedef unsigned long elf_greg_t;
  374. @@ -64,7 +65,7 @@
  375. {
  376. struct elf_siginfo pr_info; /* Info associated with signal. */
  377. short int pr_cursig; /* Current signal. */
  378. -#if defined _ABIN32 && _MIPS_SIM == _ABIN32
  379. +#if _MIPS_SIM == _MIPS_SIM_NABI32
  380. __extension__ unsigned long long int pr_sigpend;
  381. __extension__ unsigned long long int pr_sighold;
  382. #else
  383. @@ -92,7 +93,7 @@
  384. char pr_sname; /* Char for pr_state. */
  385. char pr_zomb; /* Zombie. */
  386. char pr_nice; /* Nice val. */
  387. -#if defined _ABIN32 && _MIPS_SIM == _ABIN32
  388. +#if _MIPS_SIM == _MIPS_SIM_NABI32
  389. __extension__ unsigned long long int pr_flag;
  390. #else
  391. unsigned long int pr_flag; /* Flags. */
  392. --- ./sysdeps/unix/sysv/linux/mips/sys/ptrace.h 2003-03-17 16:48:52.000000000 +0100
  393. +++ ./sysdeps/unix/sysv/linux/mips/sys/ptrace.h 2004-07-20 18:35:28.000000000 +0200
  394. @@ -1,5 +1,5 @@
  395. /* `ptrace' debugger support interface. Linux version.
  396. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2003
  397. + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004
  398. Free Software Foundation, Inc.
  399. This file is part of the GNU C Library.
  400. @@ -22,6 +22,7 @@
  401. #define _SYS_PTRACE_H 1
  402. #include <features.h>
  403. +#include <sgidefs.h>
  404. __BEGIN_DECLS
  405. @@ -123,7 +124,7 @@
  406. appear (those that are used for the particular request) as:
  407. pid_t PID, void *ADDR, int DATA, void *ADDR2
  408. after REQUEST. */
  409. -#if defined _ABIN32 && _MIPS_SIM == _ABIN32
  410. +#if _MIPS_SIM == _MIPS_SIM_NABI32
  411. __extension__ extern long long int ptrace
  412. (enum __ptrace_request __request, ...) __THROW;
  413. #else
  414. --- ./sysdeps/unix/sysv/linux/mips/sys/tas.h 2003-03-14 08:03:36.000000000 +0100
  415. +++ ./sysdeps/unix/sysv/linux/mips/sys/tas.h 2004-07-20 18:35:28.000000000 +0200
  416. @@ -1,4 +1,4 @@
  417. -/* Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
  418. +/* Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
  419. This file is part of the GNU C Library.
  420. Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.
  421. @@ -22,6 +22,8 @@
  422. #include <features.h>
  423. +#include <sgidefs.h>
  424. +
  425. __BEGIN_DECLS
  426. extern int _test_and_set (int *p, int v) __THROW;
  427. --- ./sysdeps/unix/sysv/linux/mips/sys/ucontext.h 2003-05-01 01:22:09.000000000 +0200
  428. +++ ./sysdeps/unix/sysv/linux/mips/sys/ucontext.h 2004-07-20 18:35:28.000000000 +0200
  429. @@ -1,4 +1,4 @@
  430. -/* Copyright (C) 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
  431. +/* Copyright (C) 1997, 1998, 2000, 2003, 2004 Free Software Foundation, Inc.
  432. This file is part of the GNU C Library.
  433. The GNU C Library is free software; you can redistribute it and/or
  434. @@ -28,6 +28,7 @@
  435. included in <signal.h>. */
  436. #include <bits/sigcontext.h>
  437. +#include <sgidefs.h>
  438. /* Type for general register. Even in o32 we assume 64-bit registers,
  439. like the kernel. */
  440. --- ./sysdeps/unix/sysv/linux/mips/sys/user.h 2003-04-13 13:36:32.000000000 +0200
  441. +++ ./sysdeps/unix/sysv/linux/mips/sys/user.h 2004-07-20 18:35:28.000000000 +0200
  442. @@ -1,4 +1,4 @@
  443. -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  444. +/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
  445. This file is part of the GNU C Library.
  446. The GNU C Library is free software; you can redistribute it and/or
  447. @@ -19,6 +19,8 @@
  448. #ifndef _SYS_USER_H
  449. #define _SYS_USER_H 1
  450. +#include <sgidefs.h>
  451. +
  452. /* The whole purpose of this file is for GDB and GDB only. Don't read
  453. too much into it. Don't use it for anything other than GDB unless
  454. you know what you are doing. */
  455. --- libc/sysdeps/mips/machine-gmon.h 2003/03/17 15:53:37 1.7
  456. +++ libc/sysdeps/mips/machine-gmon.h 2004/07/20 16:35:31 1.8
  457. @@ -18,6 +18,8 @@
  458. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  459. 02111-1307 USA. */
  460. +#include <sgidefs.h>
  461. +
  462. #define _MCOUNT_DECL(frompc,selfpc) \
  463. static void __attribute_used__ __mcount (u_long frompc, u_long selfpc)
  464. @@ -81,10 +83,10 @@
  465. # define CPRETURN
  466. #endif
  467. -#if defined _ABIN32 && _MIPS_SIM == _ABIN32
  468. +#if _MIPS_SIM == _MIPS_SIM_NABI32
  469. # define PTR_ADDU_STRING "add" /* no u */
  470. # define PTR_SUBU_STRING "sub" /* no u */
  471. -#elif defined _ABI64 && _MIPS_SIM == _ABI64
  472. +#elif _MIPS_SIM == _MIPS_SIM_ABI64
  473. # define PTR_ADDU_STRING "daddu"
  474. # define PTR_SUBU_STRING "dsubu"
  475. #else
  476. --- ./sysdeps/mips/atomicity.h.orig 2004-07-30 19:08:54.638252096 +0200
  477. +++ ./sysdeps/mips/atomicity.h 2004-07-30 19:10:20.967128112 +0200
  478. @@ -21,6 +21,7 @@
  479. #define _MIPS_ATOMICITY_H 1
  480. #include <inttypes.h>
  481. +#include <sgidefs.h>
  482. static inline int
  483. __attribute__ ((unused))
  484. @@ -85,7 +86,7 @@
  485. #if _MIPS_SIM == _MIPS_SIM_ABI32
  486. ".set mips2\n\t"
  487. #endif
  488. -#if defined _ABI64 && _MIPS_SIM == _ABI64
  489. +#if _MIPS_SIM == _MIPS_SIM_ABI64
  490. "lld %1,%5\n\t"
  491. #else
  492. "ll %1,%5\n\t"
  493. @@ -93,7 +94,7 @@
  494. "move %0,$0\n\t"
  495. "bne %1,%3,2f\n\t"
  496. "move %0,%4\n\t"
  497. -#if defined _ABI64 && _MIPS_SIM == _ABI64
  498. +#if _MIPS_SIM == _MIPS_SIM_ABI64
  499. "scd %0,%2\n\t"
  500. #else
  501. "sc %0,%2\n\t"
  502. --- ./sysdeps/mips/dl-machine.h 2004/04/15 14:08:16 1.71
  503. +++ ./sysdeps/mips/dl-machine.h 2004/07/20 16:35:32 1.74
  504. @@ -130,7 +130,7 @@
  505. }
  506. /* The MSB of got[1] of a gnu object is set to identify gnu objects. */
  507. -#if defined _ABI64 && _MIPS_SIM == _ABI64
  508. +#if _MIPS_SIM == _MIPS_SIM_ABI64
  509. # define ELF_MIPS_GNU_GOT1_MASK 0x8000000000000000L
  510. #else
  511. # define ELF_MIPS_GNU_GOT1_MASK 0x80000000L
  512. @@ -254,7 +254,7 @@
  513. }
  514. }
  515. - INTUSE (_dl_signal_error) (0, NULL, NULL, "cannot find runtime link map");
  516. + _dl_signal_error (0, NULL, NULL, "cannot find runtime link map");
  517. return NULL;
  518. }
  519. @@ -281,26 +281,30 @@
  520. #else /* _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64 */
  521. -#define ELF_DL_FRAME_SIZE 64
  522. +#define ELF_DL_FRAME_SIZE 80
  523. #define ELF_DL_SAVE_ARG_REGS "\
  524. - sd $15, 56($29)\n \
  525. + sd $15, 72($29)\n \
  526. sd $4, 8($29)\n \
  527. sd $5, 16($29)\n \
  528. sd $6, 24($29)\n \
  529. sd $7, 32($29)\n \
  530. sd $8, 40($29)\n \
  531. sd $9, 48($29)\n \
  532. + sd $10, 56($29)\n \
  533. + sd $11, 64($29)\n \
  534. "
  535. #define ELF_DL_RESTORE_ARG_REGS "\
  536. - ld $31, 56($29)\n \
  537. + ld $31, 72($29)\n \
  538. ld $4, 8($29)\n \
  539. ld $5, 16($29)\n \
  540. ld $6, 24($29)\n \
  541. ld $7, 32($29)\n \
  542. ld $8, 40($29)\n \
  543. ld $9, 48($29)\n \
  544. + ld $10, 56($29)\n \
  545. + ld $11, 64($29)\n \
  546. "
  547. #define IFABIO32(X)
  548. @@ -362,17 +366,17 @@
  549. \
  550. if (version->hash != 0) \
  551. { \
  552. - value = _dl_lookup_versioned_symbol(strtab + sym->st_name, l, \
  553. - &sym, l->l_scope, version,\
  554. - ELF_RTYPE_CLASS_PLT, 0); \
  555. + value = _dl_lookup_symbol_x (strtab + sym->st_name, l, \
  556. + &sym, l->l_scope, version, \
  557. + ELF_RTYPE_CLASS_PLT, 0, 0); \
  558. break; \
  559. } \
  560. /* Fall through. */ \
  561. } \
  562. case 0: \
  563. - value = _dl_lookup_symbol (strtab + sym->st_name, l, &sym, \
  564. - l->l_scope, ELF_RTYPE_CLASS_PLT, \
  565. - DL_LOOKUP_ADD_DEPENDENCY); \
  566. + value = _dl_lookup_symbol_x (strtab + sym->st_name, l, &sym, \
  567. + l->l_scope, 0, ELF_RTYPE_CLASS_PLT, \
  568. + DL_LOOKUP_ADD_DEPENDENCY, 0); \
  569. } \
  570. \
  571. /* Currently value contains the base load address of the object \