home *** CD-ROM | disk | FTP | other *** search
- Only in ld: Makefile
- diff ../stsrc/ld/ld.c ld/ld.c
- 9a10,13
- > *
- > * MODIFIED:
- > * 10/1990 K. Dalton added ifdefs and some cast changes for BSD Unix
- > *
- 11a16
- > #ifdef BSD
- 13c18,22
- < "ld Version 1.01 Copyright (c) 1988 by Sozobon, Limited.";
- ---
- > "ld: Version 1.01 Copyright (c) 1988 by Sozobon, Limited.\nld: BSD UNIX port 0.01 Kent Dalton 10/1990";
- > #else
- > static char Version[] =
- > "ld: Version 1.01 Copyright (c) 1988 by Sozobon, Limited.";
- > #endif
- 30c39,43
- <
- ---
- > #ifdef BSD
- > char chmstr[1024];
- > #else
- > char chmstr[256];
- > #endif
- 47a61,64
- > #ifdef BSD
- > if ((p = strrchr(files[0].fname, '/')) != NULL)
- > p++;
- > #else
- 49a67
- > #endif
- 86a105,108
- > #ifdef BSD
- > sprintf(chmstr,"chmod 660 %s",oname);
- > system(chmstr);
- > #endif
- 174a197
- > #ifndef BSD
- 178a202
- > #endif
- Only in ld: ld.c.~1~
- diff ../stsrc/ld/ld.h ld/ld.h
- 11a12,15
- > #ifndef O_RDONLY
- > #include <fcntl.h>
- > #endif
- >
- 22,23c26,28
- < #define OPENBR(x) openb(x,0)
- < #define OPENBW(x) openb(x,1)
- ---
- > #ifdef BSD
- > #define OPENBR(x) open(x,O_RDONLY)
- > #define OPENBW(x) open(x,O_WRONLY | O_CREAT)
- 24a30
- > #endif
- 25a32,40
- >
- > /* I know this is a really braindead thing to do... but... */
- > #ifdef BSD
- > #define int short
- >
- > #define lread(f,p,n) read(f,p,n)
- > #define lwrite(f,p,n) write(f,p,n)
- > #endif
- >
- 39c54
- < int magic;
- ---
- > unsigned short magic;
- Only in ../stsrc/ld: ld.lzh
- Only in ../stsrc/ld: makefile
- diff ../stsrc/ld/p1.c ld/p1.c
- 12a13,15
- > #ifdef BSD
- > #include <fcntl.h>
- > #endif
- 61c64,65
- < int i, n, nlost;
- ---
- > int n, nlost;
- > unsigned short i;
- 69,70c73,74
- < read(ifd, &i, sizeof(int));
- < if (i == OMAGIC)
- ---
- > read(ifd, &i, sizeof(unsigned short));
- > if (i == (unsigned short) OMAGIC)
- 72c76
- < else if (i == AMAGIC)
- ---
- > else if (i == (unsigned short) AMAGIC)
- 428a433
- >
- diff ../stsrc/ld/p2.c ld/p2.c
- 66c66
- < register struct sinfo *lp, *lookup();
- ---
- > struct sinfo *lp, *lookup();
- 391,392d390
- < long lwrite();
- <
-