chris_demetriou
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:5k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. From cgd@pa.dec.com Fri Aug 15 04:22:21 1997
  2. X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
  3. ["3982" "Thu" "14" "August" "1997" "18:57:55" "-0700" "Chris G. Demetriou" "cgd@pa.dec.com" "<15218.871610275@dnaunix.pa.dec.com>" "126" "patches to get 1.60 beta6 to build on ELF NetBSD/alpha systems" "^From:" nil nil "8" "1997081501:57:55" "patches to get 1.60 beta6 to build on ELF NetBSD/alpha systems" nil nil]
  4. nil)
  5. Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28])
  6.           by analytik.analytikerna.se (8.8.4/8.8.4) with SMTP
  7.   id EAA10207 for <monty@analytikerna.se>; Fri, 15 Aug 1997 04:22:19 +0200 (MET DST)
  8. Received: from mail2.digital.com by MIT.EDU with SMTP
  9. id AA13470; Thu, 14 Aug 97 22:01:37 EDT
  10. Received: from dnaunix.pa.dec.com (dnaunix.pa.dec.com [16.4.208.21])
  11. by mail2.digital.com (8.7.5/UNX 1.5/1.0/WV) with SMTP id SAA15366; 
  12. Thu, 14 Aug 1997 18:58:16 -0700 (PDT)
  13. Received: by dnaunix.pa.dec.com; id AA15044; Thu, 14 Aug 1997 18:57:56 -0700
  14. Message-Id: <15218.871610275@dnaunix.pa.dec.com>
  15. X-Mts: smtp
  16. Content-Length: 3981
  17. From: "Chris G. Demetriou" <cgd@pa.dec.com>
  18. Sender: cgd@pa.dec.com
  19. To: pthreads-bugs@MIT.EDU
  20. Cc: "Chris G. Demetriou" <cgd@pa.dec.com>, pthreads@MIT.EDU
  21. Subject: patches to get 1.60 beta6 to build on ELF NetBSD/alpha systems
  22. Date: Thu, 14 Aug 97 18:57:55 -0700
  23. Enclosed below are patches to pthreads 1.60 beta6 to build on
  24. current NetBSD/alpha systems (which use ELF).  With these patches,
  25. pthreads passes 'make check.'
  26. As an aside, the test_switch test generates _340k_ of output ("a"
  27. for a while, then "ab" for a while) when run one the machine I was
  28. testing on.  In my opinion, that's a ... bit excessive, especially
  29. since 'make check' has to be run interactively!
  30. chris
  31. ============================================================================
  32. diff -rc pthreads-1_60_beta6.orig/config/Makefile.in pthreads-1_60_beta6/config/Makefile.in
  33. *** pthreads-1_60_beta6.orig/config/Makefile.in Thu Mar 21 20:29:54 1996
  34. --- pthreads-1_60_beta6/config/Makefile.in Thu Aug 14 17:56:55 1997
  35. ***************
  36. *** 29,35 ****
  37.   # pathname for srcdir here, and live with it.
  38.   srcdir = $(srctop)
  39.   
  40. ! beforeinstall:: install-dirs
  41.   
  42.   .include "${srcdir}/pthreads/Makefile.inc"
  43.   .include "${srcdir}/stdlib/Makefile.inc"
  44. --- 29,35 ----
  45.   # pathname for srcdir here, and live with it.
  46.   srcdir = $(srctop)
  47.   
  48. ! beforeinstall: install-dirs
  49.   
  50.   .include "${srcdir}/pthreads/Makefile.inc"
  51.   .include "${srcdir}/stdlib/Makefile.inc"
  52. diff -rc pthreads-1_60_beta6.orig/machdep/syscall-alpha-netbsd-1.1.S pthreads-1_60_beta6/machdep/syscall-alpha-netbsd-1.1.S
  53. *** pthreads-1_60_beta6.orig/machdep/syscall-alpha-netbsd-1.1.S Wed Nov 13 13:03:28 1996
  54. --- pthreads-1_60_beta6/machdep/syscall-alpha-netbsd-1.1.S Thu Aug 14 18:03:27 1997
  55. ***************
  56. *** 35,54 ****
  57.    .frame sp,0,ra ;
  58.    ldiq v0, CONCAT(SYS_,x) ;
  59.    CHMK() ;
  60. !  beq a3, 2f ;
  61. !  br gp, 1f ;
  62. ! 1: ;
  63.    /* Load gp so we can find cerror to jump to.  */;
  64.    ldgp gp, 0(gp) ;
  65. !  jmp zero, machdep_cerror ;
  66. ! 2:
  67.   
  68.   #define XSYSCALL(x) SYSCALL(x) ; RET ; .end CONCAT(machdep_sys_,x)
  69.   
  70.    .globl machdep_cerror 
  71.   machdep_cerror:
  72. !  br t0, 1f
  73. ! 1:
  74.    ldgp gp, 0(t0)
  75.    stl v0, errno
  76.   #if 0
  77. --- 35,54 ----
  78.    .frame sp,0,ra ;
  79.    ldiq v0, CONCAT(SYS_,x) ;
  80.    CHMK() ;
  81. !  beq a3, CONCAT(Lsys_noerr_,x) ;
  82. !  br gp, CONCAT(Lsys_err_,x) ;
  83. ! CONCAT(Lsys_err_,x): ;
  84.    /* Load gp so we can find cerror to jump to.  */;
  85.    ldgp gp, 0(gp) ;
  86. !  jmp zero, machdep_cerror ;
  87. ! CONCAT(Lsys_noerr_,x):
  88.   
  89.   #define XSYSCALL(x) SYSCALL(x) ; RET ; .end CONCAT(machdep_sys_,x)
  90.   
  91.    .globl machdep_cerror 
  92.   machdep_cerror:
  93. !  br t0, Lmachdep_cerror_setgp
  94. ! Lmachdep_cerror_setgp:
  95.    ldgp gp, 0(t0)
  96.    stl v0, errno
  97.   #if 0
  98. diff -rc pthreads-1_60_beta6.orig/machdep/syscall-template-alpha-netbsd-1.1.S pthreads-1_60_beta6/machdep/syscall-template-alpha-netbsd-1.1.S
  99. *** pthreads-1_60_beta6.orig/machdep/syscall-template-alpha-netbsd-1.1.S Mon Apr 22 23:15:42 1996
  100. --- pthreads-1_60_beta6/machdep/syscall-template-alpha-netbsd-1.1.S Thu Aug 14 17:58:14 1997
  101. ***************
  102. *** 31,43 ****
  103.    .frame sp,0,ra ;
  104.    ldiq v0, SYS_##x ;
  105.    CHMK() ;
  106. !  beq a3, 2f ;
  107. !  br gp, 1f ;
  108. ! 1: ;
  109.    /* Load gp so we can find cerror to jump to.  */;
  110.    ldgp gp, 0(gp) ;
  111. !  jmp zero, machdep_cerror ;
  112. ! 2:
  113.   
  114.   #define SIMPLE_SYSCALL(x) SYSCALL(x) ; ret ; .end machdep_sys_##x
  115.   
  116. --- 31,43 ----
  117.    .frame sp,0,ra ;
  118.    ldiq v0, SYS_##x ;
  119.    CHMK() ;
  120. !  beq a3, Lsys_noerr_##x ;
  121. !  br gp, Lsys_err_##x ;
  122. ! Lsys_err_##x: ;
  123.    /* Load gp so we can find cerror to jump to.  */;
  124.    ldgp gp, 0(gp) ;
  125. !  jmp zero, machdep_cerror ;
  126. ! Lsys_noerr_##x:
  127.   
  128.   #define SIMPLE_SYSCALL(x) SYSCALL(x) ; ret ; .end machdep_sys_##x
  129.   
  130. diff -rc pthreads-1_60_beta6.orig/pthreads/process.c pthreads-1_60_beta6/pthreads/process.c
  131. *** pthreads-1_60_beta6.orig/pthreads/process.c Tue Nov 12 05:45:16 1996
  132. --- pthreads-1_60_beta6/pthreads/process.c Thu Aug 14 18:12:49 1997
  133. ***************
  134. *** 40,45 ****
  135. --- 40,47 ----
  136.   #include <stdarg.h>
  137.   #include <unistd.h>
  138.   
  139. + extern void *alloca();
  140.   #ifndef lint
  141.   static const char rcsid[] = "$Id$";
  142.   #endif