home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / language / sozosun / ld.dif < prev    next >
Encoding:
Text File  |  1993-10-23  |  1.9 KB  |  104 lines

  1. Only in ld: Makefile
  2. diff ../stsrc/ld/ld.c ld/ld.c
  3. 9a10,13
  4. >  *
  5. >  * MODIFIED:
  6. >  *    10/1990  K. Dalton added ifdefs and some cast changes for BSD Unix
  7. >  *
  8. 11a16
  9. > #ifdef BSD
  10. 13c18,22
  11. < "ld Version 1.01  Copyright (c) 1988 by Sozobon, Limited.";
  12. ---
  13. > "ld: Version 1.01  Copyright (c) 1988 by Sozobon, Limited.\nld: BSD UNIX port 0.01 Kent Dalton 10/1990";
  14. > #else
  15. > static    char    Version[] =
  16. > "ld: Version 1.01  Copyright (c) 1988 by Sozobon, Limited.";
  17. > #endif
  18. 30c39,43
  19. ---
  20. > #ifdef BSD
  21. >         char chmstr[1024];
  22. > #else
  23. >         char chmstr[256];    
  24. > #endif
  25. 47a61,64
  26. > #ifdef BSD
  27. >         if ((p = strrchr(files[0].fname, '/')) != NULL)
  28. >             p++;
  29. > #else
  30. 49a67
  31. > #endif
  32. 86a105,108
  33. > #ifdef BSD
  34. >         sprintf(chmstr,"chmod 660 %s",oname);
  35. >         system(chmstr);
  36. > #endif
  37. 174a197
  38. > #ifndef BSD
  39. 178a202
  40. > #endif
  41. Only in ld: ld.c.~1~
  42. diff ../stsrc/ld/ld.h ld/ld.h
  43. 11a12,15
  44. > #ifndef O_RDONLY
  45. > #include <fcntl.h>
  46. > #endif
  47. 22,23c26,28
  48. < #define OPENBR(x)    openb(x,0)
  49. < #define OPENBW(x)    openb(x,1)
  50. ---
  51. > #ifdef BSD
  52. > #define OPENBR(x)    open(x,O_RDONLY)
  53. > #define OPENBW(x)    open(x,O_WRONLY | O_CREAT)
  54. 24a30
  55. > #endif
  56. 25a32,40
  57. > /* I know this is a really braindead thing to do... but... */
  58. > #ifdef BSD
  59. > #define int short
  60. > #define lread(f,p,n)    read(f,p,n)
  61. > #define lwrite(f,p,n)   write(f,p,n)
  62. > #endif
  63. 39c54
  64. <     int magic;
  65. ---
  66. >     unsigned short magic;
  67. Only in ../stsrc/ld: ld.lzh
  68. Only in ../stsrc/ld: makefile
  69. diff ../stsrc/ld/p1.c ld/p1.c
  70. 12a13,15
  71. > #ifdef BSD
  72. > #include <fcntl.h>
  73. > #endif
  74. 61c64,65
  75. <     int i, n, nlost;
  76. ---
  77. >     int n, nlost;
  78. >         unsigned short i;
  79. 69,70c73,74
  80. <     read(ifd, &i, sizeof(int));
  81. <     if (i == OMAGIC)
  82. ---
  83. >     read(ifd, &i, sizeof(unsigned short));
  84. >     if (i == (unsigned short) OMAGIC)
  85. 72c76
  86. <     else if (i == AMAGIC)
  87. ---
  88. >     else if (i == (unsigned short) AMAGIC)
  89. 428a433
  90. diff ../stsrc/ld/p2.c ld/p2.c
  91. 66c66
  92. <     register struct sinfo *lp, *lookup();
  93. ---
  94. >     struct sinfo *lp, *lookup();
  95. 391,392d390
  96. <     long lwrite();
  97.