home *** CD-ROM | disk | FTP | other *** search
- Only in tools: Makefile
- diff ../stsrc/tools/ar.c tools/ar.c
- 9a10,13
- > *
- > * MODIFIED:
- > * 10/1990 K. Dalton added minor changes for BSD Unix
- > *
- 11a16
- > #ifdef BSD
- 13c18,22
- < "ar: version 1.01 Copyright (c) 1988 by Sozobon, Limited.";
- ---
- > "ar: version 1.01 Copyright (c) 1988 by Sozobon, Limited.\nar: BSD UNIX port 0.01 Kent Dalton 10/1990";
- > #else
- > static char Version[] =
- > "ar: version 1.01 Copyright (c) 1988 by Sozobon, Limited.\n";
- > #endif
- 21c30
- < #include <ar.h>
- ---
- > #include "ar.h"
- 71a81,85
- > #ifdef BSD
- > char chmstr[1024];
- > #endif
- > int dodelete(), doreplace(), doqappend(), dotable(), doprint(),
- > domove(), doextract();
- 134a149,151
- > #ifdef BSD
- > if (strrchr(afile, '/') != NULL) {
- > #else
- 135a153
- > #endif
- 137c155,159
- < s = strrchr(tfile, '\\');
- ---
- > #ifdef BSD
- > s = strrchr(tfile, '/');
- > #else
- > s = strrchr(tfile, '\\');
- > #endif
- 176a199,202
- > #ifdef BSD
- > sprintf(chmstr,"chmod 660 %s",afile);
- > system(chmstr);
- > #endif
- 261c287
- < int magic;
- ---
- > unsigned short magic;
- 394c420
- < int magic;
- ---
- > unsigned short magic;
- Only in tools: ar.c.~1~
- Only in tools: ar.h
- diff ../stsrc/tools/cc.c tools/cc.c
- 9a10,13
- > *
- > * MODIFIED:
- > * 10/1990 K. Dalton added minor changes for BSD Unix
- > *
- 11a16
- > #ifdef BSD
- 13c18,22
- < "cc: version 1.01 Copyright (c) 1988 by Sozobon, Limited.";
- ---
- > "cc: version 1.01 Copyright (c) 1988 by Sozobon, Limited.\ncc: BSD UNIX port 0.01 by Kent Dalton 10/1990";
- > #else
- > static char Version[] =
- > "cc: version 1.01 Copyright (c) 1988 by Sozobon, Limited.\n";
- > #endif
- 23a33,35
- > #ifdef BSD
- > #include <string.h>
- > #else
- 24a37
- > #endif
- 70c83,88
- < #define LD "ld"
- ---
- > #ifdef BSD
- > #define LD "sld"
- > #else
- > #define LD "ld"
- > #endif
- >
- 94a113,116
- > #ifdef BSD
- > #define DEFPATH "/bin,/sozobon/bin"
- > #define DEFLIB "/lib,/sozobon/lib"
- > #else
- 96a119,120
- > #endif
- >
- 127a152,156
- > #ifdef BSD
- > char cmdln[1024];
- > #else
- > char cmdln[512];
- > #endif
- 129,130d157
- < char cmdln[512];
- <
- 167c194
- < main(argc, argv)
- ---
- > main(argc, argv, envp)
- 169c196,197
- < char *argv[];
- ---
- > char *argv[],
- > *envp[];
- 377a406,410
- > #ifdef BSD
- > static char file[1024];
- > char env[2048];
- > char suf[1024];
- > #else
- 380a414
- > #endif
- 391c425
- < if (*p == ';' || *p == ',')
- ---
- > if (*p == ':' || *p == ';' || *p == ',')
- 416a451,453
- > #ifdef BSD
- > sprintf(file, "/%s%s", b, sptr);
- > #else
- 418c455
- <
- ---
- > #endif
- 427a465,467
- > #ifdef BSD
- > sprintf(file, "%s/%s", eptr, b);
- > #else
- 428a469
- > #endif
- 434c475,477
- <
- ---
- > #ifdef BSD
- > sprintf(file, "%s/%s%s", eptr, b, sptr);
- > #else
- 436c479
- <
- ---
- > #endif
- 458c501,506
- < char cmd[150];
- ---
- > #ifdef BSD
- > char cmd[1024],
- > *arg[200];
- > #else
- > char cmd[150];
- > #endif
- 459a508
- > #ifndef BSD
- 461d509
- < cmd[0] = strlen(cmdline);
- 462a511
- > cmd[0] = strlen(cmdline);
- 463a513,516
- > #else
- > strcpy(cmd, path);
- > strcat(cmd, " ");
- > strcat(cmd, cmdline);
- 464a518,520
- > i = system(cmd);
- > #endif
- >
- 554a611,613
- > #ifdef BSD
- > char apath[1024], *dpath;
- > #else
- 555a615
- > #endif
- 576a637,639
- > #ifdef BSD
- > if ((s = strrchr(dpath, '/')) == NULL) {
- > #else
- 577a641
- > #endif
- 628c692,696
- < char tfile[128];
- ---
- > #ifdef BSD
- > char tfile[1024];
- > #else
- > char tfile[128];
- > #endif
- 640a709,712
- > #ifdef BSD
- > if (tfile[strlen(tfile)-1] != '/')
- > strcat(tfile, "/");
- > #else
- 642a715
- > #endif
- 657c730
- < l = pflag ? PCSU : CSU;
- ---
- > if((l=getenv("CSU")) == NULL) l = pflag ? PCSU : CSU;
- 691c764,765
- < l = pflag ? PLIBM : LIBM;
- ---
- > if((l=getenv("LIBM"))==NULL)
- > l = pflag ? PLIBM : LIBM;
- 699c773,774
- < l = pflag ? PLIBC : LIBC;
- ---
- > if((l=getenv("LIBC")) == NULL)
- > l = pflag ? PLIBC : LIBC;
- Only in tools: cc.c.~1~
- Only in ../stsrc/tools: globs.c
- Only in ../stsrc/tools: makefile
- diff ../stsrc/tools/nm.c tools/nm.c
- 15c15
- < #include <ar.h>
- ---
- > #include "ar.h"
- 18c18
- < int magic;
- ---
- > unsigned short magic;
- diff ../stsrc/tools/size.c tools/size.c
- 17c17
- < #include <ar.h>
- ---
- > #include "ar.h"
- 23c23
- < int magic;
- ---
- > unsigned short magic;
- 77c77
- < int magic;
- ---
- > unsigned short magic;
- Only in ../stsrc/tools: tools.lzh
-