Commit graph

4237 commits

Author SHA1 Message Date
Dag-Erling Smørgrav 03f28475f8 Allow the user to specify port ranges against which to match inet sockets.
Suggested by:	roam
2001-08-07 19:59:52 +00:00
Ruslan Ermilov c4d9468ea0 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
Ruslan Ermilov 489c40dcf5 mdoc(7) police: bump document date for the previous delta. 2001-08-07 13:45:55 +00:00
Ruslan Ermilov 2909f5cf21 mdoc(7) police: sort xrefs. 2001-08-07 13:41:38 +00:00
Ruslan Ermilov df3fa85144 mdoc(7) police: bump document date for the previous delta, fix markup. 2001-08-07 13:40:07 +00:00
Thomas Gellekum 9e6e8e9f89 Fix warnings resulting from `-Wredundant-decls -Wstrict-prototypes'. 2001-08-07 11:09:15 +00:00
Mike Barcroft b5b9b43078 Constify, staticize, and set WARNS=2.
MFC after:	3 days
2001-08-06 23:20:06 +00:00
Dima Dorfman 41f59e1ce0 can not -> cannot 2001-08-05 22:07:27 +00:00
Mike Barcroft eade81c941 o Move APNIC flag from -p to -A. Since, -p is usually associated
with specifying a port.
o Add the -p flag for specifying a port.  (PR: 28790)  This is
  useful for querying rwhois servers.  Example:
    whois -h rwhois.exodus.net -p rwhois 216.136.180.0
o Add the -c flag which allows one to get the same whois server
  that would normally be determined if no arguments were specified.
  (Concept based on work by phantom, requested by ache)  Example:
    whois -c ru TCNET-MNT-RIPN
o Deprecate -R flag in favour of -c ru.

PR:		28790
Reviewed by:	-audit, ache, phantom
2001-08-05 19:37:12 +00:00
Dima Dorfman e632521c36 Document -d in usage.
Submitted by:	Martin Kammerhofer <mkamm@sbox.tu-graz.ac.at>
2001-08-05 16:01:34 +00:00
Jonathan Chen 48aa92042e Fix using /usr/bin/ftp as a slave process on the end of a pipe by calling
fflush(stdout).  This is one ancient PR...

PR:		bin/1589
Submitted by:	imp
2001-08-05 08:39:58 +00:00
Thomas Gellekum b99bacc92b Fix warnings from `-Wmissing-prototypes'. Staticize. 2001-08-03 10:47:56 +00:00
Thomas Gellekum 273a0913fe Sort SRCS. 2001-08-03 10:47:13 +00:00
Maxim Sobolev a8ec1b4851 Fix a cryptoless world by disconnecting libmp from the build when there is no
crypto bits installed and/or NOCRYPTO/NO_OPENSSL is defined. This unfortunately
meants that usr.bin/chkey, usr.bin/newkey and usr.sbin/keyserv have also to
be disconnected.

IMO it is merely a workaround, the proper solution is to move libmp to
src/crypto where it belongs and use libgmp for the cryptoless builds instead.

Missed by:	dd
2001-08-02 15:47:03 +00:00
Sheldon Hearn 86f478757a MFS: in HISTORY section, fix release number of first appearance 2001-08-01 12:15:21 +00:00
Thomas Gellekum 399a82cd5d Don't wait for a keypress in INT 16 function 01, just return the current
state. This fixes Easytrax.
2001-08-01 11:47:06 +00:00
Thomas Gellekum 008969f3d3 Mark debug() and fatal() as __printflike() and fix resulting warnings. 2001-07-31 11:27:48 +00:00
Thomas Gellekum ddda86e60f Sort options, remove unknown option 'f'. 2001-07-31 11:25:52 +00:00
Bosko Milekic a8a35cdd91 Add a "X KBytes of wired memory reserved" metric that represents
approximately the amount of memory allocated from the mbuf maps
and sitting in the mbuf allocator's cache containers, and display
in parantheses the percentage of said memory that is actually
in use at the given time `netstat -m' is executed.

Suggested by: mjacob
2001-07-31 08:19:49 +00:00
Yaroslav Tykhiy b95dbabab3 Don't use ".nofinger" as a string constant from within the code
since there is the ``pathnames.h'' file; use _PATH_NOFINGER instead.
2001-07-30 16:50:47 +00:00
Thomas Gellekum 86c393fc09 - Add some more x86 instructions to emulate,
- emulate VGA read mode 0,
- emulate VGA write mode 1,
- minor cleanup.

Protel's Easytrax, a free PCB layout program, almost runs now; there are
still some problems with the keyboard emulation, but the graphics are fine
(albeit a bit slow).
2001-07-30 12:03:38 +00:00
Thomas Gellekum 07679c2d28 - Fix file names <:-(,
- attempt to find the X includes and libraries better,
- sort some things.

Submitted by:	bde
2001-07-30 11:38:20 +00:00
Bruce Evans 0c593a5078 Fixed bitrot in DPADD in previous commit.
Fixed some style bugs (mainly disorder).
2001-07-30 11:16:39 +00:00
Bruce Evans 13c05935fa Removed garbage "CFLAGS+= -I.". This finishes backing out rev.1.4. 2001-07-30 11:08:11 +00:00
David E. O'Brien f1c116854d Update to version 3.36. 2001-07-30 03:50:24 +00:00
David E. O'Brien 56e3dc4288 Update to version 3.36.
I had to hack print.c due to some new bits that only compile on NetBSD.
I could not figure what the analogous FreeBSD bits are.
2001-07-30 03:50:04 +00:00
Thomas Moestl 1e543a5075 Correct the old length argument passed to sysctl to be a pointer to a
size_t (not to an int).

MFC after:	2 days
2001-07-29 21:56:14 +00:00
Dima Dorfman 7bd0b86765 Enable the new libmp in the build, and disable libgmp and its
henchmen.
2001-07-29 08:58:22 +00:00
Mark Peek 5d89a19753 Properly handle wgetch(3) returning ERR. This prevents an abnormal exit
when a windows resize event (SIGWINCH) occurs.

Reported by:	John Doe <rhamming2001@yahoo.com> and others on -stable.
Reviewed by:	dd
MFC after:	1 week
2001-07-28 22:40:10 +00:00
Stefan Eßer 6d64e93980 Include value of command line argument that causes an error message or
warning in said message, since fetch may be run from a makefile or script
which does not print the command line.

Approved by:	des
2001-07-28 21:34:56 +00:00
Mark Murray 9567ba9dda Fix the environment handling:
However, there's still a bug in login.c
because you copy the environment *before* the call to pam_open_session,
which won't set the necessary variables set by /usr/ports/security/pam_ssh.

Submitted by:	Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
2001-07-28 19:53:10 +00:00
Mike Barcroft f458f48b02 Prevent chpass(1) from writing -1 in the UID or GID fields
in the password file by properly casting integers.

PR:		27757
Reviewed by:	des
Approved by:	des
MFC after:	4 days
2001-07-26 23:27:10 +00:00
Brian Somers 5b718312b7 When -n is specified, don't attempt to turn hostnames found in utmp
into addresses as we have no idea what address family they belong to.

When -n is not specified, resolve IPv6 as well as IPv4 addresses found
in the host field of utmp.  Use realhostname_sa() to resolve addresses
(the old code was wrong).

Rename ``x'' to ``x_suffix'' to avoid confusion.

Hard code the host column width to 16 (against the imminent increase
of UT_HOSTSIZE in utmp.h).
2001-07-26 19:20:13 +00:00
Bosko Milekic 49f854f926 - Do not handle the per-CPU containers in mbuf code as though the cpuids
were indices in a dense array. The cpuids are a sparse set and treat
  them as such, setting up containers only for CPUs activated during
  mb_init().

- Fix netstat(1) and systat(1) to treat the per-CPU stats area as a sparse
  map, in accordance with the above.

This allows us to properly boot with certain CPUs disactivated. However, if
we later decide to re-activate said CPUs, we will barf until we decide to
implement CPU spinon/spinoff callback hooks to allow for said CPUs' per-CPU
containers to get configured on their activation.

Reported by: mjacob
Partially (sys/ diffs) Submitted by: mjacob
2001-07-26 18:47:46 +00:00
Thomas Gellekum a0e4393eaf Include <sys/kbio.h> or <machine/console.h>, depending on __FreeBSD_version.
This will reduce diffs to -STABLE.

Don't leave an image of the video RAM around.
2001-07-26 11:09:15 +00:00
Thomas Gellekum 090f957012 Correct font names. Now, how on earth did this work on my system? 2001-07-26 11:05:31 +00:00
Thomas Gellekum d57f02670b Fix bugs introduced in 1.26:
- restore -I. in CFLAGS
- add dependencies of objects on font headers
- missing dependencies of font headers on their sources

Suggested by:	bde
2001-07-26 11:04:08 +00:00
Sheldon Hearn e1b4d8d074 Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by:   David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
Matt Jacob df94d4d280 Fix 64 bit issues so that sockstat && fstat work correctly on alpha.
PR:		29231
Submitted by:	pherman@frenchfries.net
MFC after:	2 weeks
2001-07-25 20:31:20 +00:00
Bill Fenner 1a8b27c035 Use sysctl to export multicast routing stats 2001-07-25 20:14:09 +00:00
Sheldon Hearn bba1ea063e Fix breakage introduced in rev 1.26, with the introduction of
absoluate pathnames starting with /usr/src.

This fixes the installworld target for the case where the source tree is
not in /usr/src.
2001-07-25 12:21:27 +00:00
Andrey A. Chernov ac06a71756 Remove non-existent (missing?) fonts.alias from beforeinstall: target 2001-07-24 19:25:19 +00:00
Andrey A. Chernov 1dab3da105 Add -I${.OBJDIR} to pick generated font*.h 2001-07-24 18:33:26 +00:00
David E. O'Brien a9be9be874 Expland `mymalloc' with malloc + error checking. 2001-07-24 14:15:51 +00:00
David E. O'Brien 44974a7f49 Remove the misnamed `xmalloc' and replace its uses with the realloc (along
with error checking) that it actually was.
2001-07-24 14:14:11 +00:00
David E. O'Brien d54a8ce707 Remove the misnamed `emalloc' and replace its uses with calloc (along
with error checking) which it effectively was.  (malloc+memset)
2001-07-24 14:13:34 +00:00
David E. O'Brien f0cb953721 Remove emalloc and expand to the malloc + error checking it was, where used. 2001-07-24 14:12:05 +00:00
David E. O'Brien ac3c230c82 Remove the misnamed `emalloc' and replace its uses with the calloc (along
with error checking) that it actually was.
2001-07-24 14:11:09 +00:00
David E. O'Brien de9b3b9034 Remove the local basename in favor of the libc version.
Remove xmalloc and xstrdup and do the error checking at the place of use.
2001-07-24 14:09:47 +00:00
David E. O'Brien 707cb19845 Expland the emalloc to do the testing at the place of mallocing. 2001-07-24 14:08:02 +00:00