Commit Graph

3582 Commits

Author SHA1 Message Date
ru
d005b5ece3 Backed out part of the revision 1.10.
BLOCKSIZE could specify arbitrary block sizes, not exactly 1K blocks.
2000-10-16 10:00:50 +00:00
brian
595fba88d1 Include sys/types.h 2000-10-16 08:28:50 +00:00
brian
f6831d54de Include sys/types.h 2000-10-16 08:22:42 +00:00
brian
abbfc7dc26 Include sys/types.h 2000-10-16 08:13:59 +00:00
alex
fc4823ddb5 Correct the usage of mktemp:
The old version lists all args as optional.
However, you need at least one arg to get a usable result.

PR:		18667
Reported by:	obrien
Submitted by:	Johan Karlsson <k@numeri.campus.luth.se>
Reviewed by:	sheldonh
2000-10-15 11:35:48 +00:00
obrien
b253f447da Remove GLOBAL -- it has moved to Ports.
Approved by:	unanimous response on arch@freebsd.org (June time frame)
2000-10-15 07:10:42 +00:00
bmilekic
78e7ab057b Change the "in use" percentage metric to actually display a real
"in use" percentage. In other words, show how much of mb_map is in use.
2000-10-15 06:29:22 +00:00
des
ce30f3bd5b Skip sockets with no SCB 2000-10-13 16:25:37 +00:00
des
5cc12bbe00 Fix suffix matching.
Restore historical behaviour when the first argument is an empty string.

Submitted by:	Alexander N. Kabaev <ak03@gte.com>
Pointed out by:	bde
2000-10-12 16:22:15 +00:00
gshapiro
9c3ddc055a Fix man page installation
Style fixes

Submitted by:	bde
2000-10-11 04:53:30 +00:00
gshapiro
229a086ed1 Use sendmail's version of vacation. It is command line and database
compatible with the old version but includes new functionality and bug fixes.

Since it is not part of the NO_SENDMAIL make.conf option, libsmdb and
libsmutil should always be built for vacation's sake.

PR:		15227
2000-10-10 18:14:30 +00:00
wollman
5e8b712997 Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).
2000-10-10 01:50:26 +00:00
kris
1d9cb81f2a Don't overflow in command-line args
Submitted by:	Mike Heffner <mheffner@vt.edu>
2000-10-09 05:44:39 +00:00
will
13a9b5c1d5 Add :L and :U variable modifiers. These convert the variable's value to
all-lower or all-upper case characters, respectively.  These were added
to further reduce differences between NetBSD/OpenBSD and FreeBSD make(1)
to propagate OpenPackages.

PR:		19959
Submitted by:	Gaspar Chilingarav <nm@web.am>
2000-10-09 04:53:36 +00:00
will
44f6c64eb5 Add :C/// variable modifier, which is similar to :S/// in functionality
but allows for regex.  I removed NO_REGEX since no one could give a reason
to have it, and since we don't use make in bootstrap tools, it's not needed.

This is mostly added to synch up with NetBSD/OpenBSD so as to eliminate
roadblocks in the OpenPackages project (see http://www.openpackages.org/).
It's also quite useful, and costs us only about 3 kilobytes of space.

PR:		21605
Submitted by:	Hubert Feyrer <hubertf@NetBSD.org>
Reviewed by:	silence on -arch
Obtained from:	NetBSD
2000-10-09 04:31:43 +00:00
phk
c0aadf7521 Initiate deorbit burn sequence for <machine/console.h>.
Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>.
This is also the appropriate fix for exo-tree sources.

Put warnings in <machine/console.h> to discourage use.
November 15th 2000 the warnings will be converted to errors.
January 15th 2001 the <machine/console.h> files will be removed.
2000-10-08 21:34:00 +00:00
bde
73d023390c Use the correct timestamp for the -C -p case when the comparison fails.
A garbage timestamp was used for at least installing /dev/null with -C -p
when the target doesn't already exist.
2000-10-08 09:17:56 +00:00
des
7baf027a23 Document the fact that sockstat now lists Unix domain sockets, and the new
command-line options for selecting what to display.
2000-10-07 14:11:43 +00:00
des
4757fed205 Total rewrite. This was actually the first non-trivial Perl script I ever
wrote, and as such was not very pretty.

Changes that may cause problems for people who use sockstat in scripts:

 - sockstat(8) now displays Unix domain sockets in addition to IPv4 and IPv6
 - the last period in local and foreign addresses is changed to a colon to
   make the port number easier to spot
 - IPv4 and IPv6 sockets are listed separately (IPv4 first, then IPv6, then
   Unix)
2000-10-07 14:10:37 +00:00
alex
70aabd30c0 List the -t option in usage().
PR:		21734
Submitted by:	Giorgos Keramidas <keramida@ceid.upatras.gr>
2000-10-06 12:10:51 +00:00
alex
672dd9c069 List the options in alphabetic order.
PR:		21734
Submitted by:	Johan Karlsson <k@numeri.campus.luth.se>
2000-10-06 12:07:46 +00:00
ru
4b828cb0d9 It may happen so that the local talk daemon is not running.
Let the user know...
2000-10-05 17:39:01 +00:00
ru
a599b4970f Do not allow `finger -m /somefile' as well. 2000-10-05 15:56:13 +00:00
ru
6c04419e5a Replaced unsafe use of sprintf() with snprintf(). 2000-10-03 17:05:02 +00:00
brian
31f91f1f69 Don't allow finger /somefile, only allow filname expansions from
inside /etc/finger.conf

PR:	21704
2000-10-02 22:27:34 +00:00
n_hibma
22b60b9ea3 Instead of printing '(null)' if there is no tty, print 'no tty'.
In the case where the program is executed by a daemon running in the
background the terminal might not have a tty. The '(null)' is confusing.
2000-10-02 17:31:57 +00:00
will
45f619ff8f Assume MAINTAINER. I will be taking the job of merging NetBSD/OpenBSD
improvements (including :C & :L, among others).  After that, I'll be coming
up with other ways to improve make(1).

Discussed in spirit with:	peter
2000-09-29 19:51:48 +00:00
dfr
c977d635e7 Add ia64 support and fix problems when cross-building when the host has
a different pointer size from the target.
2000-09-29 13:29:43 +00:00
peter
278fef9582 *** empty log message *** 2000-09-25 18:44:30 +00:00
ru
5a11dbce06 Do not call freeaddrinfo(res0) twice.
PR:		bin/21476
2000-09-25 11:38:28 +00:00
wollman
3da774a231 Don't assume ai0->ai_canonname will always be filled in. Print the
user-supplied host name if we can't get a canonical name.

Obtained from:	contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
2000-09-24 01:54:49 +00:00
wollman
ad32799cf8 Implement IPv6 support. Also restructure the way multi-homed hosts
are treated, regardless of protocol.
2000-09-22 01:06:40 +00:00
wollman
104e33407a Delete a bogus reference to T/TCP -- the problem still exists on Standard
TCP.
2000-09-22 01:04:59 +00:00
imp
51e6367aa1 Fix buffer overflow when DISPLAY is longer than 43 characters. This
is not exploitable because telnet doesn't run with elevated privs.

Didn't fix all the other potential buffer overflows.  Would be a good
task for someone who has lots of time to carefully study each case
because cut and paste solutions are dangerous for this code base.

Added $FreeBSD$ in the same way that command.c did it.
2000-09-20 23:07:04 +00:00
ru
aba9876e8d Fixed the printing of header for IPv4 routing table without -l option.
Broken in rev 1.44.
2000-09-18 11:14:40 +00:00
sheldonh
a88e987ede Correct a few typos, including a mis-represented option (-s instead of
-h for NIS host).

Submitted by:	Peter Avalos <pavalos@theshell.com>
2000-09-18 07:45:47 +00:00
ache
bd2876981b Remove unneded -ltermcap 2000-09-16 03:30:50 +00:00
ache
99f4ac18f5 Remove unneded -lmytinfo 2000-09-16 03:27:54 +00:00
jkh
1c238e12be cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace -I/usr/src/usr.bin/kdump/../.. Fix ioctl.c creation to deal with the depend case more properly.
Submitted by:   Ruslan Ermilov <ru@sunbay.com>
2000-09-14 18:53:08 +00:00
jkh
7777a3353c Fix ioctl.c creation to deal with the depend case more properly.
Submitted by:	Ruslan Ermilov <ru@sunbay.com>
2000-09-14 18:52:48 +00:00
jkh
c95f40eede remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.
Approved by:	sef
2000-09-14 06:20:19 +00:00
brian
541d0f9c23 Don't drop out when we've processed argc - 1 names.... arguments
may expand to more than one user.

PR:	21228
2000-09-12 21:58:31 +00:00
nectar
e6a6e24084 Activate hesinfo.
Noticed by:	Don Lewis <Don.Lewis@tsc.tdk.com>
2000-09-08 23:35:49 +00:00
n_hibma
f62bdbe95f Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and
should be prefixed by YYPREFIX as well.

Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers
are used in executable.
2000-09-07 15:01:18 +00:00
jasone
daa58ba7a4 Major update to the way synchronization is done in the kernel. Highlights
include:

* Mutual exclusion is used instead of spl*().  See mutex(9).  (Note: The
  alpha port is still in transition and currently uses both.)

* Per-CPU idle processes.

* Interrupts are run in their own separate kernel threads and can be
  preempted (i386 only).

Partially contributed by:	BSDi (BSD/OS)
Submissions by (at least):	cp, dfr, dillon, grog, jake, jhb, sheldonh
2000-09-07 01:33:02 +00:00
nectar
4ded299256 Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.

= Hesiod has been added to libc (see hesiod(3)).

= A library routine for parsing nsswitch.conf and invoking callback
  functions as specified has been added to libc (see nsdispatch(3)).

= The following C library functions have been modified to use nsdispatch:
    . getgrent, getgrnam, getgrgid
    . getpwent, getpwnam, getpwuid
    . getusershell
    . getaddrinfo
    . gethostbyname, gethostbyname2, gethostbyaddr
    . getnetbyname, getnetbyaddr
    . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr

= host.conf has been removed from src/etc.  rc.network has been modified
  to warn that host.conf is no longer used at boot time.  In addition, if
  there is a host.conf but no nsswitch.conf, the latter is created at boot
  time from the former.

Obtained from:	NetBSD
2000-09-06 18:16:48 +00:00
des
6921cc4c03 Reintroduce functionality and error checks that were boneheadedly removed
in the previous commit. Pass me the pointy hat.

PR:		bin/21061
2000-09-06 07:28:02 +00:00
imp
34a8e98fa7 When we have both a rcsid and sccsid, ifdef 0 the sccsid. This
appears to be the standard FreeBSD way to do this.  style(9) is silent
about this, however.
2000-09-04 06:11:25 +00:00
imp
bb9a721597 getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
imp
0d15e0b04e optarg and optind are declared in unistd.h.
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00