Commit Graph

2028 Commits

Author SHA1 Message Date
lukem
0c81e58868 use mkstemp() instead of mktemp() to create the tempfile 1997-03-22 03:38:03 +00:00
mikel
2a8b3fc882 use FD_SETSIZE instead of manifest constant for select(2); from Rolf
Grossman in PR bin/3338.
1997-03-19 05:36:59 +00:00
christos
161ba8eea5 Fix problems in the RE substitution error handling. 1997-03-18 19:24:46 +00:00
mycroft
19d55000f7 Get the byte-swapping right in netmask(). 1997-03-18 03:40:10 +00:00
thorpej
6fac7758e7 Fix typo, per Dave Huang <khym@bga.com>, PR #3345. 1997-03-18 00:40:13 +00:00
christos
852505afb6 Fix pasto in error message. 1997-03-16 19:46:02 +00:00
christos
9384236fae Add support for installing hard and symbolic links via the [-l harms] flag. 1997-03-16 19:43:19 +00:00
lukem
ae07641250 Fixes from <Todd.Miller@cs.colorado.edu>, with some cleanup and reworks by me:
* only echo "Passive mode" in verbose mode; scripts that use ftp
  may get unwanted output otherwise
* disable progress bar and modification time preservation when
  retreiving to a non-regular files. fixes progress bar getting in
  way of "get file /dev/tty"
* setup el_init() et al if editing is set, not if fromatty.
  TODO: migrate this to a function, and call if editing is turned on later
	in the session. also implement edit_cleanup if editing is turned off
* call el_set() after setting SIGWINCH handler. This fixes the problem
  when suspending in a non-cbreak shell (e.g, csh) would trash your tty mode.
* reset interactive mode correctly in auto_fetch() mget mode
1997-03-16 14:24:14 +00:00
christos
067f3f2db4 SMALLFTP->SMALL; remove SMALL from Makefile 1997-03-14 01:39:31 +00:00
cgd
bd158ef43d use ${MKDEP} (and ${MKDEPFLAGS}) properly; from Thorsten Freauf in PR
bin/3325.
1997-03-13 23:23:38 +00:00
christos
49258416ec Deal with SMALLFTP a bit differently [by compiling complete.c] 1997-03-13 22:38:39 +00:00
lukem
3b5054739d Features:
* support remglobbing of auto_fetch arguments
* new flag - '-e'; disable editing
* "page file" == "get file |${PAGER-less}"

Bugfixes/cleanup:
* consistently use a trailing '.' on messages
* code cleanup, including buffer overrun fixes, use puts
  and putchar in places, etc (inspired by OpenBSD mods)
* disable progress bar when local-file is a pipe or '-'
* skip \r in http headers
* fix remote ftpd slash bug more elegantly (so it works with ////)
* abort_remote(): check if cout==NULL before using it. should fix [bin/3273]
* fixed up cosmetic problems when complete_remote() generated errors from the
  remote server (such as "no files found", "login with user and pass", ...)
  done by adding extra argument to remglob(), which is a pointer to an error
  buffer to put messages in rather than printing to stdout.
1997-03-13 06:23:11 +00:00
mikel
cea63f2488 add missing backslash; from David Brownlee in PR bin/3321.
also cleanup RCSids a bit.
1997-03-13 04:57:46 +00:00
mikel
ee2f9698ff use ${MKDEP} (and ${MKDEPFLAGS}) properly; from Thorsten Freauf in PR
bin/3325.
1997-03-13 04:24:38 +00:00
mycroft
fd38f3efbc Remove hack for (very old) GCC bug on i386. 1997-03-12 18:28:55 +00:00
mycroft
2c450c6cc2 Remove kluge for GCC bug on m68k. 1997-03-12 18:13:17 +00:00
christos
dd0a1d0814 Add a .MADE directive to indicated that the children of a target are
up-to-date, even when they are not. This is to simulate our current
make install behavior with proper dependencies.
1997-03-10 21:19:49 +00:00
thorpej
d7fa8cdb0d Use a slightly more sane way to cheat around XXX_BROKEN_GCC on the m68k.
The old way was more complex than necessary, and buggy, as pointed out
by Bruce Albrecht <bruce@zuhause.mn.org> in PR #3309.
1997-03-10 17:29:05 +00:00
fvdl
ff19eb6a74 warnx --> warn, warnx wasn't needed anymore after previous change
(pointed out by enami tsugutomo)
1997-03-10 14:14:37 +00:00
cgd
d15724228e print out a
rwho: no hosts in /var/rwho.
message like ruptime does, for consistency.  (Similarly, exit with exit
code 0, though i'm not sure that's "correct" for either.)
1997-03-08 23:08:28 +00:00
cgd
31b388d823 add rwhod(8) xref 1997-03-08 22:23:19 +00:00
mouse
ee6a5b2cd6 alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
mouse
650ee578da alternate -> alternative, per PR 2643 1997-03-08 14:13:54 +00:00
mikel
e1525d735d merge lite2 changes (just SCCS ids) 1997-03-07 06:14:02 +00:00
fvdl
720565ab4f Correct error in previous. 1997-03-06 16:09:45 +00:00
fvdl
3ee3460f02 Don't bail out when chflags() fails with EOPNOTSUPP. Fixes PR #3288 1997-03-05 23:48:47 +00:00
explorer
1a20e46715 s/strcnpy/strncpy/ typo 1997-03-04 00:21:13 +00:00
explorer
3f120170b2 Add a double quote to make emacs's color mode happy... 1997-03-03 22:47:17 +00:00
explorer
5c1fdae73d Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:22:48 +00:00
explorer
a030e0a1ae Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:12:19 +00:00
mikel
e60e80fff9 pass $SHELL or /bin/sh as argv[0] to subshell, instead of "sh"; fixes
PR bin/3276.
1997-03-03 04:02:21 +00:00
mikel
a9513a3823 fix typo; from Andrew Wheadon in PR bin/3264. 1997-02-28 06:35:48 +00:00
jonathan
f0f7e53290 Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".
Add code to netstat to use libkvm to for kernel variables "mclbytes"
and "msize', and if found, use those for netstat -m rather than
compiled-in defaults.
1997-02-28 00:14:19 +00:00
mikel
5ca01fc0a4 Don't assume that sun_path in sockaddr_un is null-terminated; final fix by
Noriyuki Soda <soda@sra.co.jp>.  fixes part of PR 3035.
1997-02-27 05:41:19 +00:00
mrg
e3fdccd2ce oops, rsh is still setuid root for the moment. 1997-02-24 00:00:22 +00:00
thorpej
a7883a4d79 If kmem stats are not being gathered by the kernel, print a useful
message to that effect.  Fixes PR #3187, submitted by
Guenther Grau <s_grau@ira.uka.de> (fix by me).
1997-02-22 02:04:42 +00:00
thorpej
46610bda06 Tidy up printf formats in "don't use all lower case" warning
message.  From Dave Huang <khym@bga.com>, PR #3198.
1997-02-22 01:50:46 +00:00
mikel
87b7b330c4 don't clobber CFLAGS 1997-02-21 07:52:37 +00:00
explorer
ff34809355 Add Carl Sagan's death 1997-02-20 21:54:39 +00:00
christos
4417c4f61f Reported by cgd: fix .USE directive problems:
1. ${.*} variables did not get expanded in dependencies.
    2. expanded ${.*} variables in .USE dependencies can cause tree
       restructuring; handle it.
    3. in compat mode, expand .USE before evaluating the list of targets,
       instead of doing .USE expansions on demand, because they can cause
       tree restructuring.
1997-02-20 16:51:47 +00:00
mrg
40095a1c39 merge lite2 stuff; fix a bit. 1997-02-17 15:10:53 +00:00
mrg
e2c3c3f6c8 ensure we do not dump core. 1997-02-17 06:14:25 +00:00
mrg
2d7faefcd4 merge lite2 changes. 1997-02-16 15:01:02 +00:00
cgd
91fbda1d8b tn3270 shouldn't try to do magic depending on the setting of
EXPORTABLE_SYSTEM.  Additionally, since it doesn't actually use libtelnet
for any of the 'interesting' features, it shouldn't be using libtelnet
at all (because that adds some serious headaches and problems, on ELF
systems with shared libraries, which cannot be easily addressed and
don't actually _have_ to be).  Now it simply pulls in genget.c from
the libtelnet source, and builds it locally.
1997-02-13 00:30:25 +00:00
mikel
68be8c5d1a fix typo reported by Saitoh Masanobu in PR misc/3214.
also fixed .Nm usage, other typos
1997-02-12 07:09:07 +00:00
mrg
954a0f16a0 getopt returns -1 not EOF. 1997-02-11 09:41:45 +00:00
mrg
f9db097104 remove dangerous sprintf and strcpy calls. 1997-02-11 09:29:26 +00:00
mrg
a4424f42c3 use strncpy. 1997-02-11 09:25:24 +00:00
mrg
53fddda6b9 give buffers lengths; use strdup. 1997-02-11 09:24:03 +00:00
mrg
5e32125362 remove dangerous sprintf call; use strdup 1997-02-11 09:20:15 +00:00
mrg
e5baf973cc avoid not knowing the length of internal buffers. 1997-02-11 08:43:23 +00:00
mrg
23768a9e9a remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:42:03 +00:00
mrg
b9de9dbc60 remove dangerous sprintf and strcpy calls. 1997-02-11 08:40:44 +00:00
mrg
fc8700736a remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:39:23 +00:00
mrg
cc03262905 remove dangerous sprintf and strcpy calls. 1997-02-11 08:26:27 +00:00
mrg
a4d8e69073 remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:21:03 +00:00
mrg
2ba96e4833 remove dangerous sprintf calls. 1997-02-11 08:18:32 +00:00
cjs
795a80dde1 64-bit police. 1997-02-11 08:15:19 +00:00
mrg
56d95f62f0 remove dangerous sprintf calls. 1997-02-11 08:15:08 +00:00
mikel
43d35f1fb2 fix typo; from Saitoh Masanobu in PR misc/3199. 1997-02-11 06:01:54 +00:00
veego
daad32f0db RCS id police. 1997-02-09 14:33:50 +00:00
veego
57344c4022 Add missing ;
Fix pr #3201.
1997-02-09 14:31:41 +00:00
cgd
af10d1eaff handle quoted strings in quoted strings properly, when using multicharacter
quotes.  E.g. if left quote was "``" and right quote was "''", then
"``foo ``bar'' baz''" would yield "foo `bar' baz" when it should yield
"foo ``bar'' baz".
1997-02-08 23:54:49 +00:00
cgd
8b1ea567b0 Simplify some push-back code (e.g. for left and right quotes) so that
it uses pbstr() instead of doing the characters individually (in
    reverse order) with putback().
Fix dodiv() so that divert(<out-of-range stream>) doesn't cause "divnum" to
    return 0, but rather the stream number specified to divert().  Macros
    like PUSHDIVERT/POPDIVERT rely on this.  The new behaviour is compatible
    with vendor m4 implementations.
1997-02-08 23:50:40 +00:00
cgd
2c5dcba13b i don't know why this was still here, but it does not belong. It appears
to have been in Lite2, but with a Net/2 SCCS id.  It's unnecessary (it's
not used), so it's going away.
1997-02-08 23:42:48 +00:00
mikel
7eb775bf99 fix typo; from Saitoh Masanobu in PR misc/3195. 1997-02-07 03:27:22 +00:00
christos
8a0d2c8cb0 Fix PR1882+PR3171, swap display core-dumps from Paul Boven. 1997-02-02 19:20:55 +00:00
lukem
4c7551e4f0 don't display negative ETA upon SIGINFO because filesize isn't known 1997-02-01 11:26:34 +00:00
lukem
3a50014d60 [Yet Another Huge Ftp Commit - hopefully the last for a while,
barring any more little things people want added ...]

New features:
* progressmeter is now asynchronous, so "stalled" transfers can be
  detected. "- stalled -" is displayed instead of the ETA in this case.
  When the xfer resumes, the time that the xfer was stalled for is
  factored out of the ETA. It is debatable whether this is better than
  not factoring it out, but I like it this way (I.e, if it stalls for 8
  seconds and the ETA was 30 seconds, when it resumes the ETA will still
  be 30 seconds).
* verbosity can be disabled on the command line (-V), so that in auto-fetch
  mode the only lines displayed will be a description of the file, and
  the progress bar (if possible)
* if the screen is resized (and detected via the SIGWINCH signal), the
  progress bar will rescale automatically.

Bugs fixed:
* progress bar will not use the last character on the line, as this can
  cause problems on some terminals
* screen dimensions (via ioctl(TIOCWINSZ)) should use stdout not stdin
* progressmeter() used some vars before initialising them
* ^D will quit now. [fixes bin/3162]
* use hstrerror() to generate error message for host name lookup failure.
* use getcwd instead of getwd (it should have been OK, but why tempt fate?)
* auto-fetch transfers will always return a positive exit value upon failure
  or interruption, relative to the file's position in argv[].
* remote completion of / will work, without putting a leading "///".
  This is actually a bug in ftpd(1), where "NLST /" prefixes all names
  with "//", but fixing every ftpd(1) is not an option...
1997-02-01 10:44:54 +00:00
matthias
cd80e9aae6 remove second RCS-Id line. 1997-02-01 09:51:48 +00:00
ghudson
b440233d15 Document the recent change in group wheel semantics. Also, it wasn't
previously documented that anyone could su to root if group 0 didn't
exist.
1997-01-31 23:12:17 +00:00
ghudson
1b6b85b894 As discussed on tech-userlevel, allow anyone to su if group wheel has
no members (if you have just "root" as a member, which is the shipped
default, then no one can su, as before).
1997-01-31 22:22:47 +00:00
matthias
192303707a let the flat profile ignore symbols specified with -E. 1997-01-30 09:20:55 +00:00
matthias
ec450f3940 finding whiteouts didn't work. 1997-01-30 09:17:27 +00:00
mikel
00702536b8 eliminate absent directories from .PATH; PR bin/3154 1997-01-30 07:29:11 +00:00
mikel
feaa2cfce3 fix leftovers from lite2 integration; PR misc/3159 1997-01-30 06:52:44 +00:00
thorpej
e911ec0bfe Don't try to divide by zero in progressmeter().
From Thorsten Frueauf <frueauf@ira.uka.de>, PR #3160.
1997-01-30 03:36:26 +00:00
thorpej
0941c04d45 Add support for generating MD5 checksums, partially derived from the
FreeBSD md5(1) program.  MD5 checksums may be generated by using the
"-m" flag to cksum, or by invoking this program as "md5".
1997-01-30 01:10:32 +00:00
christos
b210ac559b make $MACHINE_ARCH settable from the environment. 1997-01-28 23:58:00 +00:00
christos
704854c465 Update to version 3.22 1997-01-28 00:49:36 +00:00
cgd
0317ced760 fix decode of _IOR/_IOW/_IOWR: 'R' and 'W' were switched (i.e. _IOW ioctls
would print out as '_IOR'), and _IOWR ioctls were being printed as
_IORW (which doesn't exist).
1997-01-27 21:39:50 +00:00
christos
bea4a27a8e and again 1997-01-27 19:56:34 +00:00
christos
96aa33d4de bring in changes from file-3.22 1997-01-27 17:58:11 +00:00
cgd
2ea81b29dd parens around macro value. (oops!) 1997-01-23 19:13:56 +00:00
mikel
f5a8ade241 return 0 on successful exit, compare getopt() result to -1 instead of EOF. 1997-01-23 06:29:05 +00:00
cgd
4f2317d97b add ELF support. tested on an alpha (64-bit ELF), but compiled with both
32- and 64-bit ELF support.
1997-01-23 05:43:29 +00:00
cgd
4790c9bc3d note that -k/-f should be give C names. note what i've done 1997-01-23 05:28:50 +00:00
cgd
4a4977d054 clean up formatting glitches (bogus newlines in source) 1997-01-23 05:14:37 +00:00
cgd
d2fff4533c change the keep list (in_keep_list()) semantics: now keep list is C labels 1997-01-23 05:13:00 +00:00
cgd
20741c52e9 give crunchide a C label name with -k, since crunchgen really doesn't
want to have to care about the object format in use, and C label prefix
is object format dependent.
1997-01-23 05:07:22 +00:00
cgd
9e2f98f172 clean up formatting glitches (bogus newlines in source) 1997-01-23 05:03:49 +00:00
cgd
b78496eee9 add ECOFF, ELF32, and ELF64 recognition code. Right now, when
you try to hide symbols in these kinds of files, an error message
is printed noting that the executable format is not supported.
1997-01-22 23:57:18 +00:00
cgd
d7b9b1a503 dd the various #defines/#ifdefs for ECOFF support. ECOFF will
probably never be completely supported here (since its internal vs.
external symbol handling is so annoying), but at least we can recognize
the ECOFF binaries and print something useful, on machines that use
them.
1997-01-22 23:53:58 +00:00
cgd
144d8aad7e a couple more bogons. (i'd been testing with the wrong executable!)
Now it really works.
1997-01-22 23:33:08 +00:00
cgd
eb8abf7e9d include extern.h, add newline to new fprintf 1997-01-22 23:21:49 +00:00
cgd
34f3806288 fix a couple of goofs ('hide' now returns errors!), move #ifdef 1997-01-22 23:21:01 +00:00
cgd
ccc5be39c2 fix hide_* prototypes 1997-01-22 23:20:03 +00:00
cgd
5247fa0ce9 split this up so that support for other executable formats can be more
easily added.
1997-01-22 22:49:05 +00:00
explorer
8b5cdff515 sprintf -> snprintf, from David A. Holland <dholland@eecs.harvard.edu> 1997-01-20 19:04:59 +00:00
cjs
7e342b5f92 Add list of bugs: relies only on /etc/group for group membership,
sets policy in code.
1997-01-20 07:14:35 +00:00
veego
13c790f77f Add missing ; 1997-01-19 20:17:37 +00:00
lukem
7a7fa80740 New features:
* Command line editing via editline(3) library.
* Context sensitive command and file completion, including remote files.

Enhancements to auto-fetch feature:
* Support for http:// URLs using the http protocol, including proxy HTTP
  support via $htty_proxy if it's defined.
* The connection is kept open between successive files on the same host.
  (obviously, this does not count for http requests.)
* Return value of ftp is 0 on no error, or the offset in argv[] of the file
  which failed (i.e., argv[x] failed, ftp returns x).
* If the path in an ftp URL or classic format line has a trailing '/',
  cd to the path and enter interactive mode. Fixes [bin/3011], albiet
  requiring the user to help ftp in determining the operation.

Other changes:
* '-P port' works for normal ftp, and is the default for all classic style
  auto-fetch transfers and for ftp URLs that don't specify the port.
  (previously it would just work for the first xfer.)
* Some code moved into separated files along logical divisions.
* Editing and completion can be compiled out with -DSMALLFTP.
1997-01-19 14:19:02 +00:00
perry
979eb7d04f close pr-2767 -- add German Reunification Day (from Heiko Rupp) 1997-01-17 15:24:51 +00:00
perry
93933ccd04 Close pr-3115 from stephen.ma@jtec.com.au. He claims:
Sydney was settled by the English on 26 Jan, 1788 not 1778
1997-01-17 05:35:10 +00:00
perry
bb1df8311a document mo command, per pr-3104 by Julian <jdc@orthanc.ncl.ac.uk> 1997-01-17 04:58:12 +00:00
perry
e1389b7341 Add David Packard & Konrad Zuse's deaths to calendar.birthday
submitted by Heiko W.Rupp.
closes pr-2448
Also, moved Alan Turing's birthday from calendar.computer to
calendar.birthday, removed duplicate Thoreau entry and cleaned up date
ordering in calendar.birthday
1997-01-17 02:32:00 +00:00
perry
9cb735d26b fix write to print a warning if the sender has "mesg n" set, instead
of dying with an error. From Mark Weaver
closes pr-355, per thorpej
1997-01-17 01:52:12 +00:00
perry
21e443a885 mail.rc now installed by 'make distribution' -- fixes pr-3015 1997-01-16 23:10:16 +00:00
perry
9d923e3e93 add -t summary option per pr-3075 1997-01-16 22:23:13 +00:00
perry
bf059fab25 make rup handle uptimes of more than 1 year per pr-3060 1997-01-16 22:18:16 +00:00
mikel
5504577051 stdin and stdout are not regular files; fixes PR bin/3112
skip size checks, unlinking, &c. as specified by manpage if output is
  not a regular file
replace manifest constant with BUFSIZ
1997-01-16 04:51:29 +00:00
mikel
0ad5b3127c make -p affect all variables; PR bin/2997 1997-01-15 07:24:25 +00:00
cgd
8d3057754a lint and KNF changes. (mostly casting returns to void to quiet lint.) 1997-01-14 19:20:09 +00:00
cgd
26a525b1a4 lint fixes 1997-01-13 22:04:39 +00:00
tls
9bb9a57573 revert to pre-merged version due to bugs; will fix. 1997-01-13 20:57:48 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
tls
8292047440 Sync to 4.4BSD-Lite2 1997-01-09 15:33:42 +00:00
tls
b871569837 Sync to 4.4BSD-Lite2 1997-01-09 15:17:30 +00:00
tls
0214c17253 RCS ID police 1997-01-09 15:01:32 +00:00
tls
b3f5b3283a Import from 4.4BSD-Lite2 1997-01-09 14:49:43 +00:00
tls
5445d0188b Sync to 4.4BSD-Lite2 1997-01-09 14:39:10 +00:00
tls
20d490585f Sync to 4.4BSD Lite-2 (minus a number of conflicting bugfixes) 1997-01-09 13:29:56 +00:00
tls
4ed8b99e7b Sync to 4.4BSD-Lite2 1997-01-09 12:40:06 +00:00
tls
3514c40606 add note about Kerberos to manual page 1997-01-09 12:09:26 +00:00
tls
c6f1b0a138 RCS ID Police, also Sync to 4.4BSD-Lite2 1997-01-09 12:03:21 +00:00
tls
60a059d296 Sync to 4.4BSD-Lite2 1997-01-09 11:55:19 +00:00
tls
653b58e924 Sync to 4.4BSD-Lite2 1997-01-09 11:43:05 +00:00
tls
29985c32a6 Sync to 4.4BSD-Lite2 1997-01-09 06:57:45 +00:00
leo
f02c53ba36 The atari-Hades can use fdformat too. 1997-01-08 21:41:22 +00:00
tls
d47b2b42f1 remove vestigal Berkeley kpasswdd support 1997-01-07 04:02:11 +00:00
cjs
95a6463b3e PR 3080: fix entry for Apple II NuFX archive.
Fix from Dave Huang <khym@bga.com>.
1997-01-05 10:28:32 +00:00
cjs
938125b32e PR 3081: segfault due to reversed test.
Fix from Todd Kover <kovert@omniscient.com>.
1997-01-05 10:06:40 +00:00
thorpej
32e089cd4b Fix RCS ID, and clean up extra newline at end of file. 1997-01-05 05:21:51 +00:00
lukem
53b51b68ea doproxy(): remove leading "proxy " from input buffer so if another() is called
and line[] is reparsed to build margc/margv, commands don't get confused.
1997-01-03 02:55:59 +00:00
mellon
8040aaffba ns_print: fix type conflict 1997-01-02 08:06:24 +00:00
mellon
9209b257a5 ns_print: undo bogus type conflict 1997-01-02 08:04:26 +00:00
mellon
d8671bd736 Lite2 Merge 1997-01-02 08:00:55 +00:00
jtk
142bbb09e6 fix typos per PR 3076 1997-01-01 16:30:09 +00:00
christos
f73f9b0103 Don't compile the regex code if MAKE_BOOTSTRAP (from gwr) 1996-12-31 18:03:30 +00:00
christos
4442744d56 BSD did not traditionally have <sys/cdefs.h>; use BSD4_4 instead and include
<sys/param.h> to grab it.
1996-12-31 18:02:22 +00:00
christos
59a3352108 implement snprintf() and vsnprintf() for non BSD4_4 systems. 1996-12-31 17:56:04 +00:00
christos
e43039b92f add a missing 'static' decl. 1996-12-31 17:55:28 +00:00
christos
9a2fab368e define const and volatile for non __STDC__ 1996-12-31 17:55:02 +00:00
christos
87961728d3 - include <stdlib.h> to get getenv() prototype on SVR4
- if __STDC__ -> ifdef __STDC__ to appease SVR4
1996-12-31 17:54:16 +00:00
christos
9749ddca0f Use only integral types in procedure arguments. 1996-12-31 17:53:21 +00:00
christos
36d9e80aff Use explicit .c.o rule so that the bootstrap process works. 1996-12-31 17:52:23 +00:00
cgd
89dcb48dfb fix up -ansi -pedantic warnings produced because of static function
declarations nested in other functions.  The solution: declare the
static functions at the top level.
1996-12-29 10:41:53 +00:00
cgd
8e2918a81c make evenpartab be of type 'unsigned char' to avoid -ansi -pedantic errors 1996-12-29 10:38:20 +00:00
cgd
879c890af2 add -ansi -pedantic to CFLAGS, so that people won't try to use the behaviour
of the old zzhack-access macros, which with the current macro definitions
would cause a cast value to be used as an lvalue, which is a gcc extension,
but _not_ what we want.
1996-12-29 10:36:37 +00:00
cgd
88caf985e6 replace old zzhack structure (YUCK!) and number(), boolean(), character(),
and address() macros with new macros of the same names (to get values),
and macros with those names but with "set" prepended and which take a
second argument (to set values).  The new macros use type casts to do
type conversion, which is much cleaner than using a union and making
endianness-related hacks to get the right 'short's and 'char's from
the right array indices.  (YUCK! again, for good measure.)
1996-12-29 10:34:03 +00:00