diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-11-18 23:36:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-11-18 23:36:03 +0200 |
commit | 6edb8f2c771b73d2cadf8e8c42b1d85c805b46f5 (patch) | |
tree | 1308a4c6a9bb825a2799794d7102b86364caef3f | |
parent | 6f3612539c425da2bc1d34db621696e6a273b01c (diff) | |
download | egawk-6edb8f2c771b73d2cadf8e8c42b1d85c805b46f5.tar.gz egawk-6edb8f2c771b73d2cadf8e8c42b1d85c805b46f5.tar.bz2 egawk-6edb8f2c771b73d2cadf8e8c42b1d85c805b46f5.zip |
Remove unsupported / obsolete files. Add files for bootstrapping.
42 files changed, 82 insertions, 2591 deletions
@@ -1,8 +1,10 @@ -Thu Nov 18 16:01:58 2010 Arnold D. Robbins <arnold@skeeve.com> +Thu Nov 18 23:28:23 2010 Arnold D. Robbins <arnold@skeeve.com> * configure.ac: Remove `--enable-portals' option. I don't think anyone ever used it. * io.c (two_way_open): Remove the code for portals. + * README.cvs, README.git, bootstrap.sh: New files for storage + in the Git repository. Tue Nov 16 11:56:31 2010 Arnold D. Robbins <arnold@skeeve.com> diff --git a/README.cvs b/README.cvs new file mode 100644 index 00000000..341bf54c --- /dev/null +++ b/README.cvs @@ -0,0 +1,19 @@ +Thu Nov 18 23:26:17 IST 2010 +============================ + +If you are reading this, you are looking in the wrong file. Gawk is +no longer maintained in CVS. It is maintained in git from savannah.gnu.org. + +Please execute ./bootstrap.sh before invoking the usual incantaton of +`./configure && make && make check'. This version of bootstrap.sh +should work OK. + +Bug reports should be sent to bug-gawk@gnu.org. Note that posting in +comp.lang.awk is generally a bad idea, no matter what the purpose, but +especially if you wish to report a gawk bug. Use the above email address. +Really. + +Thanks, + +Arnold Robbins +Gawk Maintainer diff --git a/README.git b/README.git new file mode 100644 index 00000000..b669e4f8 --- /dev/null +++ b/README.git @@ -0,0 +1,19 @@ +Thu Nov 18 23:27:08 IST 2010 +============================ + +If you are reading this, you have retrieved the gawk code base via +Git from savannah.gnu.org. This is good; gawk no longer uses CVS. + +Please execute ./bootstrap.sh before invoking the usual incantaton of +`./configure && make && make check'. This version of bootstrap.sh +should work OK. + +Bug reports should be sent to bug-gawk@gnu.org. Note that posting in +comp.lang.awk is generally a bad idea, no matter what the purpose, but +especially if you wish to report a gawk bug. Use the above email address. +Really. + +Thanks, + +Arnold Robbins +Gawk Maintainer diff --git a/README_d/OBSOLETE/README.FIRST b/README_d/OBSOLETE/README.FIRST deleted file mode 100644 index 4957cb32..00000000 --- a/README_d/OBSOLETE/README.FIRST +++ /dev/null @@ -1,21 +0,0 @@ -Sat Feb 18 23:07:55 EST 1995 - -Starting with 2.15.6, gawk will preserve the value of NF and $0 for -the last record read into the END rule(s). This is important to you -if your program uses - - print - -in an END rule to mean - - print "" - -(i.e., print nothing). Examine your awk programs carefully to make sure -that they use `print ""' instead of `print', otherwise you will get -strange results. - -If you send me email about this, without having read this -file, I will yell at you. - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/OBSOLETE/README.linux b/README_d/OBSOLETE/README.linux deleted file mode 100644 index 9ba15c51..00000000 --- a/README_d/OBSOLETE/README.linux +++ /dev/null @@ -1,21 +0,0 @@ -Thu Apr 17 14:41:17 EDT 1997 - -Some Linux systems, notably RedHat systems through RedHat 4.1, have the -symbolic links for /dev/stdin and /dev/stdout messed up. Specifically, -/dev/stdin is linked to ../proc/self/fd/1 and /dev/stdout to -../proc/self/fd/0. This is backwards. This causes strange behavior -when using those files from within gawk. - -Removing and redoing the symlinks fixes the problem. It is fixed in -post-4.1 RedHat Linux. - -Arnold Robbins -arnold@skeeve.com - -Sun Aug 3 15:07:06 EDT 1997 - -As of version 3.1 of gawk, this is no longer a problem, since gawk now -completely interprets the special file names internally. - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/OBSOLETE/README.sco b/README_d/OBSOLETE/README.sco deleted file mode 100644 index 71494b77..00000000 --- a/README_d/OBSOLETE/README.sco +++ /dev/null @@ -1,67 +0,0 @@ -Tue Dec 24 22:41:39 EST 1996 - -SCO's awk has a -e option which is similar to gawk's --source option, -allowing you to specify the script anywhere on the awk command line. - -This can be a problem, since gawk will install itself as `awk' in -$(bindir). If this is ahead of /bin and /usr/bin in the search path, -several of SCO's scripts that use -e will break, since gawk does not -accept this option. - -The solution is simple. After doing a `make install', do: - - rm -f /usr/local/bin/awk # or wherever it is installed. - -This removes the `awk' symlink so that SCO's programs will continue -to work. - -If you complain to me about this, I will fuss at you for not having -done your homework. - -Arnold Robbins -arnold@skeeve.com - ---------------------------- -Date: 14 Oct 1997 12:17 +0000 -From: Leigh Hebblethwaite <LHebblethwaite@transoft.com> -To: bug-gnu-utils@prep.ai.mit.edu - -I've just built gawk 3.0.3 on my system and have experienced a problem -with the routine pipeio2.awk in the test suite. However the problem -appears to be in the tr command rather than gawk. - -I'm using SCO Open Server 5. On the version I have there appears to be -a problem with tr such that: - - tr [0-9]. ........... - -does NOT translate 9s. This means that the output from: - - echo " 5 6 7 8 9 10 11" | tr [0-9]. ........... - -is: - - . . . . 9 .. .. - -This problem causes the pipeio2 test to be reported as a failure. - -Note that the following variation on the tr command works fine: - - tr 0123456789. ........... - -For your info the details of my system are summarised by the out put -of the uname -X command, which is: - -System = SCO_SV -Node = sgscos5 -Release = 3.2v5.0.2 -KernelID = 96/01/23 -Machine = Pentium -BusType = EISA -Serial = 4EC023443 -Users = 5-user -OEM# = 0 -Origin# = 1 -NumCPU = 1 - - diff --git a/README_d/OBSOLETE/README.sony b/README_d/OBSOLETE/README.sony deleted file mode 100644 index 29ba875e..00000000 --- a/README_d/OBSOLETE/README.sony +++ /dev/null @@ -1,12 +0,0 @@ -Sun Jan 19 23:13:50 EST 1997 - -> Machine: SONY NWS-5000 (MIPS r4000) -> OS : NEWS-OS 4.2.1 (4.3BSD compatible) -> This OS doesn't have `uname' -> Tools : gcc-2.7.2.1, bison-1.25, cmp-2.7, bash-2.0 - -This system has the same problem with the test/tweakfld case that Ultrix MIPS -has. See the README.ultrix file for details. - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/OBSOLETE/README.ultrix b/README_d/OBSOLETE/README.ultrix deleted file mode 100644 index 917f02f5..00000000 --- a/README_d/OBSOLETE/README.ultrix +++ /dev/null @@ -1,46 +0,0 @@ -When compiling on DECstation running Ultrix 4.0 a command 'cc -c -O -regex.c' is causing an infinite loop in an optimizer. Other sources -compile fine with -O flag. If you are going to use this flag either -add a special rule to Makefile for a compilation of regex.c, or issue -'cc -c regex.c' before hitting 'make'. - -From: Steve Simmons <scs@wotan.iti.org> -Subject: Non-bug report on gawk 2.13.2 -To: david@cs.dal.ca, arnold@skeeve.atl.ga.us -Date: Thu, 25 Jul 1991 13:45:38 -0300 - -Just fyi -- it passes tests with flying colors under Ultrix 4.2. The -README.ultrix file applies more than ever. You might want to add -these paragraphs to it: - - As of Ultrix 4.2 the optimise works for regex.c, but you must give an - additional switch to get everything optimised. Using '-Olimit 1500' - does the job. Without the switch gawk will compile and run correctly, - but you will get complaints about lost optimisations in builtin.c, - awk.tab.c and regex.c. - -From: Arnold Robbins <arnold@math.utah.edu> -Date: Sun Sep 8 07:05:07 EDT 1996 - -On Decstations using Ultrix 4.3, the tweakfld test case will fail. It -appears that routines in the math library return very small but non-zero -numbers in cases where most other systems return zero. - -From: Juergen Kahrs <jkahrs@castor.atlas.de> -Date: Wed Jan 17 13:15:34 MET 2001 - -On Ultrix 4.3, configure like this: - - ./configure --disable-nls - -In custom.h, we defined HAVE_MKTIME in order to avoid a linker error. -If you compile with - - make check - -every test will pass, except for the badargs test: - - *** Error code 1 (ignored) - -This shouldnt cause problems. - diff --git a/README_d/OBSOLETE/README.yacc b/README_d/OBSOLETE/README.yacc deleted file mode 100644 index 6332986b..00000000 --- a/README_d/OBSOLETE/README.yacc +++ /dev/null @@ -1,10 +0,0 @@ -Sat Jan 28 22:07:17 EST 1995 - -Some older versions of yacc (notably Ultrix's) have limits on the depth -of the parse stack. This only shows up when gawk is dealing with deeply -nested control structures, such as those in `awf'. - -The problem goes away if you use either bison or Berkeley yacc. - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/README.aix b/README_d/README.aix deleted file mode 100644 index 283d3873..00000000 --- a/README_d/README.aix +++ /dev/null @@ -1,6 +0,0 @@ -Tue Mar 11 13:21:26 IST 2003 -============================ - -On AIX 4.2 systems, you need: - - ./configure --disable-nls && make all check install diff --git a/README_d/README.atari b/README_d/README.atari deleted file mode 100644 index 0c7fd74b..00000000 --- a/README_d/README.atari +++ /dev/null @@ -1,26 +0,0 @@ -Sun May 2 18:40:46 IDT 1999 - -See the README.1st file in the atari directory. - --------------------------------------------------------- -Gawk on the Atari has been compiled and tested using gcc, both -with and without -mshort flag. Other compilers can be used but if -sizeof(pointer) != sizeof(int) this code will not compile correctly -with a non-ANSI compiler (prototypes and library). - -Compiled executables were tested and passed successfully a test suite -similar to 'make test'. Required changes are minor and minor -modifications are due to differences in environment and/or shell. If -a need will arise a modified test suite with a driving Makefile (for -gulam) is available on a request from Michal Jaegermann, -michal@gortel.phys.ualberta.ca or michal@ellpspace.math.ualberta.ca, -via e-mail. - -Sample files atari/Makefile.st, atari/Makefile.awklib and -atari/config.h assume gcc compilation and execution under TOS; it is -likely that one would want to change it for another setup. If they -are ok then copy atari/Makefile.st to Makefile, atari/config.h to -config.h and atari/Makefile.awklib to awklib/Makefile.. Pay attention -to code fragments bracketed by '#ifdef atarist ... #endif'. These -modifications may not be required/desired with a different OS and/or -libraries. diff --git a/README_d/README.beos b/README_d/README.beos deleted file mode 100644 index fa346ab3..00000000 --- a/README_d/README.beos +++ /dev/null @@ -1,92 +0,0 @@ -Fri Jul 3 11:21:56 IDT 2009 -============================ -The BeOS port is unsupported. - - -README for GNU awk under BeOS -Last updated MCB, Tue Feb 6 10:15:46 GMT 2001 -============================================= - -BeOS port contact: Martin C Brown (mc@whoever.com) - -Building/Installing --------------------------- - -Since BeOS DR9, all the tools that you should need to build gawk are now -included with BeOS. The process is basically identical to the Unix process -of running configure and then make. Full instructions are given below: - -You can compile gawk under BeOS by extracting the standard sources, -and running the configure script. You MUST specify the location prefix -for the installation directory. Under BeOS DR9 and beyond the best -directory to use is /boot/home/config, so the configure command -would be: - -$ configure --prefix=/boot/home/config - -This will install the compiled application into /boot/home/config/bin, -which is already specified in the standard PATH. - -Once the configuration process has been completed, you can run make and -then make install: - -$ make -.... -$ make install - -Socket Notes ----------------------- - -Due to the socket implementation under BeOS not all of the features under -gawk's socket implementation may work properly. In particular: - - BeOS does not support a BSD SO_LINGER option, so sockets cannot remain - open after a close if data is still present on the incoming buffer. - - BeOS does not allow data to be read from a socket without removing the data - from the buffer (peek). If you need to use this feature in gawk, create a - separate input buffer and peek into your own copy, rather than the OS version. - - BeOS does not support RAW socket connections, only UDP or TCP. - -Note that these are BeOS Unix-layer compatibility problems, and only affect certain -aspects of network communication. Most socket based gawk scripts, and any scripts -that do not rely on sockets should work fine (excepting any other notes in this section). - -File Handle Notes ---------------------------- - -Expect the multiple file test (when running make check) to fail. The reason for this is -explained in the email shown below: - -------------------------------------------------------- -From mc@whoever.com Sun Jul 23 17:06:38 2000 -Date: Sun, 23 Jul 2000 07:23:49 +0100 -Subject: Re: gawk-3.0.5 results on BeOS -From: Martin C Brown <mc@whoever.com> -To: Aharon Robbins <arnold@skeeve.com>, <haible@ilog.fr> - -Arnold/Bruno, - -> This is a known BeOS problem. I am cc'ing the BeOS port person. -> Sorry I don't have a fix. - -This problem is directly related to the FOPEN_MAX/OPEN_MAX parameter used in -the stdio library by the BeOS. It seems that the BeOS strictly enforces this -number to the point that opening the 128th file causes all previously opened -files (except stdin/out/err) to be closed - hence the bad number. - -I've tried this outside of gawk and the same thing happens, so it's not a -gawk problem. - -I've spent the past few days trying to find a suitable workaround, but it's -obviously difficult trying to patch a kernel from the outside :)) - -I'll be reporting this as a bug to Be shortly. - -MC - --- -Martin 'MC' Brown, mc@mcslp.com http://www.mcwords.com -Writer, Author, Consultant -'Life is pain, anyone who says differently is selling something' diff --git a/README_d/README.hpux b/README_d/README.hpux deleted file mode 100644 index 78e6f356..00000000 --- a/README_d/README.hpux +++ /dev/null @@ -1,78 +0,0 @@ -Wed Jul 28 16:28:42 IDT 2004 -============================ -As of gawk 3.1.4, configure should correctly handle HP-UX and -I18N issues. -- Arnold --------------------------------------------------------------- -2003-12-10 15:19:38 EST -Michael Elizabeth Chastain <mec.gnu@mindspring.com> - -I built and tested gawk on hppa-hp-hpux11.11 and ia64-hp-hpux11.23. -All the tests in the test suite passed. - -I built with these compilers: - - gcc 3.3.2 - hp ansi C from /opt/ansic/bin - hp aCC from /opt/aCC/bin - -I ran into these problems: - - NLS does not work; configure with --disable-nls. - -D_XOPEN_SOURCE=500 does not work. - Multibyte support is not available. - -To get multibyte support, the following ugly hack might work: ---- gawk-3.1.3.orig/custom.h 2003-06-09 17:45:53.000000000 +0200 -+++ gawk-3.1.3/custom.h 2003-12-17 15:55:04.000000000 +0100 -@@ -101,4 +101,7 @@ - #undef HAVE_TZSET - #define HAVE_TZSET 1 - #define _TZSET 1 -+/* an ugly hack: */ -+#include <sys/_mbstate_t.h> -+#define HAVE_MBRTOWC 1 - #endif - -------------------------------- -Mon, 27 May 2002 17:55:46 +0800 - -The network support "|&" may not work under HP-UX 11. -An error message appears similar to this: -gawk: test_script.awk:3: fatal: get_a_record: iop->buf: can't allocate -61246 -bytes of memory (not enough space) - -Solution: -This is a bug in the fstat() call of HP-UX 11.00, please apply -the cumulative ARPA Transport patch PHNE_26771 to fix it. - -The following is the related description in PHNE_26771: - - Customer's application gets the wrong value from fstat(). - Resolution: - The value returned via st_blksize is now retrieved - from the same info as in 10.20. - -In case you cannot apply the HP patch, the attached patch to gawk source -might work. - -Xiang Zhao <xiangz@163.net> -Stepan Kasal <kasal@math.cas.cz> - -diff -ur gawk-3.1.3.a0/posix/gawkmisc.c gawk-3.1.3.a1/posix/gawkmisc.c ---- gawk-3.1.3.a0/posix/gawkmisc.c Sun May 25 15:26:19 2003 -+++ gawk-3.1.3.a1/posix/gawkmisc.c Fri Jul 11 08:56:03 2003 -@@ -126,7 +126,13 @@ - * meant for in the first place. - */ - #ifdef HAVE_ST_BLKSIZE --#define DEFBLKSIZE (stb->st_blksize > 0 ? stb->st_blksize : BUFSIZ) -+ /* -+ * 100k must be enough for everybody, -+ * bigger number means probably a bug in fstat() -+ */ -+#define MAXBLKSIZE 102400 -+#define DEFBLKSIZE (stb->st_blksize > 0 && stb->st_blksize <= MAXBLKSIZE \ -+ ? stb->st_blksize : BUFSIZ) - #else - #define DEFBLKSIZE BUFSIZ - #endif diff --git a/README_d/README.ia64 b/README_d/README.ia64 deleted file mode 100644 index 844d6a6a..00000000 --- a/README_d/README.ia64 +++ /dev/null @@ -1,30 +0,0 @@ -Tue Mar 11 13:19:45 IST 2003 -============================ - -On real Itanium systems, builds with GCC are fine. If you're using the -Intel compiler `ecc', you need: - - CC=ecc ./configure && make all check install CFLAGS='-g -Drestrict=' - -Tue Apr 16 13:55:15 IDT 2002 -============================ -The current version of the IA-64 environment builds gawk without any problems. - -Wed Apr 25 17:17:01 IDT 2001 -============================ - -The Intel IA-64 emulation environment that sits on top of 32-bit Linux -has problems. Gawk does not work on it. - -1. The `sgicc' compiler lies to `configure' and pretends it's gcc. But it -really isn't, and several things don't work. - -2. Even if used with gcc, the executable doesn't run; somehow quoted -strings don't stay as one argument to gawk, which is, of course, -disastrous. - -3. It's flaky; initially `configure' wouldn't even get past the getpgrp -test. Then later it would. - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/README.macos b/README_d/README.macos deleted file mode 100644 index 684e0281..00000000 --- a/README_d/README.macos +++ /dev/null @@ -1,32 +0,0 @@ -Mon Jun 11 05:37:03 IDT 2007 -============================ - -The notes below no longer seem to apply. - -Mon Jul 4 09:55:22 IDT 2005 -============================ - -If you use GCC 4.0 under Mac OS X to compile gawk with optimization, -AND multibyte support is *disabled*, the `ignrcas2' test fails. This is -a compiler bug. Either compile it without optimization, or use gcc-3.3. - -All the other tests pass. - -Happily, the default is for the multibyte support to be enabled, so all -the tests pass by defualt. - - -Sun Dec 3 18:11:09 IST 2000 -============================ - -The `posix' test will fail because of output format differences but this -is apparently otherwise benign. - -Gawk uses the system's mktime(3) routine, even though Autoconf thinks -it's broken, so Caveat Emptor. - -If you ask me about either of these I will fuss at you for not having -done your homework. - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/README.pcdynamic b/README_d/README.pcdynamic deleted file mode 100644 index 678206e6..00000000 --- a/README_d/README.pcdynamic +++ /dev/null @@ -1,93 +0,0 @@ -This is the README for dynamic extension support for GNU awk 3.1.2 under Windows32 -This part of the README is directed to the gawk maintainers. - -The implementation consists of - -pc/dlfcn.h -pc/dlfcn.c - An implementation of the POSIX dynamic loading functions for Windows32. - Bugs and limitations: - the RTLD_* flags are ignored - passing NULL as the module name is not really supported. - dlerror() doesn't always generate useful output. - -pc/w32dynamic.patch - A patch to pc/Makefile. This adds macros to allow dynamic loading - to be compiled in. The macros (DYN_EXP, DYN_OBJ, DYN_FLAGS, and - DYN_MAKEXP) are commented-out by default (which is the default on - Unix as well). I've added definitions only for MS VC and MinGW. - I also added support for pgawk under MS VC and MinGW. - -pc/gawkw32.def - A list of functions to export from gawk.exe. Every function used - in an extension DLL needs to be in this file. I've added the ones - required by the provided examples, but some thought should go into - determining a useful set of API functions. From a maintenance - perspective, it's important that the ordinals (the number following @) - never change. You can use an existing DLL with a gawk.exe which has - new exported functions, but if you change the ordinal of an existing - function, you have to recompile all the extensions that use it. - -extension/Makefile.pc - A make file which compiles a few of the extension examples. - Only readfile, ordchr, and arrayparm are built, since the - other functions didn't compile without sizeable modifications. - -extension/pcext.def - A module definition file which exports dlload. - -extension/w32dynamic.patch - A patch to readfile.c to have it open files in binary mode. Without - this, the bytes read doesn't always match the file size. - -w32dynamic.patch - A patch to awk.h. This makes the temporary variable _t static and - adds an attribute to some data declarations when WIN32_EXTENSION is - defined. The issue is that data imported from a separate module has - a different level of indirection from the same data in the - original module. The difference can be made transparent by adding - __declspec(dllimport)) to the declarations used in the importing module. - Since _t doesn't actually have to be shared, I've just made it - static to the extension module and avoided the problem. - -README_d/README.pcdynamic - This file. - -The remainder of the file is intended for people installing and using gawk -and probably ought to be added to README.pc ---- -To compile gawk with dynamic extension support, uncomment the -definitions of DYN_FLAGS, DYN_EXP, DYN_OBJ, and DYN_MAKEXP in the -configuration section of Makefile. There are two definitions for -DYN_MAKEXP -- pick the one that matches your target. - -To build some of the example extension libraries, cd to the extension -directory and copy Makefile.pc to Makefile. You can then build using the same -two targets. To run the example awk scripts, you'll need to either change the -call to the `extension' function to match the name of the library (for -instance, change "./ordchr.so" to "ordchr.dll" or simply "ordchr"), or rename -the library to match the call (for instance, rename ordchr.dll to ordchr.so). - -If you build gawk.exe with one compiler but want to build an extension library -with the other, you need to copy the import library. Visual C uses a library -called gawk.lib, while MinGW uses a library called libgawk.a. These files -are equivalent and will interoperate if you give them the correct name. -The resulting shared libraries are also interoperable. - -To create your own extension library, you can use the examples as models, but -you're essentially on your own. Post to comp.lang.awk or send e-mail to -ptjm@interlog.com if you have problems getting started. If you need to access -functions or variables which are not exported by gawk.exe, add them to -gawkw32.def and rebuild. You should also add ATTRIBUTE_EXPORTED to the -declaration in awk.h of any variables you add to gawkw32.def. - -Note that extension libraries have the name of the awk executable embedded in -them at link time, so they will work only with gawk.exe. In particular, they won't -work if you rename gawk.exe to awk.exe or if you try to use pgawk.exe. You can -perform profiling by temporarily renaming pgawk.exe to gawk.exe. You can resolve -this problem by changing the program name in the definition of DYN_MAKEXP for -your compiler. - -On Windows32, libraries are sought first in the current directory, then in the -directory containing gawk.exe, and finally through the PATH environment -variable. diff --git a/README_d/README.sgi b/README_d/README.sgi deleted file mode 100644 index 5d754a81..00000000 --- a/README_d/README.sgi +++ /dev/null @@ -1,20 +0,0 @@ -Tue Jan 30 10:51:39 IST 2001 - -There will be linker warnings on SGI Irix will be building gawk. -These are related to use of dlopen and the dynamic loading of -builtins. The warnings can be ignored. -====================================== -Tue May 2 11:40:54 IDT 2000 - -GCC and gawk often don't mix on SGI systems. Use the native C compiler to -compile gawk. `make test' should work ok, although the `tweakfld' test -may fail. That's ok; see README.ultrix for the details on that one. - -Note that the SGI compiler will complain about some constructs in -regex.c and dfa.c. It's ok to ignore those complaints. - -If you ask me about this, I will fuss at you for not having done -your homework! - -Arnold Robbins -arnold@skeeve.com diff --git a/README_d/README.sunos4 b/README_d/README.sunos4 deleted file mode 100644 index 7cef0684..00000000 --- a/README_d/README.sunos4 +++ /dev/null @@ -1,24 +0,0 @@ -Sun Jan 7 23:49:46 EST 1996 - -GCC and Autoconf disagree about the type of the array argument passed -to getgroups(2). You can thus ignore the warning that gcc will -generate under SunOS 4.1.x for io.c. - -If you send me email about this without having read this file, I will -fuss at you! - -Arnold Robbins -arnold@skeeve.com - -Tue Jan 30 07:01:39 EST 1996 - -The manyfiles test fails under SunOS 4.1.4. There appears to be some -bug in libc (shared and static) for SunOS 4.1.4. I got a working gawk -binary by linking in /usr/5lib/libc.a statically. - - -,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-, - Jim Farrell | phone 610-940-6020 | Platinum technology -Systems Administrator | vmail 800-526-9096 x7512 | 620 W. Germantown Pike - jwf@platinum.com | fax 610-940-6021 | Plymouth Meeting,Pa,19462 -'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~' diff --git a/README_d/README.tandem b/README_d/README.tandem deleted file mode 100644 index 3f7ba930..00000000 --- a/README_d/README.tandem +++ /dev/null @@ -1,33 +0,0 @@ -The Tandem port was done on a Cyclone machine running D20. -The port is pretty clean and all facilities seem to work except for -some of the I/O piping stuff which is just too foreign a concept for -Tandem. - -Usage is as for UNIX except that D20 requires all "{" and "}" characters -to be escaped with "~" on the command line (not in script files) and the -standard Tandem syntax for "/in filename,out filename/" must be used -instead of the usual UNIX "<" and ">" for file redirection. (Redirection -options on getline, print etc are supported.) - -The -mr=val option has been "stolen" to enable Tandem users to -process fixed-length records with no "end-of-line" character. That -is, -mr=74 tells gawk to read the input file as fixed 74-byte -records. - -To build a Tandem executable from source, down-load all of the files -so that the file names on the Tandem box are, for example ARRAYC or -AWKH. That is, make all of the file names conform to the restrictions -of D20. The "totally Tandem-specific" files are in the tandem -"subvolume" and should be copied to the main src directory before -building gawk. - -The file compit can then be used to compile and bind an executable. -Sorry, no make and no autoconfig. - -This is my first UNIX port to Tandem so I may well have missed the best -way of doing things: I just desperately needed a working awk at a -Tandem shop. - -Cheers, -Stephen Davies -(scldad@sdc.com.au) @@ -21,9 +21,9 @@ Add tests for patches in emails Add doc fix in email # Update debugger chapter with new features Add debugger commands to reference card -Remove obsolete directories -Remove all obsolete README files -Update bootstrap.sh and README.CVS types of files +#Remove obsolete directories +#Remove all obsolete README files +#Update bootstrap.sh and README.CVS types of files Review all FIXME and TODO comments # Check on strftime %e with porters. diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 00000000..3503a04b --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,38 @@ +#! /bin/sh + +# bootstrap.sh --- touch relevant files to avoid out-of-date issues in CVS sandboxes + +# Copyright (C) 2007, 2009, 2010 the Free Software Foundation, Inc. +# +# This file is part of GAWK, the GNU implementation of the +# AWK Programming Language. +# +# GAWK is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# GAWK is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +find . -name aclocal.m4 -print | grep -v /CVS/ | xargs touch +find awklib -type f -print | grep -v /CVS/ | xargs touch +sleep 1 +touch configure +sleep 2 +touch configh.in +sleep 1 +touch test/Maketests +find . -name Makefile.in -print | grep -v /CVS/ | xargs touch +touch doc/*.info +touch po/*.gmo +touch po/stamp-po +touch awkgram.c +touch command.c +touch version.c diff --git a/extension/Makefile.pc b/extension/Makefile.pc deleted file mode 100644 index fe8f5b47..00000000 --- a/extension/Makefile.pc +++ /dev/null @@ -1,55 +0,0 @@ -# Makefile for gawk extensions Mar 2003
-
-# - for GNU C (mingw32) [Windows32 executable for Windows 9x/NT]
-# - for Microsoft C 7 [16bit ececutable for DOS]
-
-# see README.pc for comments
-
-#------------------------------------------------------------------------
-# Some makes do not define MAKE (and ndmake does not allow a define).
-# Define MAK to be your make command.
-#MAKE = dmake
-MAK = $(MAKE) $(MAKEFILE)
-#MAK = $(MAKE)
-#MAKEFILE = -f Makefile
-#MAK = make45 $(MAKEFILE)
-
-VCCFLAGS=-nologo -O2 -DWIN32 -DWIN32_EXTENSION -D__STDC__=0 -DGAWK -I.. -DHAVE_CONFIG_H -DDYNAMIC
-VCLDFLAGS=-LD ../gawk.lib
-VCCC=cl -nologo
-
-MWCFLAGS=-O -shared -DWIN32 -DWIN32_EXTENSION -DGAWK -I.. -DHAVE_CONFIG_H -DDYNAMIC
-MWLDFLAGS=-s -Wl,--enable-stdcall-fixup -L.. -lgawk
-MWCC=gcc
-
-# this DEFFILE will work provided the exported function is always called
-# dlload
-DEFFILE=pcext.def
-
-
-default:
- @echo "Enter $(MAK) target "
- @echo " where 'target' is chosen from "
- @echo " mingw32 . Windows32 exe [Mingw32 GNU C] "
- @echo " vcWin32 . Windows32 exe [Microsoft Visual C] "
-
-.SUFFIXES: .c .dll
-
-.c.dll:
- $(CC) $(CFLAGS) $< -o$@ $(LDFLAGS) $(DEFFILE)
-
-
-# dl.c, fork.c, and filefuncs.c don't compile cleanly...
-all : readfile.dll ordchr.dll arrayparm.dll
-
-vcWin32:
- $(MAK) CFLAGS="$(VCCFLAGS)" LDFLAGS="$(VCLDFLAGS)" CC="$(VCCC)" all
-
-mingw32:
- $(MAK) CFLAGS="$(MWCFLAGS)" LDFLAGS="$(MWLDFLAGS)" CC="$(MWCC)" all
-
-clean:
- -rm *.dll
- -rm *.o
- -rm *.obj
- -rm *.lib
diff --git a/unsupported/atari/ChangeLog b/unsupported/atari/ChangeLog deleted file mode 100644 index 371f5ac5..00000000 --- a/unsupported/atari/ChangeLog +++ /dev/null @@ -1,93 +0,0 @@ -Tue Jul 21 22:28:56 2009 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.7: Release tar file made. - -Mon Oct 22 08:49:05 2007 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.6: Release tar file made. - -Tue Jul 26 21:46:16 2005 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.5: Release tar file made. - -Mon Aug 2 12:18:15 2004 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.4: Release tar file made. - -Mon Jul 7 11:01:43 2003 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.3: Release tar file made. - -Wed Mar 19 14:10:31 2003 Arnold D. Robbins <arnold@skeeve.com> - - This time for sure. - -- Bullwinkle - - * Release 3.1.2: Release tar file made. - -Wed May 1 16:41:32 2002 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.1: Release tar file made. - -Sun Jun 3 13:04:44 2001 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.0: Release tar file made. And there was - rejoicing. - -Sun Jan 28 15:50:02 2001 Eli Zaretskii <eliz@is.elta.co.il> - - * gawkmisc.atr (os_restore_mode): New function - -Sun Dec 3 16:53:37 2000 Arnold D. Robbins <arnold@skeeve.com> - - * gawkmisc.atr (os_setbinmode): new function. - -Tue Nov 7 14:09:14 2000 Arnold D. Robbins <arnold@skeeve.com> - - * gawkmisc.atr (os_is_setuid): new function. - -Wed Jul 30 19:53:52 1997 Arnold D. Robbins <arnold@gnu.ai.mit.edu> - - * Close-on-exec changes: - gawkmisc.atr: (os_close_on_exec, os_isdir): new functions. - -Mon Aug 7 15:23:00 2000 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.0.6: Release tar file made. - -Sun Jun 25 15:08:19 2000 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.0.5: Release tar file made. - -Wed Jun 30 16:14:36 1999 Arnold D. Robbins <arnold@gnu.org> - - * Release 3.0.4: Release tar file made. This time for sure. - -Thu May 15 12:49:08 1997 Arnold D. Robbins <arnold@skeeve.atl.ga.us> - - * Release 3.0.3: Release tar file made. - -Fri Apr 18 07:55:47 1997 Arnold D. Robbins <arnold@skeeve.atl.ga.us> - - * BETA Release 3.0.34: Release tar file made. - -Wed Dec 25 11:25:22 1996 Arnold D. Robbins <arnold@skeeve.atl.ga.us> - - * Release 3.0.2: Release tar file made. - -Tue Dec 10 23:09:26 1996 Arnold D. Robbins <arnold@skeeve.atl.ga.us> - - * Release 3.0.1: Release tar file made. - -Thu Nov 21 13:11:20 1996 Michal Jaegermann <michal@phys.ualberta.ca> - - * Makefile.st: Once again Makefile.st and config.h chase - moving targets from the main directory. - -Thu Nov 7 21:02:01 1996 Michal Jaegermann <michal@phys.ualberta.ca> - - * Makefile.st, Makefile.awklib: sync'ed with ones in main tree. - -Wed Jan 10 22:58:55 1996 Arnold D. Robbins <arnold@skeeve.atl.ga.us> - - * ChangeLog created. diff --git a/unsupported/atari/Makefile.awklib b/unsupported/atari/Makefile.awklib deleted file mode 100644 index e69706ee..00000000 --- a/unsupported/atari/Makefile.awklib +++ /dev/null @@ -1,109 +0,0 @@ -# Makefile for GNU Awk support library -# Copy this file to 'awklib' subdirectory of main directory -# and execute via relevant targets in your top Makefile -# -# This Makefile actually will work for awklib even when NOT -# compiling with Atari Makefile!!! -# -# Copyright (C) 1995, 1996 the Free Software Foundation, Inc. -# -# This file is part of GAWK, the GNU implementation of the -# AWK Programming Language. -# -# GAWK is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# GAWK is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - -SHELL = /bin/sh - -srcdir = . - -INSTALL = /usr/bin/install -c -INSTALL_PROGRAM = ${INSTALL} -INSTALL_DATA = ${INSTALL} -m 644 - -CC = gcc -CFLAGS = -g -O - -prefix = /usr/local -exec_prefix = ${prefix} -binprefix = -manprefix = - -bindir = ${exec_prefix}/bin -libdir = ${exec_prefix}/lib -mandir = ${prefix}/man/man1 -manext = .1 -infodir = ${prefix}/info -datadir = ${prefix}/share/awk -libexecdir = ${exec_prefix}/libexec/awk - -# default names of library utilities; on some systems they may require -# names with extenstions -PWCAT = pwcat -GRCAT = grcat -# the following command used, when necessary, for edits when -# creating igawk from igawk.sh -GCOM = '{print}' -GAWK = gawk -# $(AWK) is a by default freshly compiled gawk or installed awk when -# cross-compiling; it is used for edits, since we may compile not on -# Unix machine and an utility like 'sed' may NOT exist there -AWK = $(srcdir)/../$(GAWK) -AUXPROGS = $(PWCAT) $(GRCAT) -AUXAWK = passwd.awk group.awk - -all: stamp-eg $(AUXPROGS) igawk $(AUXAWK) - -stamp-eg: $(srcdir)/../doc/gawk.texi - rm -fr eg stamp-eg - $(AWK) -f $(srcdir)/extract.awk $(srcdir)/../doc/gawk.texi - @echo 'some makes are stupid and will not check a directory' > stamp-eg - @echo 'against a file, so this file is a place holder. gack.' >> stamp-eg - -$(PWCAT): $(srcdir)/eg/lib/pwcat.c - $(CC) $(CFLAGS) $(srcdir)/eg/lib/pwcat.c $(LDFLAGS) -o $@ - -$(GRCAT): $(srcdir)/eg/lib/grcat.c - $(CC) $(CFLAGS) $(srcdir)/eg/lib/grcat.c $(LDFLAGS) -o $@ - -igawk: $(srcdir)/eg/prog/igawk.sh - $(AWK) $(GCOM) $(srcdir)/eg/prog/igawk.sh > $@ ; chmod 755 $@ - -passwd.awk: $(srcdir)/eg/lib/passwdawk.in - $(AWK) '{gsub(/\/usr\/local\/libexec\/awk/, "$(libexecdir)"); print}' \ - $? > $@ - -group.awk: $(srcdir)/eg/lib/groupawk.in - $(AWK) '{gsub(/\/usr\/local\/libexec\/awk/, "$(libexecdir)"); print}' \ - $? > $@ - -install: igawk $(AUXPROGS) $(AUXAWK) - $(INSTALL_PROGRAM) igawk $(bindir)/igawk && chmod 755 $(bindir)/igawk - for i in $(AUXPROGS) ; do \ - $(INSTALL_PROGRAM) $$i $(libexecdir)/$$i ; \ - done - for i in $(AUXAWK) $(srcdir)/eg/lib/*.awk ; do \ - $(INSTALL_DATA) $$i $(datadir)/$$i ; \ - done - -# libexecdir and bindir are removed in the top level Makefile's uninstall -uninstall: - rm -fr $(libexecdir)/* $(datadir)/* - rm -f $(bindir)/igawk - -clean: - rm -f $(AUXPROGS) $(AUXAWK) igawk *~ - -distclean: clean - rm -f Makefile diff --git a/unsupported/atari/Makefile.st b/unsupported/atari/Makefile.st deleted file mode 100644 index fe618c6c..00000000 --- a/unsupported/atari/Makefile.st +++ /dev/null @@ -1,282 +0,0 @@ -# Makefile for GNU Awk - ST version. -# -# This makefile hand edited from Makefile automatically generated -# by configure - gcc 2.x.x compiler with TOS version of libraries -# and modified system(). -# Check comments in this Makefile and adjust to your needs!! -# -# This Makefile assumes that you are using Bourne compatible shell -# (like bash). If this is not the case you will have to edit various -# targets or perform some actions by hand. -# -# Copyright (C) 1986, 1988-1996 the Free Software Foundation, Inc. -# -# This file is part of GAWK, the GNU implementation of the -# AWK Programming Language. -# -# GAWK is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# GAWK is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - -MAKEINFO = makeinfo --no-split - -srcdir = . - -# native compiler with freshly compiled gawk.ttp to fix awklib -GAWK = gawk.ttp -CC = gcc - -# cross-compiler and gawk already installed on the system (any awk will do) -# GAWK = gawk -# CC = cgcc - -# WIDTH and EXT have to be both defined or both undefined -# WIDTH = -mshort -DINT_IS_16BIT -# EXT = 16 - -OFLAGS = -O2 -Wall -fomit-frame-pointer $(WIDTH) -LDFLAGS = $(WIDTH) -YACC = bison -y - -# xstrip -k in target gawk.ttp removes all symbols but _stksize -# allowing for stack size manipulations without recompiling (with fixstk) -INSTALL = xstrip -k ; cp -p -INSTALL_PROGRAM = ${INSTALL} -#INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_DATA = ${INSTALL} - -LIBS = -lpml$(EXT) - -ALLOCA = - -#all these definitions likely require changes -exec_prefix = ${prefix} -prefix = /usr/local -binprefix = -manprefix = - -bindir = ${exec_prefix}/bin -libdir = ${exec_prefix}/lib -manexta = l -mandir = ${prefix}/man/man$(manexta) -manext = .$(manexta) -infodir = ${prefix}/info -#datadir = ${prefix}/share/awk -datadir = ${prefix}/lib/awk -libexecdir = ${exec_prefix}/lib/awk - -#DEFPATH = ".:$(datadir)" -# datadir is passed to the next Makefile level and through sed -# you may need many more backslashes than that if you have to use -# them at all - sigh... -DEFPATH = ".,c:\\lib\\awk,c:\\gnu\\lib\\awk" - -SHELL = /bin/sh - -SHELL = /bin/sh -#CFLAGS = -g -O -CFLAGS = $(OFLAGS) -COMPFLAGS = $(CFLAGS) -DGAWK -I. -I$(srcdir) -DHAVE_CONFIG_H - -MFLAGS = "CC=$(CC)" \ - "CFLAGS=$(CFLAGS)" \ - GAWK=../$(GAWK) \ - AWK=awk \ - PWCAT=pwcat.ttp GRCAT=grcat.ttp \ - "GCOM='{sub(/\":\"/, \"\\\",\\\"\"); print}'" \ - "COMPFLAGS=$(COMPFLAGS)" \ - "LDFLAGS=$(LDFLAGS)" \ - "INSTALL=$(INSTALL)" \ - "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ - "INSTALL_DATA=$(INSTALL_DATA)" \ - "bindir=$(bindir)" \ - "libdir=$(libdir)" \ - "mandir=$(mandir)" \ - "manext=$(manext)" \ - "infodir=$(infodir)" \ - "datadir=$(datadir)" \ - "libexecdir=$(libexecdir)" - -MMAKE = $(MAKE) $(MFLAGS) - -# object files -AWKOBJS = array.o builtin.o eval.o field.o gawkmisc.o io.o main.o \ - missing.o msg.o node.o re.o version.o - -ALLOBJS = $(AWKOBJS) awktab.o - -# LIBOBJS -# GNU and other stuff that gawk uses as library routines. -LIBOBJS= getopt.o getopt1.o regex.o dfa.o random.o $(ALLOCA) - -# source and documentation files -SRC = array.c builtin.c eval.c field.c gawkmisc.c io.c main.c \ - missing.c msg.c node.c re.c version.c - -ALLSRC= $(SRC) awktab.c - -AWKSRC= awk.h awk.y custom.h $(ALLSRC) patchlevel.h protos.h random.h - -LIBSRC = alloca.c dfa.c dfa.h regex.c regex.h getopt.h getopt.c getopt1.c random.c - -COPIES = missing/system.c missing/tzset.c \ - missing/memcmp.c missing/memcpy.c missing/memset.c \ - missing/strncasecmp.c missing/strchr.c \ - missing/strerror.c missing/strtod.c \ - missing/strftime.c missing/strftime.3 - -DOCS= doc/gawk.1 doc/gawk.texi doc/texinfo.tex - -TEXFILES= doc/gawk.aux doc/gawk.cp doc/gawk.cps doc/gawk.fn doc/gawk.fns \ - doc/gawk.ky doc/gawk.kys doc/gawk.pg doc/gawk.pgs doc/gawk.toc \ - doc/gawk.tp doc/gawk.tps doc/gawk.vr doc/gawk.vrs - -MISC = NEWS COPYING FUTURES Makefile.in PROBLEMS README PORTS POSIX.STD \ - configure configure.in acconfig.h configh.in ACKNOWLEDGMENT \ - ChangeLog INSTALL LIMITATIONS install-sh mkinstalldirs aclocal.m4 \ - stamp-h.in - -OTHERS= amiga doc pc atari vms README_d posix awklib - -ALLDOC= doc/gawk.dvi $(TEXFILES) doc/gawk.info* - -MAKEFILEIN = Makefile.in awklib/Makefile.in doc/Makefile.in test/Makefile.in - -# Release of gawk. There can be no leading or trailing white space here! -REL=3.0 - -# clear out suffixes list -.SUFFIXES: -.SUFFIXES: .c .o - -.c.o: - $(CC) -c $(COMPFLAGS) $< - -# rules to build gawk -all: $(GAWK) awklib/all - -alldoc: all doc/all - -$(GAWK): $(ALLOBJS) $(LIBOBJS) $(REOBJS) - $(CC) -o $(GAWK) $(COMPFLAGS) $(LDFLAGS) $(ALLOBJS) $(LIBOBJS) \ - $(REOBJS) $(LIBS) - -$(ALLOBJS): awk.h dfa.h regex.h config.h custom.h - -$(LIBOBJS): config.h custom.h - -gawkmisc.o: $(srcdir)/atari/gawkmisc.atr - $(CC) -c $(COMPFLAGS) -DDEFPATH='$(DEFPATH)' $(srcdir)/gawkmisc.c - -# this rule needed or not - depending on your library -missing.o io.o: - $(CC) -c $(COMPFLAGS) -DPIPES_SIMULATED $(srcdir)/$< - -# cheat with defines to force an inclusion of a proper code -getopt.o: getopt.h - $(CC) $(CFLAGS) -D_LIBC -D__alloca=__builtin_alloca -c getopt.c - -getopt.o: getopt.h - -getopt1.o: getopt.h - -random.o: random.h - -main.o: patchlevel.h - -awktab.c: awk.y - $(YACC) -v $(srcdir)/awk.y && \ - if test -f y.tab.c ; then mv y.tab.c ytab.c ; else true ; fi && \ - sed '/^extern char .malloc(), .realloc();$$/d' ytab.c >awktab.c && \ - rm ytab.c - -# VMS POSIX make won't apply the default .c.o rule to awktab.o for some reason -awktab.o: awktab.c awk.h - $(CC) -c $(COMPFLAGS) $(srcdir)/awktab.c - -alloca.o: alloca.c - -install: $(GAWK) info installdirs - $(INSTALL_PROGRAM) $(GAWK) $(bindir) && chmod 755 $(bindir)/$(GAWK) - cd awklib && $(MMAKE) install - -installdirs: mkinstalldirs - $(srcdir)/mkinstalldirs $(bindir) $(datadir) \ - $(libdir) $(infodir) $(mandir) $(libexecdir) - -installdoc: info - cd doc && $(MMAKE) install - -# -#installtotal: installdirs install installdoc - -uninstall: - rm -f $(bindir)/$(GAWK) - cd awklib && $(MMAKE) uninstall - -rmdir $(datadir) $(libexecdir) -# cd doc && $(MMAKE) uninstall - -clean: - rm -rf $(GAWK) *.o core y.output - cd awklib && $(MMAKE) clean -# the following does not always make sense (when crosscompiling) -# cd test && $(MAKE) $(MFLAGS) clean -# cd doc && $(MAKE) $(MFLAGS) clean - -local-distclean: - rm -f Makefile *.orig *.rej */*.orig */*.rej awk.output \ - gmon.out make.out config.h config.status config.cache \ - config.log stamp-h *~ - -distclean: clean local-distclean - cd doc && $(MMAKE) distclean - cd awklib && $(MMAKE) distclean - cd test && $(MMAKE) distclean - -maintainer-clean: clean local-distclean - @echo "This command is intended for maintainers to use; it" - @echo "deletes files that may require special tools to rebuild." - rm -f awktab.c TAGS tags - cd doc && $(MMAKE) maintainer-clean -# cd test && $(MMAKE) maintainer-clean -# cd awklib && $(MMAKE) maintainer-clean - -clobber: maintainer-clean - -TAGS: - etags $(AWKSRC) - -tags: - ctags $(AWKSRC) - -dvi: $(srcdir)/doc/gawk.texi - cd doc && $(MMAKE) dvi - -info: $(srcdir)/doc/gawk.texi - cd doc && $(MMAKE) info - -doc/all: - cd doc && $(MMAKE) all - -awklib/all: - cd awklib && $(MMAKE) all - -# to run this target you have to adjust test/Makefile quite a bit -# in order to make it palatable to your shell -# -check: $(GAWK) - cd test; $(MMAKE) -k - -test: check - diff --git a/unsupported/atari/README.1st b/unsupported/atari/README.1st deleted file mode 100644 index a158cda1..00000000 --- a/unsupported/atari/README.1st +++ /dev/null @@ -1,5 +0,0 @@ -Tue Nov 7 14:19:41 2000 - -The atari port is no longer supported. If you have an atari, -you are welcome to try and use the port here, but we no longer have -the hardware to test gawk on. diff --git a/unsupported/atari/config.h b/unsupported/atari/config.h deleted file mode 100644 index 840bcf66..00000000 --- a/unsupported/atari/config.h +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Sample configuration file for ST - works with gcc and TOS libraries; - * revise for your configuration if configure script does not work - */ -/* - * config.h -- configuration definitions for gawk. - */ - -/* - * Copyright (C) 1995, 1996 the Free Software Foundation, Inc. - * - * This file is part of GAWK, the GNU implementation of the - * AWK Programming Language. - * - * GAWK is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * GAWK is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - -/* Define if using alloca.c. */ -/* #undef C_ALLOCA */ - -/* Define if type char is unsigned and you are not using gcc. */ -#ifndef __CHAR_UNSIGNED__ -/* #undef __CHAR_UNSIGNED__ */ -#endif - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define to the type of elements in the array set by `getgroups'. - Usually this is either `int' or `gid_t'. */ -#define GETGROUPS_T gid_t - -/* Define if the `getpgrp' function takes no argument. */ -#define GETPGRP_VOID 1 - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef gid_t */ - -/* Define if you have alloca, as a function or macro. */ -#define HAVE_ALLOCA 1 - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -/* #undef HAVE_ALLOCA_H */ - -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ - -/* Define if you have a working `mmap' system call. */ -/* #undef HAVE_MMAP */ - -/* Define if your struct stat has st_blksize. */ -#define HAVE_ST_BLKSIZE 1 - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#define HAVE_SYS_WAIT_H 1 - -/* Define if your struct tm has tm_zone. */ -/* #undef HAVE_TM_ZONE */ - -/* Define if you don't have tm_zone but do have the external array - tzname. */ -/* #undef HAVE_TZNAME */ - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 - -/* Define if on MINIX. */ -/* #undef _MINIX */ - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef pid_t */ - -/* Define if the system does not provide POSIX.1 features except - with this defined. */ -/* #undef _POSIX_1_SOURCE */ - -/* Define if you need to in order for stat and other things to work. */ -/* #undef _POSIX_SOURCE */ - -/* Define as the return type of signal handlers (int or void). */ -#define RETSIGTYPE void - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -/* #undef size_t */ - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define if you can safely include both <sys/time.h> and <time.h>. */ -#define TIME_WITH_SYS_TIME 1 - -/* Define if your <sys/time.h> declares struct tm. */ -#define TM_IN_SYS_TIME 1 - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef uid_t */ - -#define HAVE_STRINGIZE 1 /* can use ANSI # operator in cpp */ -/* #undef REGEX_MALLOC */ /* use malloc instead of alloca in regex.c */ -#define SPRINTF_RET int /* return type of sprintf */ - -/* Define if you have the fmod function. */ -#define HAVE_FMOD 1 - -/* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE 1 - -/* Define if you have the madvise function. */ -/* #undef HAVE_MADVISE */ - -/* Define if you have the memcmp function. */ -#define HAVE_MEMCMP 1 - -/* Define if you have the memcpy function. */ -#define HAVE_MEMCPY 1 - -/* Define if you have the memset function. */ -#define HAVE_MEMSET 1 - -/* Define if you have the strchr function. */ -#define HAVE_STRCHR 1 - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME 1 - -/* Define if you have the strncasecmp function. */ -/* #undef HAVE_STRNCASECMP */ - -/* Define if you have the strtod function. */ -#define HAVE_STRTOD 1 - -/* Define if you have the system function. */ -/* This is a white lie - but you may or may not prefer this way */ -/* #define HAVE_SYSTEM 1 */ - -/* Define if you have the tzset function. */ -#define HAVE_TZSET 1 - -/* Define if you have the valloc function. */ -/* #undef HAVE_VALLOC */ - -/* Define if you have the <limits.h> header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you have the <memory.h> header file. */ -#define HAVE_MEMORY_H 1 - -/* Define if you have the <signum.h> header file. */ -/* #undef HAVE_SIGNUM_H */ - -/* Define if you have the <stdarg.h> header file. */ -#define HAVE_STDARG_H 1 - -/* Define if you have the <string.h> header file. */ -#define HAVE_STRING_H 1 - -/* Define if you have the <strings.h> header file. */ -/* #undef HAVE_STRINGS_H */ - -/* Define if you have the <sys/param.h> header file. */ -#define HAVE_SYS_PARAM_H 1 - -/* Define if you have the <unistd.h> header file. */ -#define HAVE_UNISTD_H 1 - -#include <custom.h> /* overrides for stuff autoconf can't deal with */ diff --git a/unsupported/atari/gawkmisc.atr b/unsupported/atari/gawkmisc.atr deleted file mode 100644 index 35dcff80..00000000 --- a/unsupported/atari/gawkmisc.atr +++ /dev/null @@ -1,177 +0,0 @@ -/* - * gawkmisc.atr --- miscellaneous gawk routines that are OS specific. - */ - -/* - * Copyright (C) 1986, 1988, 1989, 1991-1996 the Free Software Foundation, Inc. - * - * This file is part of GAWK, the GNU implementation of the - * AWK Progamming Language. - * - * GAWK is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * GAWK is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#include <string.h> - -char quote = '\''; -#ifndef DEFPATH -char *defpath = ".,c:\\lib\\awk,c:\\gnu\\lib\\awk"; -#else -char *defpath = DEFPATH; -#endif -char envsep = ','; - - -/* gawk_name --- pull out the "gawk" part from how the OS called us */ - -char * -gawk_name(filespec) -const char *filespec; -{ - char *p, *q; - - p = (char *)filespec; - - if ((q = strrchr(p, '\\')) != NULL) - p = q + 1; - if ((q = strrchr(p, '/')) != NULL) - p = q + 1; - if ((q = strchr(p, '.')) != NULL) - *q = '\0'; - strlwr(p); - - return (p == NULL ? (char *)filespec : (char *)p); -} - -/* os_arg_fixup --- fixup the command line */ - -void -os_arg_fixup(argcp, argvp) -int *argcp; -char ***argvp; -{ - /* no-op */ - return; -} - -/* os_devopen --- open special per-OS devices */ - -int -os_devopen(name, flag) -const char *name; -int flag; -{ - /* no-op */ - return INVALID_HANDLE; -} - -/* optimal_bufsize --- determine optimal buffer size */ - -size_t -optimal_bufsize(fd, stb) -int fd; -struct stat *stb; -{ - /* force all members to zero in case OS doesn't use all of them. */ - memset(stb, '\0', sizeof(struct stat)); - - /* The atari has the st_blksize structure, so we just use it. */ -#define DEFBLKSIZE (stb->st_blksize ? stb->st_blksize : BUFSIZ) - - /* - * On ST redirected stdin does not have a name attached - * (this could be hard to do to) and fstat would fail - */ - if (fd == 0) - return BUFSIZ; - if (fstat(fd, stb) == -1) - fatal("can't stat fd %d (%s)", fd, strerror(errno)); - if (S_ISREG(stb->st_mode) - && 0 < stb->st_size && stb->st_size < DEFBLKSIZE) /* small file */ - return stb->st_size; - return DEFBLKSIZE; -} - -/* ispath --- return true if path has directory components */ - -int -ispath(file) -const char *file; -{ - return (strchr(file, '/') != NULL || strchr(file, '\\') != NULL); -} - -/* isdirpunct --- return true if char is a directory separator */ - -int -isdirpunct(c) -int c; -{ - return (c == '/' || c == '\\'); -} - -/* os_close_on_exec --- set close on exec flag, print warning if fails */ - -void -os_close_on_exec(fd, name, what, dir) -int fd; -const char *name, *what, *dir; -{ - if (fcntl(fd, F_SETFD, 1) < 0) - warning("%s %s `%s': could not set close-on-exec: %s", - what, dir, name, strerror(errno)); -} - -/* os_isdir --- is this an fd on a directory? */ - -#if ! defined(S_ISDIR) && defined(S_IFDIR) -#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) -#endif - -int -os_isdir(fd) -int fd; -{ - struct stat sbuf; - - return (fstat(fd, &sbuf) == 0 && S_ISDIR(sbuf.st_mode)); -} - -/* os_is_setuid --- true if running setuid root */ - -int -os_is_setuid() -{ - return 0; -} - -/* os_setbinmode --- set binary mode on file */ - -int -os_setbinmode (fd, mode) -int fd, mode; -{ - return 0; -} - -/* os_restore_mode --- restore the original mode of the console device */ - -void -os_restore_mode (fd) -int fd; -{ - /* no-op */ - return; -} diff --git a/unsupported/atari/redirect.h b/unsupported/atari/redirect.h deleted file mode 100644 index 0a95c06d..00000000 --- a/unsupported/atari/redirect.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * redirect.h --- definitions for functions that are OS specific. - */ - -/* - * Copyright (C) 1986, 1988, 1989, 1991-1993 the Free Software Foundation, Inc. - * - * This file is part of GAWK, the GNU implementation of the - * AWK Programming Language. - * - * GAWK is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * GAWK is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - -/* This file is already conditioned on atarist in awk.h */ - -#define read _text_read /* we do not want all these CR's to mess our input */ -extern int _text_read(int, char *, int); -#ifndef __MINT__ -#undef NGROUPS_MAX -#endif /* __MINT__ */ diff --git a/unsupported/atari/stack.c b/unsupported/atari/stack.c deleted file mode 100644 index c57880da..00000000 --- a/unsupported/atari/stack.c +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This value indicates an amount of reserved memory for a stack - * in executables - see source of a startup code for details. - * It can be changed without recompilation with fixstk.ttp utility. - */ -long _stksize = 2L; /* keep half of memory */ diff --git a/unsupported/atari/system.c b/unsupported/atari/system.c deleted file mode 100644 index b74ae92f..00000000 --- a/unsupported/atari/system.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * function system() - slightly modified from sources dLibs 1.2 - * - a freely distributable C library for Atari ST. - * Authors: Dale Schumacher and John Stanley, I believe. - * Changes for gcc compiler and gnulib.olb - Michal Jaegermann - */ - -#include <osbind.h> -#include <stdio.h> -#include <string.h> -#include <basepage.h> -#ifdef __GNUC__ -#include <process.h> -#define ERROR 2 -#endif - -/* #define DEBUG */ -#ifdef DEBUG -#define _COOKIE(x) puts(x);putchar('\n') -#endif - -static void -parse_args(char *cmdln, register char **argv) -{ - register char *p; - static char delim[] = " \t\r\n"; - - if(NULL != (p = strtok(cmdln, delim))) { - do { - *argv++ = p; - } while(NULL != (p = strtok(NULL, delim))); - } -} - -#ifdef __GNUC__ -/* this is used by assembler statement to keep a copy of registers */ -static volatile long savearea[16]; -#endif - -int -system(const char *command) -{ - register char *p; - register int (*shell)(); -#ifndef __GNUC__ - char rv[2]; -#endif - char cmdln[1024]; - char *args[64]; - char *getenv(const char *); - - if(!command) - return(ERROR); - - /* get _shell_p value */ - p = (char *) Super(0L); /* supervisor mode */ - shell = (int (*)()) *((long *) 0x4F6L); - (void) Super(p); /* restore user mode */ - - /* validate _shell_p */ - if((shell) && /* Shell available. */ - (((long) shell) < ((long) _base)) && /* Reasonable shell pointer. */ - (strncmp((char *)shell, "PATH", 4))) /* Not corrupted */ - { -#ifdef __GNUC__ - int ret; -#endif - /* execute the command */ -#ifdef DEBUG -_COOKIE("system: using _shell_p"); -printf("'shell' got value 0x%08lx\n", (long)shell); -#endif -/* a bit of paranoia caused by some misbehaving programs */ -#ifdef __GNUC__ -asm("moveml d1-d7/a0-a7,_savearea"); - ret = (*shell)(command); -asm("moveml _savearea,d1-d7/a0-a7"); - return (ret); -#else - return ((*shell)(command)); -#endif - } - - strcpy(cmdln, command); /* copy the command line for parsing */ - - if((p = getenv("SHELL")) && (*p)) /* SHELL= variable? */ - { - args[0] = p; - parse_args(cmdln, (args + 1)); -#ifdef DEBUG -_COOKIE("system: executing SHELL"); -_COOKIE(p); -#endif - } - else /* attempt to find first token as a program on the path */ - { - parse_args(cmdln, args); - p = args[0]; -#ifdef DEBUG -_COOKIE("system: directly executing program"); -_COOKIE(p); -#endif - } - -#ifdef __GNUC__ - return(spawnvp(0, p, args)); -#else /* original from dLibs */ - forkvpe(p, args, NULL); - wait(rv); - return((rv[1] == 0) ? rv[0] : rv[1]); -#endif -} diff --git a/unsupported/atari/tmpnam.c b/unsupported/atari/tmpnam.c deleted file mode 100644 index 92bf751b..00000000 --- a/unsupported/atari/tmpnam.c +++ /dev/null @@ -1,47 +0,0 @@ -#ifdef PIPES_SIMULATED -/* tmpnam.c : return a temporary file name */ -/* written by Eric R. Smith and placed in the public domain */ -/** - * - modified for gawk needs - pattern /$$XXXXXX from the original - * code creates names which are hard to remove when somethig - * goes wrong - * - returned name can be passed outside via system(); other programs - * may not dig '/' as a path separator - * - somehow more frugal in a memory use - * (mj - October 1990) - **/ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -extern char * getenv(const char *); -extern char * mktemp(char *); -char * tempnam(const char *path, const char *base); -static char pattern[] = "\\gwkXXXXX"; - -char *tmpnam(buf) - char *buf; -{ - char *tmpdir; - - if (!(tmpdir = getenv("TEMP")) && !(tmpdir = getenv("TMPDIR"))) - tmpdir = "."; - - if (!buf) { - size_t blen; - - blen = strlen (tmpdir) + sizeof(pattern); - if (NULL == (buf = malloc(blen))) - return NULL; - } - (void) strcat(strcpy(buf, tmpdir), pattern); - return(mktemp(buf)); -} - -/* used by gawk_popen() */ -char *tempnam(path, base) -const char *path, *base; /* ignored */ -{ - return tmpnam(NULL); -} -#endif /* PIPES_SIMULATED */ diff --git a/unsupported/tandem/ChangeLog b/unsupported/tandem/ChangeLog deleted file mode 100644 index 79abda72..00000000 --- a/unsupported/tandem/ChangeLog +++ /dev/null @@ -1,62 +0,0 @@ -Tue Jul 21 22:28:56 2009 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.7: Release tar file made. - -Mon Oct 22 08:49:05 2007 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.6: Release tar file made. - -Tue Jul 26 21:46:16 2005 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.5: Release tar file made. - -Mon Aug 2 12:18:15 2004 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.4: Release tar file made. - -Mon Jul 7 11:01:43 2003 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.3: Release tar file made. - -Wed Mar 19 14:10:31 2003 Arnold D. Robbins <arnold@skeeve.com> - - This time for sure. - -- Bullwinkle - - * Release 3.1.2: Release tar file made. - -Wed May 1 16:41:32 2002 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.1: Release tar file made. - -Sun Jun 3 13:04:44 2001 Arnold D. Robbins <arnold@skeeve.com> - - * Release 3.1.0: Release tar file made. And there was - rejoicing. - -Sun Jan 28 15:50:02 2001 Eli Zaretskii <eliz@is.elta.co.il> - - * tmisc.c (os_restore_mode): New function - -Sun Dec 3 16:53:37 2000 Arnold D. Robbins <arnold@skeeve.com> - - * tmisc.c (os_setbinmode): new function. - -Tue Nov 7 14:09:14 2000 Arnold D. Robbins <arnold@skeeve.com> - - * tmisc.c (os_is_setuid): new function. - -Tue Jun 1 14:09:36 1999 Arnold D. Robbins <arnold@gnu.org> - - Sync with changes in 3.0.4 for non-Unix popen/pclose - * popen.h: add defines for popen and pclose. - * config.h: add define for HAVE_POPEN_H. - -Wed Jul 30 19:53:52 1997 Arnold D. Robbins <arnold@gnu.org> - - * Close-on-exec changes: - tmisc.c: (os_close_on_exec, os_isdir): new functions. - -Mon Jul 27 11:40:00 1997 Arnold D. Robbins <arnold@gnu.org> - - * Initial integration of Tandem stuff into gawk source tree. diff --git a/unsupported/tandem/compit b/unsupported/tandem/compit deleted file mode 100755 index 3bf1aea5..00000000 --- a/unsupported/tandem/compit +++ /dev/null @@ -1 +0,0 @@ -?TACL MACRO
#FRAME
#PUSH #INLINEPREFIX
#SET #INLINEPREFIX +
==
== Compile the bits
==
c /in allocac, out allocax/allocao; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in arrayc, out arrayx/arrayo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in builtinc, out builtinx/builtino; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in dfac, out dfax/dfao; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in evalc, out evalx/evalo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in fieldc, out fieldx/fieldo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in gawkmisc, out gawkmisx/gawkmiso; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in getoptc, out getoptx/getopto; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in getopt1c, out getopt1x/getopt1o;symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in ioc, out iox/ioo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in isattyc, out isattyx/isattyo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in mainc, out mainx/maino; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in missingc, out missingx/missingo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in msgc, out msgx/msgo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in nodec, out nodex/nodeo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in popenc, out popenx/popeno; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in rec, out rex/reo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in regexc, out regexx/regexo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in awktabc, out tawktabx/tawktabo; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
c /in versionc, out versionx/versiono; symbols,WIDE,define TANDEM,define HAVE_CONFIG_H,SSV0 "$system.system",SSV1 "[#defaults]"
==
== then bind them
==
bind/inline,out bindout/
+ select runnable object on
+ select check parameter off
+ select list * off
+ select fixups on
+ select search $system.system.cwide
+ add * from arrayo
+ add * from allocao
+ add * from builtino
+ add * from dfao
+ add * from evalo
+ add * from fieldo
+ add * from gawkmiso
+ add * from getopto
+ add * from getopt1o
+ add * from ioo
+ add * from isattyo
+ add * from maino
+ add * from missingo
+ add * from msgo
+ add * from nodeo
+ add * from popeno
+ add * from reo
+ add * from regexo
+ add * from tawktabo
+ add * from versiono
+ set heap 5000 pages
+ build awk
+ file awk
+ info unresolved *
+ list *
INLEOF
#UNFRAME
\ No newline at end of file diff --git a/unsupported/tandem/config.h b/unsupported/tandem/config.h deleted file mode 100644 index 27ced919..00000000 --- a/unsupported/tandem/config.h +++ /dev/null @@ -1,209 +0,0 @@ -/* config.h. Generated automatically by configure. */ -/* configh.in. Generated automatically from configure.in by autoheader. */ -/* - * acconfig.h -- configuration definitions for gawk. - */ - -/* - * Copyright (C) 1995-1997 the Free Software Foundation, Inc. - * - * This file is part of GAWK, the GNU implementation of the - * AWK Progamming Language. - * - * GAWK is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * GAWK is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - - -/* Define if on AIX 3. - System headers sometimes define this. - We just want to avoid a redefinition error message. */ -#ifndef _ALL_SOURCE -/* #undef _ALL_SOURCE */ -#endif - -/* Define if using alloca.c. */ -#define C_ALLOCA - -/* Define if type char is unsigned and you are not using gcc. */ -#ifndef __CHAR_UNSIGNED__ -#define __CHAR_UNSIGNED__ -#endif - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ - -/* Define to the type of elements in the array set by `getgroups'. - Usually this is either `int' or `gid_t'. */ -#define GETGROUPS_T gid_t - -/* Define if the `getpgrp' function takes no argument. */ -#define GETPGRP_VOID 1 - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef gid_t */ - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ - -/* Define if your struct stat has st_blksize. */ -/* #define HAVE_ST_BLKSIZE 1 */ - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#define HAVE_SYS_WAIT_H 1 - -/* Define if your struct tm has tm_zone. */ -/* #undef HAVE_TM_ZONE */ - -/* Define if you don't have tm_zone but do have the external array - tzname. */ -#define HAVE_TZNAME 1 - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 - -/* Define if on MINIX. */ -/* #undef _MINIX */ - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef pid_t */ - -/* Define if the system does not provide POSIX.1 features except - with this defined. */ -/* #undef _POSIX_1_SOURCE */ - -/* Define if you need to in order for stat and other things to work. */ -/* #undef _POSIX_SOURCE */ - -/* Define as the return type of signal handlers (int or void). */ -#define RETSIGTYPE void - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -/* #undef size_t */ - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define if you can safely include both <sys/time.h> and <time.h>. */ -#define TIME_WITH_SYS_TIME 1 - -/* Define if your <sys/time.h> declares struct tm. */ -/* #undef TM_IN_SYS_TIME */ - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef uid_t */ - -#define HAVE_STRINGIZE 1 /* can use ANSI # operator in cpp */ -#define REGEX_MALLOC 1 /* use malloc instead of alloca in regex.c */ -#define SPRINTF_RET int /* return type of sprintf */ -/* #undef BITOPS */ /* bitwise ops (undocumented feature) */ -/* #undef NONDECDATA */ /* non-decimal input data (undocumented feature) */ -/* #undef HAVE_MKTIME */ /* we have the mktime function */ - -/* Define if you have the fmod function. */ -#define HAVE_FMOD - -/* Define if you have the memcmp function. */ -#define HAVE_MEMCMP 1 - -/* Define if you have the memcpy function. */ -#define HAVE_MEMCPY 1 - -/* Define if you have the memset function. */ -#define HAVE_MEMSET 1 - -/* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE 1 - -/* Define if you have the strchr function. */ -#define HAVE_STRCHR 1 - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME 1 - -/* Define if you have the strncasecmp function. */ -/* Tandem doesn't have it but the file name is too long, so pretend here - and do it properly at the end of this file */ -#define HAVE_STRNCASECMP 1 - -/* Define if you have the strtod function. */ -#define HAVE_STRTOD 1 - -/* Define if you have the system function. */ -#define HAVE_SYSTEM 1 - -/* Define if you have the tzset function. */ -#define HAVE_TZSET 1 - -/* Define if you have the <fcntl.h> header file. */ -/* #undef HAVE_FCNTL_H */ - -/* Define if you have the <limits.h> header file. */ -/* #undef HAVE_LIMITS_H */ - -/* Define if you have the <locale.h> header file. */ -/* #undef HAVE_LOCALE_H */ - -/* Define if you have the <memory.h> header file. */ -#define HAVE_MEMORY_H 1 - -/* Define if you have the <signum.h> header file. */ -/* #undef HAVE_SIGNUM_H */ - -/* Define if you have the <stdarg.h> header file. */ -#define HAVE_STDARG_H 1 - -/* Define if you have the <string.h> header file. */ -#define HAVE_STRING_H 1 - -/* Define if you have the <strings.h> header file. */ -/* #undef HAVE_STRINGS_H */ - -/* Define if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H 1 - -/* Define if you have the <sys/time.h> header file. */ -/* #undef HAVE_SYS_TIME_H */ - -/* Define if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H 1 - -/* Define if you have the m library (-lm). */ -/* #undef HAVE_LIBM */ - -#define HAVE_POPEN_H 1 - -#include <custom.h> /* overrides for stuff autoconf can't deal with */ diff --git a/unsupported/tandem/getid.c b/unsupported/tandem/getid.c deleted file mode 100644 index f933ac62..00000000 --- a/unsupported/tandem/getid.c +++ /dev/null @@ -1,120 +0,0 @@ -#if defined _MSC_VER || defined TANDEM - -#ifndef TANDEM -#ifdef OS2 -# define INCL_DOSPROCESS -# include <os2.h> -# if _MSC_VER == 510 -# define DosGetPID DosGetPid -# endif -#else -# include <process.h> -#endif - -#ifdef OS2 -int getpid(void) -{ - PIDINFO PidInfo; - - DosGetPID(&PidInfo); - return(PidInfo.pid); -} -#endif - -int getppid(void) -{ -#ifdef OS2 - PIDINFO PidInfo; - - DosGetPID(&PidInfo); - return(PidInfo.pidParent); -#else - return(0); -#endif -} - -#endif /* TANDEM */ -#ifdef TANDEM -unsigned int getuid (void) -{ - short cret; - short cwd,pwd; - - cret = PROCESS_GETINFO_(,,,,,,,,,,&cwd,&pwd); - return ((unsigned int) (cwd & 255)); -} - -unsigned int geteuid (void) -{ - short cret; - short cwd,pwd; - - cret = PROCESS_GETINFO_(,,,,,,,,,,&cwd,&pwd); - return ((unsigned int) (pwd & 255)); -} - -unsigned int getgid (void) -{ - short cret; - short cwd,pwd; - - cret = PROCESS_GETINFO_(,,,,,,,,,,&cwd,&pwd); - return ((unsigned int) ((cwd >> 8) & 255)); -} - -unsigned int getegid (void) -{ - short cret; - short cwd,pwd; - - cret = PROCESS_GETINFO_(,,,,,,,,,,&cwd,&pwd); - return ((unsigned int) ((pwd >> 8) & 255)); -} - -int getpid(void) -{ - return (0); -} - -int getppid(void) -{ - return (0); -} - -#else -unsigned int getuid (void) -{ - return (0); /* root! */ -} - - -unsigned int geteuid (void) -{ - return (0); -} - - -unsigned int getgid (void) -{ - return (0); -} - - -unsigned int getegid (void) -{ - return (0); -} - - -char *getlogin (void) -{ - return ("root"); -} - -#endif /* TANDEM */ -#endif - -int getpgrp(void) -{ - return (0); -} diff --git a/unsupported/tandem/isatty.c b/unsupported/tandem/isatty.c deleted file mode 100644 index d73d7a34..00000000 --- a/unsupported/tandem/isatty.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <cextdecs(FILE_GETINFO_)> -#include <stdioh> -#include <talh> - -int isatty(int fd) -{ - short cret,sfd,typ[5]; - sfd = (short) fd; - cret = FILE_GETINFO_(sfd,,,,,&typ[0]); - if(typ[0] == 6) - return (1); - else - return (0); -} -int dup(int fd) -{ - return (fd); -} -int dup2(int fd, int fd2) -{ - return (0); -} diff --git a/unsupported/tandem/popen.c b/unsupported/tandem/popen.c deleted file mode 100644 index 310225d3..00000000 --- a/unsupported/tandem/popen.c +++ /dev/null @@ -1,128 +0,0 @@ -#include "popen.h" -#include <stdlib.h> -#if !defined(TANDEM) -#include <io.h> -#else -#include "config.h" -#include <fcntl.h> -#endif -#include <string.h> -#if !defined(TANDEM) -#include <process.h> -#endif - -#ifdef OS2 -#ifdef _MSC_VER -#define popen(c,m) _popen(c,m) -#define pclose(f) _pclose(f) -#endif -#endif - -#ifndef _NFILE -#define _NFILE 40 -#endif - -static char template[] = "piXXXXXX"; -typedef enum { unopened = 0, reading, writing } pipemode; -static -struct { - char *command; - char *name; - pipemode pmode; -} pipes[_NFILE]; - -FILE * -os_popen( char *command, char *mode ) { - FILE *current; - char *name; - int cur; - pipemode curmode; - -#if defined(OS2) && (_MSC_VER != 510) - if (_osmode == OS2_MODE) - return(popen(command, mode)); -#endif - - /* - ** decide on mode. - */ - if(strcmp(mode,"r") == 0) - curmode = reading; - else if(strcmp(mode,"w") == 0) - curmode = writing; - else - return NULL; - /* - ** get a name to use. - */ - if((name = tempnam(".","pip"))==NULL) - return NULL; - /* - ** If we're reading, just call system to get a file filled with - ** output. - */ - if(curmode == reading) { - if ((cur = dup(fileno(stdout))) == -1) - return NULL; - if ((current = freopen(name, "w", stdout)) == NULL) - return NULL; - system(command); - if (dup2(cur, fileno(stdout)) == -1) - return NULL; - close(cur); - if((current = fopen(name,"r")) == NULL) - return NULL; - } else { - if((current = fopen(name,"w")) == NULL) - return NULL; - } - cur = fileno(current); - pipes[cur].name = name; - pipes[cur].pmode = curmode; - pipes[cur].command = strdup(command); - return current; -} - -int -os_pclose( FILE * current) { - int cur = fileno(current),rval; - -#if defined(OS2) && (_MSC_VER != 510) - if (_osmode == OS2_MODE) - return(pclose(current)); -#endif - - /* - ** check for an open file. - */ - if(pipes[cur].pmode == unopened) - return -1; - if(pipes[cur].pmode == reading) { - /* - ** input pipes are just files we're done with. - */ - rval = fclose(current); - unlink(pipes[cur].name); - } else { - /* - ** output pipes are temporary files we have - ** to cram down the throats of programs. - */ - char command[256]; - fclose(current); -#if defined(TANDEM) - sprintf(command,"%s /IN %s/",pipes[cur].command,pipes[cur].name); -#else - sprintf(command,"%s < %s",pipes[cur].command,pipes[cur].name); -#endif - rval = system(command); - unlink(pipes[cur].name); - } - /* - ** clean up current pipe. - */ - pipes[cur].pmode = unopened; - free(pipes[cur].name); - free(pipes[cur].command); - return rval; -} diff --git a/unsupported/tandem/popen.h b/unsupported/tandem/popen.h deleted file mode 100644 index 18605867..00000000 --- a/unsupported/tandem/popen.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - -** popen.h -- prototypes for pipe functions - -*/ - -#if !defined(FILE) - -#include <stdio.h> - -#endif - - - -extern FILE *os_popen( char *, char * ); - -extern int os_pclose( FILE * ); - -#define popen os_popen -#define pclose os_close diff --git a/unsupported/tandem/strdup.c b/unsupported/tandem/strdup.c deleted file mode 100644 index 45f7676c..00000000 --- a/unsupported/tandem/strdup.c +++ /dev/null @@ -1,15 +0,0 @@ -/* - * strdup --- duplicate a string - * - * We supply this routine for those systems that aren't standard yet. - */ - -char * -strdup (str) -register const char *str; -{ - char *p; - - p=(char *)malloc(strlen(str)+1); - return strcpy(p,str); -} diff --git a/unsupported/tandem/strnchk.c b/unsupported/tandem/strnchk.c deleted file mode 100644 index faa79c4c..00000000 --- a/unsupported/tandem/strnchk.c +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 1987 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - */ - -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)strcasecmp.c 5.6 (Berkeley) 6/27/88"; -#endif /* LIBC_SCCS and not lint */ - -#ifdef atarist -#include <sys/types.h> -#else -#define u_char unsigned char -#endif - -/* - * This array is designed for mapping upper and lower case letter - * together for a case independent comparison. The mappings are - * based upon ascii character sequences. - */ -static u_char charmap[] = { - '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', - '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', - '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', - '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', - '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', - '\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', - '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', - '\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077', - '\100', '\141', '\142', '\143', '\144', '\145', '\146', '\147', - '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157', - '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167', - '\170', '\171', '\172', '\133', '\134', '\135', '\136', '\137', - '\140', '\141', '\142', '\143', '\144', '\145', '\146', '\147', - '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157', - '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167', - '\170', '\171', '\172', '\173', '\174', '\175', '\176', '\177', - '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207', - '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217', - '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227', - '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237', - '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247', - '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257', - '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', - '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277', - '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347', - '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357', - '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\327', - '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\337', - '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347', - '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357', - '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367', - '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377', -}; - -int -strcasecmp(s1, s2) - const char *s1, *s2; -{ - register u_char *cm = charmap, - *us1 = (u_char *)s1, - *us2 = (u_char *)s2; - - while (cm[*us1] == cm[*us2++]) - if (*us1++ == '\0') - return(0); - return(cm[*us1] - cm[*--us2]); -} - -int -strncasecmp(s1, s2, n) - const char *s1, *s2; - register size_t n; -{ - register u_char *cm = charmap, - *us1 = (u_char *)s1, - *us2 = (u_char *)s2; - - while ((long)(--n) >= 0 && cm[*us1] == cm[*us2++]) - if (*us1++ == '\0') - return(0); - return((long)n < 0 ? 0 : cm[*us1] - cm[*--us2]); -} diff --git a/unsupported/tandem/tmisc.c b/unsupported/tandem/tmisc.c deleted file mode 100644 index 9cc29a46..00000000 --- a/unsupported/tandem/tmisc.c +++ /dev/null @@ -1,196 +0,0 @@ - -/* os_close_on_exec --- set close on exec flag, print warning if fails */ - -void -os_close_on_exec(fd, name, what, dir) -int fd; -char *name, *what, *dir; -{ - /* no-op */ -} - -/* os_isdir --- is this an fd on a directory? */ - -#if ! defined(S_ISDIR) && defined(S_IFDIR) -#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) -#endif - -int -os_isdir(fd) -int fd; -{ - struct stat sbuf; - - return (fstat(fd, &sbuf) == 0 && S_ISDIR(sbuf.st_mode)); -} -/* - * gawkmisc.c --- miscellanious gawk routines that are OS specific. - */ - -/* - * Copyright (C) 1986, 1988, 1989, 1991 - 95 the Free Software Foundation, Inc. - * - * This file is part of GAWK, the GNU implementation of the - * AWK Progamming Language. - * - * GAWK is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * GAWK is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - -char quote = '"'; -char envsep = ';'; -char *defpath = ""; - -/* gawk_name --- pull out the "gawk" part from how the OS called us */ - -char * -gawk_name(filespec) -const char *filespec; -{ - char *p, *q; - - p = (char *) filespec; /* Sloppy... */ - - if ((q = strrchr(p, '.')) != NULL) - p = q + 1; - return p; -} - -/* os_arg_fixup --- fixup the command line */ - -void -os_arg_fixup(argcp, argvp) -int *argcp; -char ***argvp; -{ - return; -} - -/* os_devopen --- open special per-OS devices */ - -int -os_devopen(name, flag) -const char *name; -int flag; -{ - /* no-op */ - return -1; -} - -/* optimal_bufsize --- determine optimal buffer size */ - -size_t -optimal_bufsize(fd, stb) -int fd; -struct stat *stb; -{ - /* - * TANDEM doesn't have a stat function. - * So we just return 4096 which is the Tandem disk block size. - */ - - /* set all members to zero. */ - - memset(stb, '\0', sizeof(struct stat)); - - /* set file size to arbitrary non-zero value. */ - stb->st_size = 1; - - return 4096; -} - -/* ispath --- return true if path has directory components */ - -int -ispath(file) -const char *file; -{ - for (; *file; file++) { - switch (*file) { - case '.': - return 1; - } - } - return 0; -} - -/* isdirpunct --- return true if char is a directory separator */ - -int -isdirpunct(c) -int c; -{ - return (strchr(".\\", c) != NULL); -} - -void -initstate(i, j, k) -unsigned i; -char * j; -int k; -{ -} - -void setstate(i) -char * i; -{ -} - -/* os_close_on_exec --- set close on exec flag, print warning if fails */ - -void -os_close_on_exec(fd, name, what, dir) -int fd; -char *name, *what, *dir; -{ - /* no-op */ -} - -/* os_isdir --- is this an fd on a directory? */ - -/* can't do this on tandem, so just assume it's not a directory */ - -int -os_isdir(fd) -int fd; -{ - return 0; -} - -/* os_is_setuid --- true if running setuid root */ - -int -os_is_setuid() -{ - return 0; -} - -/* os_setbinmode --- set binary mode on file */ - -int -os_setbinmode (fd, mode) -int fd, mode; -{ - return 0; -} - -/* os_restore_mode --- restore the original mode of the console device */ - -void -os_restore_mode (fd) -int fd; -{ - /* no-op */ - return; -} |