Commit Graph

2371 Commits

Author SHA1 Message Date
Warner Losh e1603e453d Kill printf accidentally committed 1998-07-01 23:31:53 +00:00
Warner Losh 39a1ad8654 Make sourcer's main program execute in X mode.
o Make the dos emulation treat c: and C: the same way.  Sourcer was doing
  a chdir("c:\\") rather than a chdir("C:\\");
o use drlton() in all places where we used to use -'A' so that we're always
  case independent.
o use drntol() in all places where we used to use + 'A' for similar reasons
1998-07-01 19:56:17 +00:00
Warner Losh 4e47f901f9 Implement int 2f ax=1600, which is, according to the Interrupt List,
used to check to see if windows 3.x if running.  We always return 0,
which means that neither Windows 3.x nor Windows/386 2.x is running.  It
also means, btw, that XMS version 1 isn't installed, which is true since
we don't implement that either.
1998-06-30 22:23:06 +00:00
Bruce Evans a8c09dabbd Don't assume that time_t is long. 1998-06-29 17:25:46 +00:00
Bruce Evans 375557fcad Don't assume that time_t is long. 1998-06-29 17:06:00 +00:00
Bruce Evans 39470616b1 Don't assume that time_t is long. 1998-06-29 15:52:49 +00:00
Steve Price d79e6e1601 Fix a few typos.
PR:		7092
Submitted by:	Kauzo Horikawa <h-horik@yk.rim.or.jp>
1998-06-27 20:32:41 +00:00
Robert Nordier d41e2bb8a1 Correct typo: loosing --> losing 1998-06-26 14:25:18 +00:00
Guy Helmer a57a22d25f Update vmstat portion of man page to reflect the statistics currently
shown by systat's vmstat display.
PR:		docs/3764
1998-06-25 22:04:48 +00:00
Peter Wemm 7288c50357 Merge ppp 2.3.3 -> 2.3.5 changes (for what it's worth) 1998-06-23 21:58:41 +00:00
Guy Helmer e063c51e70 Minor grammar and punctuation cleanup.
Reference /etc/periodic/daily instead of /etc/crontab.
1998-06-23 16:52:59 +00:00
Dmitrij Tejblum 8fbaa58a29 Make value of SIZE accurate.
Obtained from:	ps(1)
1998-06-21 18:00:34 +00:00
Wolfram Schneider a2f2188044 Create a save TMPDIR using `mktemp -d'. 1998-06-18 09:26:22 +00:00
Joseph Koshy a3e5bc4fb5 Remove compile time dependency on ARG_MAX.
This fix only removes the dependency on compile time constants.  The code
has other (old) problems that need to be addressed.

PR: 1791
Reviewed-by: bde, tegge
1998-06-17 12:58:43 +00:00
Steve Price a84507eabd sprintf -> snprintf to avoid potential buffer overflow.
PR:		6907
Submitted by:	Archie Cobbs <archie@whistle.com>
1998-06-14 16:03:40 +00:00
Steve Price a05ac887c5 Correct the description of the last four fields.
PR:		6926
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-13 19:14:14 +00:00
Peter Wemm b9305a0668 Make -V expand it's arguments. This means that instead of 'make -V OBJS'
printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g}
it will instead print the actual ${OBJS} value.
1998-06-13 11:55:57 +00:00
Peter Wemm 0cb730b0dc "./strip maybe_stripped" doesn't work too well if maybe_stripped is an
elf executable..
1998-06-12 16:22:25 +00:00
Peter Wemm 5307b90005 The doscmd build process and doscmd.kernel loader is very a.out specific
and doesn't fly too well on in an elf enviroment yet.
1998-06-12 16:18:27 +00:00
Peter Wemm 9ec49abd00 #include <arpa/inet.h> 1998-06-12 14:18:33 +00:00
Peter Wemm 932d41914f Add -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitions
from <link.h>
1998-06-12 14:11:15 +00:00
Peter Wemm 28faa5304b #include <arpa/inet.h>
Also, use real struct in_addr rather than u_long.
1998-06-12 13:04:59 +00:00
Peter Wemm a60c62a3c0 #include <arpa/inet.h> 1998-06-12 12:55:46 +00:00
Peter Wemm 2180733f75 #include <arpa/inet.h> 1998-06-12 12:37:15 +00:00
Andrey A. Chernov abf0f067cf Local filesystems are ufs not ffs
Submitted by: "D. Rock" <rock@cs.uni-sb.de>
1998-06-11 03:47:29 +00:00
Peter Hawkins a1fca66a0b Submitted by: Peter Hawkins thepish@freebsd.org
Small man page fix (missing ']' in [:alpha:] example)
1998-06-11 02:14:58 +00:00
Poul-Henning Kamp 1499abeef4 Spelling fixes.
PR:		6903
Reviewed by:	phk
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-10 12:34:27 +00:00
Peter Wemm 30035fd505 fchflags(8) -> fchflags(2)
Submitted by:  Kenneth Merry <ken@plutotech.com>

Also, while here, mention that other FS's don't do flags.
1998-06-10 07:17:59 +00:00
Warner Losh 5dbf068b1e sizeof(foo - 1) isn't the same as sizeof(foo) - 1.
Pointed out by: Theo De Raadt.
1998-06-09 14:51:05 +00:00
Warner Losh fd67e2c50e Remove unused strvisx. 1998-06-09 04:35:20 +00:00
Warner Losh a716ad6693 Don't assume that hp->h_lenght == 4. Be conservative in its use.
Submitted by:	 J. Assange a long time ago.
1998-06-09 04:31:02 +00:00
Warner Losh f34c49eb54 o Use snprintf rather than sprintf.
o Revert gid to caller before a shell so we can run setgid.
o minor style nits to make bruce happy :-)
o use strncpy correctly.
1998-06-09 04:28:05 +00:00
Warner Losh fae4b464e3 Use mkstemp rather than mktemp for yacc's temp files. This change was made
to OpenBSD a long time ago and to my tree shortly thereafter.  I think theo
made this change, or one similar to it, but I could be wrong.
1998-06-09 04:20:51 +00:00
Warner Losh 448b84a0e4 o Use snprintf rather than sprintf
o Add more checks for buffer overflows
o Use snprintf rather than strcat/cpy and have better checks for max
  length exceeded.

Most of these changes are not exploitable buffer overruns, but it never
hurts to be safe.

Inspired by and obtained from: OpenBSD
1998-06-09 04:17:29 +00:00
Warner Losh 9a1f6729af o Use snprintf over sprintf.
o Use strncpy correctly.
o Use enough buffer for line.

Inspired by or Obtained from: Similar changes in OpenBSD
1998-06-09 04:13:03 +00:00
Warner Losh c788c9b224 Make sure we pass the length - 1 to readlink, since it adds its own
NUL at the end of the path.

Inspired by: OpenBSD's changes in this area by theo de raadt
1998-06-09 04:10:08 +00:00
Warner Losh 205a8ea824 $@ is deprecated, use ${.TARGET} instead. Ditto for other single character
$n.
PR:		 conf/3273
1998-06-09 04:07:23 +00:00
Joseph Koshy 5a41edb419 Reword to remove confusion between su(1)'s "-c" option and that of the shell
being invoked.  Add example that clarifies usage of "-c".

PR: 6859
1998-06-08 05:29:51 +00:00
Peter Hawkins 504986d33e PR: docs/5628
Submitted by:	MITSUNAGA Noriaki mitchy@er.ams.eng.osaka-u.ac.jp
Correct formatting error in display of the "-i size" option description section.
1998-06-06 15:16:02 +00:00
Steve Price 32c2131395 Fix a bunch of spelling errors.
PR:		6856
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-04 21:06:07 +00:00
Bruce Evans 822aa079ec Don't forget to pretend that `make -n -jN' makes the targets that it
says it pretends to make.

This bug was apparently harmless except for normal cases involving
.ORDER statements when it made debugging of -jN using -n very
confusing.  E.g., for:

.ORDER: beforedepend .depend
depend: beforedepend .depend

where beforedepend depends on something so that it is not initially
up to date, `make [-n] -j2 depend' causes `make' to wait for itself
to make beforedepend.  This works fine without -n.  The job to make
beforedepend has normally been started, and beforedepend is marked
as made when the job completes.  However, with -n, the pseudo-job
for making beforedepend has normally completed, and in any case
there was no chance of beforedepend being marked as made.  `make'
actually exited almost immediately with status 0 instead of waiting
forever.
1998-06-04 05:48:57 +00:00
Joseph Koshy 9595a75afa Spelling corrections.
PR: 6829
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-03 04:21:41 +00:00
Peter Hawkins 968d4e7fe2 PR: bin/6828
Submitted by:	njs3@doc.ic.ac.uk
Obtained from:	NetBSD

Implement embedded variable expansion
1998-06-02 13:11:04 +00:00
Peter Wemm defff80956 Treat an EOPNOTSUPP from fchflags() as a non-fatal case. Only warn about
it if flags were explicitly specified on the command line.  Do not warn
if we were merely trying to preserve flags or remove UF_NODUMP.  NFS does
not support flags.

I'm not sure that this is ideal, but it should do for now.  Installing
a plain file onto a NFS server must work, we used to silently ignore the
attempt.  Doing a binary install looses the flags anyway since cpio
doens't preserve them with the cdrom/network images.
XXX make world should not use flags or chown/chgrp in the obj/tmp area.

This is based on a suggestion from Ken Merry <ken@plutotech.com>.
1998-06-02 12:00:08 +00:00
John Hay a39b117f80 Look for kzhead.o and kztail.o in /usr/lib/aout. 1998-06-01 18:34:19 +00:00
Peter Wemm 89ccd25417 SUBDIR += ldd 1998-06-01 14:30:58 +00:00
Peter Wemm a7ef806899 ldd standalone build, after repository copy. 1998-06-01 13:55:12 +00:00
Atsushi Murai 89caae2932 Trim a domain part for wtmp as same as showed by "netstat -r".
Here is a some example for avoiding a confusion.

 It asssumes a logged host domain is "spec.co.jp". All
example is longer than UT_HOSTNAMELEN value.

   1) turbo.tama.spec.co.jp: 192.19.0.2  -> trubo.tama
   2) turbo.tama.foo.co.jp : 192.19.0.2  -> 192.19.0.2
   3) specgw.spec.co.jp    : 202.32.13.1 -> specgw

Submitted by:	Atsushi Murai <amurai@spec.co.jp>
1998-06-01 08:47:04 +00:00
Bruce Evans 67b780b03b Fixed double slashes in pathnames. 1998-05-31 11:32:38 +00:00
John Birrell 218a1b63d6 objformat is part of the i386 mid life identity crisis. On alpha, things
are in their normal places, so objformat isn't required.
1998-05-31 10:48:06 +00:00
Poul-Henning Kamp e796e00de3 Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.
Clean up (or if antipodic: down) some of the msgbuf stuff.

Use an inline function rather than a macro for timecounter delta.

Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.

Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()

This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.

WARNING:  Programs which muck about with struct proc in userland
will have to be fixed.

Reviewed, but found imperfect by:       bde
1998-05-28 09:30:28 +00:00
Daniel O'Callaghan e72acbba84 Reviewed by: Peter Hawkins <thepish@FreeBSD.org>
Add s and w flags to show duration in or with seconds.
1998-05-28 00:58:29 +00:00
John Hay 73cdb7fd38 Correctly display the interrupt counts.
Reviewed with optimizations by:	Tor Egge <tegge>
1998-05-27 21:01:37 +00:00
Peter Wemm e27b6961ff Convert to more canonical format.. It seems that both Soren and I were
working on this in parallel.. :-(
1998-05-27 15:43:24 +00:00
Søren Schmidt dfd93f4d1d Compile & use objformat as it was intended to, I have no idea why
that failed for me before :(
1998-05-27 07:59:37 +00:00
Søren Schmidt cabb97dcbf ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
Søren Schmidt bcd26b5b67 Get owner/group/modes right 1998-05-26 12:27:37 +00:00
Søren Schmidt 8d46441ba4 Oops, remember CFLAGS...
Also compile directly to the target on install.
1998-05-26 06:51:28 +00:00
Daniel O'Callaghan c6a24f8623 PR: 1904
Abort if given uname is > MAXLOGNAME-1
1998-05-26 06:39:08 +00:00
Steve Price 423bac3e47 "EOF of file..." is written to stderr and not stdout.
PR:		6756
1998-05-26 00:39:12 +00:00
Søren Schmidt 77dfb966d9 ELF preparation step 1:
Move our old a.out utils to /usr/libexec/aout.
Enable binutils and put the utils in /usr/libexec/elf
Enable objformat, a little helper program that calls the right
utils based on /etc/objformat and $OBJFORMAT.

This will enable the ELF generating tools.
Remember that this is only step one, the system is still compiled
and run in a.out format ONLY.

Problem left to solve: The BSD manpages wins over the GNU equivalents
as the are installed last. We need to distinguish between the manpages
somehow...
1998-05-25 17:34:42 +00:00
Søren Schmidt e793c690a0 Only compile on install. 1998-05-25 15:00:49 +00:00
Søren Schmidt 8d2cfc044c Make objformat DTRT when in the make world environment. 1998-05-25 14:42:22 +00:00
Dag-Erling Smørgrav 7ac237e80f Back out Steve's fix, as this was already fixed by me in revision 1.6 1998-05-25 12:04:47 +00:00
Steve Price af2bbadbe0 Only allow 'who' and 'who am i' as valid usages.
PR:		6294
Submitted by:	Ruslan Ermilov <ru@ucb.crimea.ua>
1998-05-25 07:19:07 +00:00
Steve Price c2fd2f2c1b Allow spaces in the filename to be decoded to.
PR:		4882
Submitted by:	Slaven Rezic <eserte@cs.tu-berlin.de>
1998-05-25 06:27:09 +00:00
Steve Price 37253803e6 Allow a user in group 0 to su(1) to root if their primary
group is 0 in /etc/passwd even if they aren't listed
as a member in /etc/group.  This is more inline with
what the group manpage says.

PR:		6696
Submitted by:	Max Euston <meuston@jmrodgers.com>
1998-05-25 03:34:52 +00:00
Steve Price fe6fb5d439 Add a graceful jumping off point with a new .error directive.
PR:		6720
Submitted by:	Niall Smart <njs3@doc.ic.ac.uk>
1998-05-25 03:28:37 +00:00
Joseph Koshy 6a34c72516 Sort SEE ALSO section alphabetically. 1998-05-22 11:09:01 +00:00
Joseph Koshy a88d7a8297 Cosmetic fix. Compute header field widths from UT_{HOST,LINE,NAME}SIZE
instead of hardcoding header line.

PR: 6325
1998-05-21 08:46:48 +00:00
Robert Nordier c70772eab9 Support integer constant unsigned-suffix and long-long-suffix. 1998-05-19 20:41:20 +00:00
Pierre Beyssac 958d6f7fc3 Make "netstat -s" display stats on fast-forwarded packets.
Obtained from: NetBSD code
1998-05-19 16:00:55 +00:00
Joseph Koshy 49ca483aa1 Use the correct name of the login.conf(5) capability (`passwordperiod' ->
`passwordtime').
1998-05-19 03:48:07 +00:00
Mark Murray 3492514dfd Include correct header to get definition of struct sockaddr_un. 1998-05-16 21:35:37 +00:00
Garrett Wollman 8ad9b1a36b Fix rev. 1.7: get offsetof from the correct header file. 1998-05-16 18:04:00 +00:00
Andrey A. Chernov bc6ee716d5 Fix broken sun_len usage: it is not sun_path length but bigger 1998-05-16 08:31:49 +00:00
Garrett Wollman 4f81ef5056 mbuf, inet, and unix modules no longer read kvm. 1998-05-15 20:19:21 +00:00
John Birrell 4d47d82d5f More programs are now broken on alpha due to the libbind changes
that prevent the programs from being linked static (duplicated
symbols).

Other programs depend on kernel internals. These will have to wait
for a custom alpha kernel. For now, let's just make the build safe.
1998-05-15 12:33:56 +00:00
John Birrell 17ce12487f Change variable from long to time_t where they are passed by reference
to time().
1998-05-15 12:28:43 +00:00
Joseph Koshy 41cbb62401 Add cross references for find(1), locate(1), whereis(1) and which(1).
Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642
1998-05-15 11:22:42 +00:00
John Birrell 429f4d134c Change the name of a variable from _start to s_start. On alpha there
must be a library function called _start.
1998-05-15 09:26:28 +00:00
Joseph Koshy bc53c0a6b2 Allow `w' to treat a corrupted "utmp" as a non fatal error.
PR: bin/2832
1998-05-14 10:13:24 +00:00
Poul-Henning Kamp 84717b42e8 .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT
PR:		6599
Reviewed by:	phk
Submitted by:	Josh Gilliam <josh@quick.net>
1998-05-13 07:57:49 +00:00
John Birrell c021a0a9d0 Fix broken (at least on alpha, but probably on i386 too) code which
is supposed to walk an arry of character pointers, not an array of
characters.
1998-05-13 05:50:42 +00:00
Wolfram Schneider 43721e3d1d Some commands are shell builtins. Execute the builtins by the shell
and not directly by make(1).

PR: bin/6550
Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org & wosch
1998-05-12 11:54:12 +00:00
Bruce Evans 330698829e Fixed missing dependencies on headers generated by rpcgen, as usual.
Removed bogus dependencies of generated .c files on generated headers.
Sorted sources lists.
1998-05-10 16:01:36 +00:00
Garrett Wollman cffe96c903 Fix my last change: the .Fx macro doesn't do anything useful without an
argument, so use `.Tn FreeBSD' instead.
1998-05-09 21:39:49 +00:00
Garrett Wollman eeed58d824 Documentation fix: delete references to T/TCP as they are not relevant
to the case in question.  (Said case being quite clearly defined by
the basic TCP specification, RFC 792.)
1998-05-09 20:50:37 +00:00
Dag-Erling Smørgrav 49778f39ac Arrggghhhh... forgot to strip the / after outputting %2f 1998-05-09 08:56:07 +00:00
Dag-Erling Smørgrav 757c6582c1 Map a leading / in -c argument to %2f instead of dropping it silently.
PR:		bin/6558
1998-05-09 08:41:23 +00:00
Bill Fenner 5e92200712 Describe absolute paths in FTP URL's. This patch has been sitting
around uncommitted for 2 months =(
1998-05-09 07:33:09 +00:00
Masafumi Max NAKANE c58bc017e8 In the SEE ALSO section, {get,set}rlimit are said to be in the section
3 which are actually in the section 2.
Pointed out by:	Brian Reichert <reichert@numachi.com>
PR:		6480
1998-05-08 14:46:23 +00:00
Bruce Evans de1d4a81ee Added y.tab.h to SRCS. This should have been used to get dependencies
on y.tab.h generated.  It will soon be used to tell bsd.dep.mk that
y.tab.h itself needs to be generated.
1998-05-05 13:16:35 +00:00
Bruce Evans 8d4a858381 Put y.tab.h back in SRCS. This used to be the best way to get
dependencies on y.tab.h generated.  It will soon be used to tell
bsd.dep.mk that y.tab.h itself needs to be generated.
1998-05-05 13:00:26 +00:00
Philippe Charnier d4eaae7abd Add usage() and rcsid. Remove unused #include. -Wall. 1998-05-05 06:13:47 +00:00
Alexander Langer 1dbfc421b6 Permit double digit year values to be used in the next millenium. 1998-05-05 01:53:15 +00:00
Robert Nordier 1879eba7ea Make compatible with standard what command:
Implement -s option
    Keep going if a file is not found
    Append ':' to printed filenames
    Include backslash in terminal characters
    Make exit status dependent on a match having been found
    Revise manpage accordingly
1998-05-04 22:26:56 +00:00
Bruce Evans b681d90662 Fixed races in `make -jN' using new yacc rules. 1998-05-04 20:09:06 +00:00
Bruce Evans 42c5ca4ad6 Simplified by using new yacc rules and by not generating y.tab.h. 1998-05-04 19:25:41 +00:00
Bruce Evans 1b1ddfa527 Simplified by using new yacc rules. The new lex rules can't be used
here, at least without ifdefs for the bootstrap.
1998-05-04 19:10:20 +00:00