Commit Graph

1630 Commits

Author SHA1 Message Date
cgd faf2b8bb49 since we're going to use the mem*() functions, we need them prototyped
so that the return types work right on the Alpha.
1996-02-16 03:08:39 +00:00
tls ebe345eab2 I seem to have forgotten to commit the patch in PR1608 when I closed it. Fix VLNEXT handling. 1996-02-15 00:59:16 +00:00
ghudson bd8bd7340f Don't rely on select() not to modify the timeval argument. Also,
simplify the code by passing in NULL rather than an empty fd_set to
indicate no file descriptors.
1996-02-13 16:49:10 +00:00
mycroft b4a40b06a9 Make ww_index and related variables explicitly unsigned. 1996-02-08 21:48:51 +00:00
mycroft c5f36c1ce7 Compress struct ww somewhat. 1996-02-08 21:07:57 +00:00
mycroft 486a2f1ade Minor cleanup for 8-bit cleanliness. From der Mouse, PR 1322.
Eliminate the use of char variables for holding booleans.
1996-02-08 20:44:57 +00:00
mycroft 1a97a35609 Fix off-by-one error in checking field numbers. From der Mouse, PR 1356. 1996-02-08 18:24:16 +00:00
thorpej fb02474c1f In ParseDoInclude(), make a temporary copy of the current file name
while searching for ""-type include files, since the current file name
might not be a writeable string.
1996-02-07 23:04:04 +00:00
christos 8862d696fa fix pr/1421 and pr/1997 1996-02-04 22:20:27 +00:00
christos b941a324f5 Support SVR4 style archives. 1996-02-04 20:34:41 +00:00
mrg dc8adb9e7c don't warn about missing files with -s. POSIX doesn't define a specific
action, and, most other implimentations use this (sane) method.  (from jtc).
1996-02-01 03:32:41 +00:00
jtc 0366d49b2d Fixed to use ffs instead of ufs; See PR #1790, etc. 1996-02-01 02:33:52 +00:00
jtc dd05bd5124 Rename struct timespec fields to conform to POSIX.1b 1996-02-01 00:04:52 +00:00
mycroft d4b276c3d5 Update to match kernel. 1996-01-31 04:01:48 +00:00
thorpej 9ceb2e3fc2 Disks now share a common interface for "unlock" and "eject". Teach
eject(1) how to use it.  There is now a single eject_disk() rather
than eject_floppy(), eject_cdrom(), etc.
1996-01-30 18:35:47 +00:00
mrg b8842d3846 don't emit ti/te sequences where they will cause lossage 1996-01-22 20:36:07 +00:00
mrg 74c88ac929 alter description for -d to match reality 1996-01-22 20:36:02 +00:00
mrg a6fe8f7e38 more is less.
less is more.
QED.
1996-01-22 10:08:31 +00:00
mrg 9b6032417d finished implimentation of more's -d switch 1996-01-22 05:38:24 +00:00
mrg 0048551bc4 more -> less 1996-01-22 04:07:22 +00:00
mrg b53f5a6212 initial import of less290 1996-01-22 03:14:17 +00:00
mycroft 4b28075484 Add a `-q' option, to be quiet about cycles. From der Mouse, PR 1204. 1996-01-17 20:37:49 +00:00
pk ca1b8e8285 Add capability to read archives (from Thomas Eberhardt; PR#497). 1996-01-14 23:07:11 +00:00
pk 16060cce1f Use err() & warn(). 1996-01-14 23:04:03 +00:00
thorpej b62a077e9a Document the -follow option, per David Brownlee <abs@mono.city.ac.uk>
in PR #1113.
1996-01-14 03:52:44 +00:00
pk e09468dc31 Handle multichar comment and quote delimiters (up to 5 characters, per the
manual page). Takes care of PR#485.
1996-01-13 23:25:23 +00:00
pk 9151edd345 Fetch `-p' documentation from a previous version of the man page. 1996-01-09 22:36:19 +00:00
pk 94f289c7bb Fix formatting of timestamp (Mike Grupenhoff; PR#1906). 1996-01-07 00:48:24 +00:00
tls 5a03ea3e48 contrary to unpopular opinion, 'help' is a perfectly valid hostname. 1996-01-05 04:19:30 +00:00
tls a3e32ad737 and once more, courtesy of CVS being weird. 1996-01-04 22:32:15 +00:00
tls e0dccd2ef1 oops, accidentally commited krb version on last change -- delete what isn't supposed to be there any more 1996-01-04 22:28:21 +00:00
tls aaffe4da8f typo in last commit 1996-01-04 22:25:50 +00:00
jtc 76450a80cf merge in change accidently made to release branch 1996-01-04 18:25:47 +00:00
tls f53c6669e7 fix incorrect prototypes for krb functions. I think some of the fixing is ultimately going to have to be done in the functions themselves again -- the Young libdes thinks some functions take *C_Block where the MIT one just takes C_Block. 1996-01-04 17:19:43 +00:00
thorpej 4e1c709e0c Make tn3270 compile again, from Lennart Augustsson <augustss@cs.chalmers.se>
in PR #1873.
1996-01-01 02:16:34 +00:00
jonathan c82a4ed224 Update Makefiles for usr.bin/systat and usr.sbin/iostat to be
consistent with usr.bin/vmstat/Makefile wrt CLFAGS and -I, since
all three compile vmstat/names.c.  (Now compiles on a pmax.)
1995-12-22 08:04:24 +00:00
mycroft 7c55315acb We don't need non-blocking mode without SIGIO. 1995-12-21 11:05:58 +00:00
mycroft 0c627dfad5 Eliminate the use of SIGIO, and some other cleanup. 1995-12-21 10:45:28 +00:00
mycroft 02fedf5cab Use POSIX signals. Always set FNONBLOCK on the tty. 1995-12-21 08:39:50 +00:00
mycroft 52b61da0eb Our VMIN works fine. 1995-12-21 05:24:49 +00:00
jonathan bdb182a2cc Change xinstall to work with strip from GNU binutils, for mips and alpha ports.
When using a strip that uses a temp file and moves that to the target,
unlinking the original, install would set the modes of the
original (now unlinked) file, not the new stripped one.
Fixed by re-opening the fd used for fchown/chmod after stripping.
1995-12-20 10:25:17 +00:00
cgd 3beadd2412 don't forget to remove the _symbol_ temp file. 1995-12-20 04:45:11 +00:00
jonathan 3716ffd555 Use GNU-binutils friendly lorder script on mips as well as alpha. 1995-12-18 07:59:12 +00:00
jonathan 39890661ee Eliminate separate invocation of nm for each .o file on command line.
Add check for dependencies introduced by symbol types 'G' (mips gp-relative
constant pool) and 'R' (readonly data).
1995-12-18 07:45:17 +00:00
jonathan 96d023c99d Fix pmax read_names() to compile with updated (release 1.1) names for
pmax device-driver structures.
1995-12-17 05:30:05 +00:00
jonathan 9b69a8f7e5 Add PTRDIFF_IS_LONG and SIZEOF_IS_ULONG config entries for (32-bit) mips. 1995-12-17 02:53:11 +00:00
christos f0874be2f5 - Added .WAIT to synchronize between sources like other pmake variants.
- Updated documentation to include .ORDER .PARALLEL .NO_PARALLEL .NONPARALLEL
1995-12-16 05:03:09 +00:00
cgd ff5fc3cf84 delete bogus declaration of abort() and include stdlib.h, so that this
compiles w/o warning.
1995-12-11 23:22:09 +00:00
jtc 0076a482bb fix typo 1995-12-05 03:33:39 +00:00
jtc 7439a63b22 Rename uuencode.format(5) to uuencode(5) as recommended by PR #1786 1995-12-05 03:02:31 +00:00
jtc aa84d55d99 environmental -> environment 1995-12-05 02:55:55 +00:00
tls fff3137419 this probably needs to be a syscall to work with our new core format, per pk 1995-12-04 09:57:13 +00:00
neil b488cc87de Added World AIDS Day. Which is today.
12/01   World AIDS Day
1995-12-01 09:42:09 +00:00
jtc db5284ed0a merge in changes from 1.1 release branch 1995-11-28 20:58:08 +00:00
cgd 0cfde2b269 add -Dunix to CFLAGS 1995-11-22 21:52:48 +00:00
christos 6611cb1d0d Updates for POSIX/SVR4 compiling:
arch.c:		 Don't require ranlib stuff. Not everybody has it.
dir.c:		 SunOS-4 != Solaris; change #ifdef sun to #if sun && !__svr4__
job.c, compat.c: Don't use 'union wait', use int and the W*() macros.
main.c: 	 Check for uname() == -1; some unames return > 0...
util.c, job.c:	 Add signal() with BSD semantics for svr4, don't use bsd
		 sigmask and friends.
1995-11-22 17:39:53 +00:00
cgd 738ad05ece fix parallel build changes: at minimum, tools also needs to be
included in subdir list if making 'obj' or 'lint'.  I don't particularly
trust this way of adding things; !make(install) was much more obvious,
and safer in the face of addition of new build targets.
1995-11-22 05:38:58 +00:00
jtc c13a492707 Describe PROFDIR environment variable 1995-11-21 22:24:55 +00:00
thorpej f90cf6bd46 New-style RCS id. 1995-11-17 09:49:19 +00:00
thorpej 884264fa45 Resolve CVS conflicts that appeared in a comment, and thus went unnoticed.
Pointed out to me by Niklas, who heard about it from Theo.
1995-11-15 16:11:17 +00:00
cgd e3c5125de9 pull in make.h. (PAlloc() now uses emalloc(), which is prototyped in
make.h.  If the prototype is not in scope on the Alpha, I see lots
of "cast to pointer from integer of different size" warnings.)
1995-11-10 21:27:27 +00:00
christos 027abce852 - Turn compat mode on by default. It gets turned off when the -j without
the -B flag is specified. [Thus you can use -j 1 to turn it off].
- Fix malloc -> emalloc as Gordon noted.
1995-11-08 02:30:53 +00:00
pk 3ff316b75a sparc support. 1995-11-05 18:02:58 +00:00
christos 61067003d8 Minor:
- ${.PREFIX} should never contain a full pathname
    - Fixed gcc -Wall warnings
Major:
    - compatMake is now FALSE. This means that we are now running in
      full pmake mode:
	  * rules on dependency lines can be executed in parallel and or
	    out of sequence:

	    foo: bar baz

	    can fire the rule for baz before the rule for bar is fired.
	    To enforce bar to be fired before baz, another rule needs to be
	    added. [bar: baz]
	  * adjacent shell commands in a target are now executed by a single
	    invocation of the shell, not one invocation of the shell per line
      (compatMake can be turned off using the -B flag)
    - The -j flag now works... I.e. make -j 4 will fork up to four jobs in
      parallel when it can. The target name is printed before each burst
      of output caused by the target execution as '--- target ---', when j > 1
    - I have changed all the Makefiles so that they work with make -j N, and
      I have tested the whole netbsd by:
	  'make -j 4 cleandir; make -j 4 depend; make -j 4; make -j 4 install'
    - I have not compiled or tested this version of make with -DREMOTE.
1995-11-02 23:54:35 +00:00
pk 577cacfbd8 Make more 8-bit clean (from Andreas Gustafsson; PR#1190). 1995-11-01 00:45:22 +00:00
ws 337d0ee3b1 Always ensure space for trailing NULL in argv 1995-10-30 17:36:27 +00:00
pk 258108ce0f Convert to termios (from Scott Reynolds; PR#1621).
8-bit patches (from Matthieu Herrb; PR#1384).
1995-10-29 00:49:38 +00:00
christos b2b8843794 Update to file-3.19.
- Magic fixes
- MAGIC environment variable processing
- Better LEGAL.NOTICE
- -m magic : separated list of magic files processing
1995-10-27 23:33:14 +00:00
jpo ee102f4854 don't rely on macros predefined by cpp 1995-10-23 14:29:30 +00:00
jpo aa1bae17a4 updated 1995-10-23 13:45:31 +00:00
jpo 6df3d70406 use MB_LEN_MAX instead of MB_CUR_MAX for array declaration, because
MB_CUR_MAX may be a non-constant expression
1995-10-23 13:38:51 +00:00
pk a95b89315d fdeject -> eject. 1995-10-22 16:54:40 +00:00
pk 264a953bbb Superseded by eject(1). 1995-10-22 16:50:55 +00:00
pk 764fa4b6ef Download from `netbsd-1-1' branch. 1995-10-22 16:48:52 +00:00
ghudson ca9d87a5e5 Display the ending time as well as the starting time of processes. 1995-10-22 01:43:40 +00:00
christos 5debbee36d Makefile changes for parallel make support 1995-10-22 00:13:41 +00:00
jtc fbd6724aad Fix spelling error (Michael K. Sanders; PR #1617) 1995-10-19 07:52:46 +00:00
jtc 3384b51b0b Implement change done in revision 1.12 (for PR #1473 & duplicates) in a
slightly different way.  This widens the Address field instead of the
Ipkts field because Address is the one that may be too big.
1995-10-17 07:17:04 +00:00
mycroft 62ed7f22e4 Don't lose on strings that aren't NUL-terminated. 1995-10-12 03:03:49 +00:00
thorpej de321ad16f Conversion from sgtty to termios, from Scott Reynolds <scottr@plexus.com>. 1995-10-10 04:18:01 +00:00
cgd 47b01b6b9c print interrupt names in 14 cols. really should be dynamic. 1995-10-10 01:17:35 +00:00
pk 574942d8f9 Build `fdeject' on sparc. 1995-10-09 12:05:42 +00:00
pk 8d61a674ca Floppy eject program. 1995-10-09 12:01:04 +00:00
pk ce77d757fd And initialize those local variables... 1995-10-09 00:14:41 +00:00
pk 9d43c41208 New style RCS IDs. 1995-10-09 00:09:39 +00:00
pk 3aa94e17f0 Add -f option for customized output. 1995-10-08 23:39:58 +00:00
gwr 4dab4feee0 Allow an override of STRIP=something_else in the generated makefile. 1995-10-08 23:13:44 +00:00
cgd dc9363b197 don't forget to accumulate interrupt counts found via allevents. 1995-10-08 06:54:36 +00:00
cgd 7d7362b02f fix spacing problem in interrupt/total/rate output line of vmstat -i 1995-10-08 06:39:16 +00:00
mycroft 9522b96c5a TIOCFLUSH --> tcflush(). From Matt Green. 1995-10-05 09:07:22 +00:00
thorpej 67f6822225 New-style RCS ids. 1995-10-03 21:42:34 +00:00
jtc 8ab9cf7c7c Remove spurious 'Do not', which looks to be the result of a bad cut-n-paste 1995-10-02 20:19:26 +00:00
jpo c31bb6f41c insert a conversion operator from argument type to parameter type also
if the subtypes of both argument and parameter do not match (use
eqtype() instead of comparing t_tspec fields only).
1995-10-02 17:37:57 +00:00
jpo 0c1422d6bc removed some dubious warnings about conversion of constant operands of
bitwise operators
1995-10-02 17:37:00 +00:00
jpo e284b17305 allow register variables as left operand of POINT; fixes PR 1442 1995-10-02 17:35:57 +00:00
jpo e5ba5db05b don't print a warning about use of unitialized variables if one of the
enclosing compound statements had already an asm statement
1995-10-02 17:35:11 +00:00
jpo 9f9008af93 no need to print a warning about inline keywords
"inline" is a valid keyword only with -g, and "__inline" is always
a valid keyword
1995-10-02 17:34:16 +00:00
jpo ffe990841c don't print warnings about unused variables or arguments in compound
statements which contain asm statements.
1995-10-02 17:31:35 +00:00
jpo 5888f3bb16 LINTED and CONSTCOND are now valid up to the next end of a
global or local declaration/definition/statement. Originally they were
valid on the current and next line, which made it hard to suppress
warnings in constructs with more then one line.

LONGLONG can now be used to suppress errors or warnings in the next
declaration, definition or statement.
1995-10-02 17:29:45 +00:00
jpo b95167a01a support asm statements and asm modifiers in declarations
asm statements consist of an asm keyword, an optional qualifier, a
left paren, a list of tokens up to and including the matching right
paren, and a semicolon.

asm modifiers consist of an asm keyword, an left paren, a string and a
right paren.

asm statements and modifiers have no semantic for lint(1), they exist only
to avoid complaints about them.
1995-10-02 17:26:52 +00:00
jpo bcb6c46ca1 some minor bug fixes 1995-10-02 17:22:46 +00:00
jpo 6910cf7927 prototypes override old style function definitions
this is a gnu extension to ansi c
1995-10-02 17:21:24 +00:00
jpo ef83266200 __{const,signed,volatile}{__,} added
const, signed and volatile are disabled with -t
1995-10-02 17:18:53 +00:00
jpo 2e332f67bf added inline keywords
"inline" is enabled by -g, "__inline" and "__inline__" are always available
1995-10-02 17:14:06 +00:00
jpo a5d55cc062 prefixed members of dinfo_t with 'd_' 1995-10-02 17:08:31 +00:00
cgd f676bc478a need <string.h> for strlen() protos. can't just add it to "string.h",
since not all files that need the proto include that.
CVS ----------------------------------------------------------------------
1995-09-29 00:44:02 +00:00
cgd b3658dd411 need string.h for protos. 1995-09-29 00:32:14 +00:00
cgd ce713b1483 change #ifdef unix's to also accept __NetBSD__. After 1.1 (per a
decision made a long time ago), 'unix' will no longer be defined, and
is not currently defined on some architectures.
1995-09-29 00:27:51 +00:00
tls 5a955f3527 Sync with 4.4BSD-Lite2 1995-09-28 10:33:55 +00:00
tls fcf22abfe3 imported from 44lite2 1995-09-28 09:06:06 +00:00
tls 0ca9b9e38e Add 'rs' from 4.4BSD-Lite2 1995-09-28 08:57:17 +00:00
tls 4e4ff4e98c imported from 44lite2 1995-09-28 08:55:50 +00:00
tls bd18663016 Sync with 4.4BSD-Lite2 1995-09-28 08:49:37 +00:00
perry 20cc106064 Sync with 4.4BSD-Lite2 1995-09-28 08:05:40 +00:00
perry 26727e4c01 Merge and Sync with 4.4BSD-Lite2
Mostly looks like the previous NetBSD version, actually -- only minimal
Lite2 stigmata preserved although I started with Lite2. Mostly the changes
were things like index->strchr and the rest was NetBSD code.
1995-09-28 07:34:35 +00:00
tls c276504da8 Sync with 4.4BSD-Lite2 1995-09-28 06:57:37 +00:00
perry 10b7bf0260 Add RCS ID 1995-09-28 06:24:35 +00:00
jtc 4d8e53d69f Change formatting so that columns line up; PR #1473 + several duplicates 1995-09-28 06:22:54 +00:00
tls 0d3d818683 Sync with 4.4BSD-Lite2 1995-09-28 06:22:18 +00:00
perry f04c0f5743 Sync with 4.4BSD-Lite2 1995-09-28 06:19:55 +00:00
tls 7f429c3306 Sync with 4.4BSD-Lite2 1995-09-28 06:05:11 +00:00
tls 5b36a1959d imported from 44lite2 1995-09-28 05:41:29 +00:00
tls 8ddb734554 Sync with 4.4BSD-Lite2 1995-09-28 05:37:28 +00:00
perry 8ba38ce684 Sync with 4.4BSD-Lite2 1995-09-28 05:15:05 +00:00
jtc ffef8fa9dd Removed SEE ALSO section, we don't have yyfix; PR #1517 1995-09-27 21:37:54 +00:00
jtc 1bd0165884 iostat is in section 8; PR #1533 1995-09-27 19:46:12 +00:00
jtc 519b2df4b4 iostat is in section 8; PR #1533 1995-09-27 19:43:28 +00:00
jtc 8ba230d554 vmstat is in section 8; PR #1532 1995-09-27 19:20:24 +00:00
jtc 132a010296 fix formatting of example; PR #1535 1995-09-27 19:08:42 +00:00
jtc 95c465e08b Update lseek() constants:
L_SET	-> SEEK_SET
And add off_t cast to offset argument.
1995-09-27 18:44:38 +00:00
jtc 6a70570191 include <signal.h> instead of <sys/signal.h> 1995-09-27 18:42:21 +00:00
jtc 6ce8742ab1 Update lseek() constants:
L_SET	-> SEEK_SET
Add off_t cast to offset arg.
1995-09-27 01:10:48 +00:00
jtc 447e47e007 Update lseek() constants:
L_SET	-> SEEK_SET
1995-09-27 01:06:58 +00:00
jtc 0b470f4f06 Fix crash with null eofwrite capabilityand lseek/off_t bug; PR #1346 1995-09-26 06:02:08 +00:00
christos f4699a7dd3 Revert previous suffix fix. If the .a suffix is present and a .c.a rule is
there, then the rule should be applied. This is the correct behavior.
1995-09-25 02:46:30 +00:00
phil d706482f56 For the pc532, get struct iv from the protected part of <machine/psl.h>. 1995-09-24 06:34:47 +00:00
christos ae8c2b9dd3 Don't apply the default suffix rules for nodes that are not in our
current directory because we could be building things outside our
directory that were not meant to be build... Fixes PR/1488
1995-09-22 00:42:10 +00:00
pk 6a4e77edfb Correct timersub() argument order (from Thomas Eberhardt; PR#1470). 1995-09-16 22:32:59 +00:00
pk 7b44b2859d Avoid falling off the end of a fixed-length array (from John F. Woods; PR#1431). 1995-09-15 00:32:33 +00:00
jtc 665fc8b7e7 Fix formatting as suggested in PR #1452 1995-09-14 06:10:53 +00:00
cgd 456a083153 needs string.h for protos. 1995-09-14 01:39:52 +00:00
jtc 7bd4220c4e fix typo; PR #1457 1995-09-12 18:47:09 +00:00
christos 49a4e14351 Handle long lines without core-dumping. 1995-09-10 15:55:13 +00:00
christos 17c2255148 Fix PR/1443:
Dependency rules with `=' in the lhs are parsed as variable assignments.
E.g., the following Makefile fails:

A=a b c d
all: $(A:%=%b)
$(A:%=%b):
	@echo $@
1995-09-10 03:58:16 +00:00
tls 94f6fc8e46 Sync with 4.4lite2 1995-09-08 03:22:54 +00:00
tls 917ef72d79 Sync with 4.4lite2 1995-09-08 01:05:59 +00:00
jtc 1a86f1c724 Revert last change, it seems that a lot of software (including our own
lint) uses yydebug even when YYDEBUG is not defined.
1995-09-07 17:34:04 +00:00
jtc 5a172566ef Fixed bug I introduced when changing printf comparison vs. EOF. Noted by
andreas@planix.com.
1995-09-05 19:57:43 +00:00
jtc f4e11cbd09 Include /usr/bin/banner (different from /usr/games/banner) 1995-09-05 18:40:29 +00:00
jtc cbe2365667 Repair broken merge 1995-09-05 18:36:28 +00:00