File: V7_notes

package info (click to toggle)
mawk 1.3.3-11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,244 kB
  • ctags: 1,512
  • sloc: ansic: 13,008; sh: 1,337; yacc: 994; awk: 629; makefile: 150
file content (65 lines) | stat: -rw-r--r-- 1,755 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
				MAWK ON V7 UNIX


09/08/91  Carl Mascott


1.  Prerequisites

hash8 :	from comp.sources.unix volume 15
	used by V7 Makefiles
	When you build hash8 you should add all long ( > 7 char)
	runtime library function names to the reserved word table

memcmp(), memcpy(), memset()
	included in stringlib, comp.sources.unix volume 6
	simple to write if necessary

2.  Procedure

	a.  In ~/mawk:
		Rename Makefile.v7 Makefile
		Rename *.c *.cl
		Rename *.xc *.xcl
		Rename *.h *.hl
		Check CFLAGS and LDFLAGS in Makefile

	    Repeat the applicable portions of the above
	    in ~/mawk/rexp and in ~/mawk/config

	b.  From ~/mawk:
		make config/V7.h
		make config/Idefault.h
		ln config/V7.h config.h

	c.  Do a make in ~/mawk/rexp

	d.  Do a make in ~/mawk

3.  Notes

	a.  V7 sh scripts

The original mawk_test and fpe_test wouldn't run on V7.  V7 sh doesn't
have a comment character ('#').  Since ':' is actually a statement its
arguments need to be quoted if they contain any special characters.

	b.  SW_FP_CHECK

SW_FP_CHECK has been added.  The particular implementation is
for XENIX-68K 2.3A.  There are no checks preceding calls to
fmod() because the check is built into mawk's fmod().  This
would be a problem on a system that needs SW_FP_CHECK but
already has fmod() in the RTL.  The work-around is to always
use mawk's fmod() if using SW_FP_CHECK.

SW_FP_CHECK is activated only if XNX23A is defined.  The
standard V7 Makefile doesn't define XNX23A, so you needn't
concern yourself with SW_FP_CHECK.

	c.  3-argument open()

Mawk always calls open() with the 3rd argument set to 0.  V7
open() really takes only 2 arguments.  With most UNIX C compilers
extra arguments in function calls are harmless, so the open()
calls have not been altered for V7.