Skip to content

Commit c506cb5

Browse files
author
Lefteris Koutsofios
committed
Version: 2016-01-10-beta
RELEASE notes for src/cmd/builtin/RELEASE 16-01-06 added dummy code in builtin.c to keep the linker from optimizing it out RELEASE notes for src/lib/libast/RELEASE 16-01-08 features/lib: fixed syntax error in tst for memccpy that caused the system memccpy to never be used RELEASE notes for src/lib/libexpr/RELEASE 16-01-06 expr.h: modified definition of EXSTYPE to deal with bison/yacc versions
1 parent 0bc6abf commit c506cb5

File tree

7 files changed

+31
-9
lines changed

7 files changed

+31
-9
lines changed

README.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
AST
22
===
33

4-
This is the AT&T Software Technology ast software download site from AT&T Research.
5-
The AT&T AST OpenSource Software Collection provides an overview and Practical Reusable
6-
UNIX Software provides a historical perspective.
7-
You can join the ast and uwin mailgroups, or monitor the mail archives.
8-
There is also an AT&T internal talk.
9-
The man page index contains most of the ast commands and library functions;
10-
command man pages are also available at runtime using the --man or --html option of any ast command.
4+
This is the AT&T Software Technology (AST) toolkit from AT&T Research.
5+
It includes many tools and libraries, like KSH, NMAKE, SFIO, VMALLOC, VCODEX,
6+
etc. It also includes more efficient replacements for a lot of the POSIX tools.
7+
It was designed to be portable across many UNIX systems and also works
8+
under UWIN on Microsoft Windows (see UWIN repo on GitHub under att/uwin).
119

10+
This software is used to build itself, using NMAKE.
11+
After cloning this repo, cd to the top directory of it and run:
12+
13+
./bin/package make
14+
15+
Almost all the tools in this package (including the bin/package script are
16+
self-documenting; run <tool> --man (or --html) for the man page for the tool.
17+
18+
(If you were used to the old AST packaging mechanism, on www.research.att.com,
19+
this repo is equivalent to downloading the INIT and ast-open packages and
20+
running: ./bin/package read on them).

src/cmd/builtin/RELEASE

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
16-01-06 added dummy code in builtin.c to keep the linker from optimizing it out
12
14-02-06 grep.tst: add more --context=... tests
23
13-12-05 ls.tst: move from src/cmd/std
34
13-09-25 cksum.tst: adjust tests for gnu { md5 sha } text/binary indicator

src/cmd/builtin/builtin.c

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@
2525
*/
2626

2727
#include <cmd.h>
28+
29+
// added to prevent the linker from optimizing this whole file out
30+
int _foo_bar (void) {
31+
sfprintf (sfstderr, "");
32+
}

src/lib/libast/RELEASE

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
16-01-08 features/lib: fixed syntax error in tst for memccpy that caused the system memccpy to never be used
12
14-05-12 features/lib: mmap() error return may be ((caaddr_t)0) or ((caaddr_t)-1)
23
14-05-09 misc/optget.c: save opt_info state in case infof callout munges it
34
14-04-15 misc/spawnvex.c: fix nil pointer deref

src/lib/libast/features/lib

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ tst lib_memccpy string.h unistd.h stdlib.h fcntl.h signal.h sys/types.h sys/stat
451451
srcbuf = (char*)mmap(NULL, siz, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
452452
if (srcbuf == (caddr_t)0 || srcbuf == (caddr_t)(-1))
453453
return 0;
454-
addbuf i= mmap(srcbuf + siz, siz, PROT_NONE, MAP_PRIVATE, fd, 0);
454+
addbuf = mmap(srcbuf + siz, siz, PROT_NONE, MAP_PRIVATE, fd, 0);
455455
if (addbuf == (caddr_t)0 || addbuf == (caddr_t)(-1))
456456
return 0;
457457
for (i = 0; i < siz; i++)

src/lib/libexpr/RELEASE

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
16-01-06 expr.h: modified definition of EXSTYPE to deal with bison/yacc versions
12
12-09-16 exeval.c: one more scanf("%[... fix
23
12-07-18 exgram.h,exeval.c: handle scanf("%[^\n]", &v) -- thanks Philippe
34
11-08-25 exparse.y: fix "begin()" frame symbol table check

src/lib/libexpr/expr.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,17 @@
4343
* bison -pPREFIX misses YYSTYPE
4444
*/
4545

46+
// modified ifdefs to deal with different versions of yacc / bison
4647
#if defined(YYSTYPE) || defined(YYBISON)
4748
#define EXSTYPE YYSTYPE
4849
#else
4950
#include <exparse.h>
5051
#if defined(YYSTYPE) || defined(yystype)
51-
#define EXSTYPE YYSTYPE
52+
#define EXSTYPE YYSTYPE
53+
#else
54+
#if defined(YYSTYPE) || defined(YYSTYPE_IS_DECLARED)
55+
#define EXSTYPE YYSTYPE
56+
#endif
5257
#endif
5358
#endif
5459

0 commit comments

Comments
 (0)