Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dsuvax!ghelmer From: ghelmer@dsuvax.uucp (Guy Helmer) Newsgroups: comp.os.minix Subject: gawk ported to MINIX-386, c-news port in progress, & bug reports Message-ID: <1991Feb11.164833.12179@dsuvax.uucp> Date: 11 Feb 91 16:48:33 GMT Organization: Dakota State University Lines: 34 I've been working on porting C-news to MINIX, and as part of the process I've found that bawk couldn't handle the c-news awk scripts. So, I grabbed gawk-2.11, replaced it's total dependence on floating point with long integers, and tweaked a couple of things to get it to compile under MINIX. Now, it works great -- does anyone want it, and if so should I post diffs or complete source? It should work under any MINIX with sizeof(int) = 4, and might just work with some effort on PC MINIX. C-news _almost_ runs. /bin/sh needs help, as it can't run the C-news configure script, so I generated the doit.* scripts on my VAX. Bruce's C compiler doesn't like to pass/return structures to/from functions, so I've hacked dbz & friends. C-news' fast stdio doesn't work with MINIX, but I've brought up estdio2, which probably works at least as fast (it is a very impressive package!). putenv(3) seems broken (see below) and dbz doesn't quite pass the regression tests yet. putenv(3) (in lib/other/putenv.c) is broken. It won't replace a defined environment variable with a new value. When replacing an old definition of an environment variable with a new one, can (and should) one do a free(3) on the old environment string before malloc(3) for the new string? Cristoph's cc68/386 gives a "memory fault: core dumped" now that I've compiled with estdio2; it used to dump gibberish into the .s files when compiled with the plain stdio. Also, the "-DNOFLOAT" option didn't seem to be completely implemented, as genfloat() and gendouble() were left in genstmt.c and a couple of floating-point related things were left in other files. Has anyone developed an out386_bcc.c? -- Guy Helmer helmer@sdnet.bitnet, uunet!dsuvax!ghelmer Dakota State University Computing Services ------------------- (605) 256-5315 MidIX -- networks, databases, DOS, UNIX, & MINIX ------------- (605) 256-2788