Commit Graph

6897 Commits

Author SHA1 Message Date
sobomax
1a678ce396 Style policy: reformat multiline comments to conform to style(9). 2001-05-17 10:12:45 +00:00
brian
865dded12d digiModel_t -> enum digi_model
Remove special -I flags that are no longer needed.
2001-05-17 01:42:52 +00:00
joerg
6c1f3a0584 Fix man page markup.
Submitted by:	ru
2001-05-16 17:09:00 +00:00
brian
ca2b54b955 Remove forgotten -Wall
Reminded by: ru
2001-05-16 11:15:49 +00:00
ru
984f44a723 mdoc(7) police: fix markup and spelling. 2001-05-16 10:29:51 +00:00
ru
ec1f9f2380 mdoc(7) police: uppercase abbreviations in revision 1.34. 2001-05-16 09:43:48 +00:00
ru
84f552fde9 mdoc(7) police: double spaces in plain text chunks aren't good. 2001-05-16 09:40:12 +00:00
imp
884812cc96 Save one fork on a buildworld. env FOO=foo bar -> FOO=foo bar. 2001-05-15 22:54:15 +00:00
imp
e96335e5e0 If PASTE isn't defined, define it as a transitional measure. This
allows me to complete make buildworld on my stable machine.

Also change termination case to be clearer what is going on while
searching for map files.
2001-05-15 22:53:05 +00:00
bmah
7a0b8e7b34 Print longer package names. Some of them were running off the right
edge of Perl field specifications.

PR:		bin/26664
Submitted by:	philip@eilio.com
MFC after:	3 days
2001-05-15 18:37:23 +00:00
gshapiro
c74e63c39e The aliases file now lives in /etc/mail/.
PR:		misc/26648
MFC after:	3 days
2001-05-15 15:58:30 +00:00
nsayer
d3f50f6455 Add battery state monitoring to apmd.
The new syntax available in the config file is:

apm_battery [0-9]+(%|[Mm) (dis|)charging { ... }

The stuff in the braces is the same as the existing case. nn% checks for
a certain percentage of life remaining and nnM checks for a cerain
number of minutes remaining. Specifying "discharge" means that you're
interested in knowing when the battery reaches a certain level while AC
power is off, "charging" the opposite.

The man page needs to be updated.

The code can be fooled. If you SIGHUP the daemon and the battery level
matches a rule it will be performed once per SIGHUP. If the battery
level matches a rule and you repeatedly apply and take away AC power,
the rule will be run once per occurance. This, however, is a feature.
:-) The code also only runs when select() times out, so getting APM
events more often than the timeout interval will result in the rules not
being run. These are things that remain to be overcome.
2001-05-15 05:13:45 +00:00
joerg
b8cae4b623 Include fdread(1) into the parent Makefile. 2001-05-14 21:00:14 +00:00
joerg
58e155d3a8 This commit was generated by cvs2svn to compensate for changes in r76589,
which included commits to RCS files with non-trunk default branches.
2001-05-14 20:22:49 +00:00
joerg
627bde993e Initial import of fdread(1), a logical counterpart to fdwrite(1).
Its main purpose is to adapt automatically to the floppy parameters
(in particular the track size for efficient reading), and to allow a
simple error recovery for CRC-errored sectors.  Requires the newly
added fdc(4) options.
2001-05-14 20:22:49 +00:00
sobomax
b20a789cae Fix a possible segfault introduced in my previous commit. 2001-05-14 06:15:07 +00:00
olgeni
f1af8c9644 Check for both hint files in /var/run (elf and aout) and eventually create
them.

Sysinstall used to check /var/run/ld.so.hints (aout related) and create
hints with the ldconfig command, but the ldconfig command alone will
generate elf hints only. The correct behavior is:

* If /var/run/ld-elf.so.hints does not exist, generate elf hints

* If /var/run/ld.so.hints does not exist, generate aout hints
  (using ldconfig with the -aout option)

This will help ports that check for aout libraries using ldconfig in their
pkg-req scripts.

Approved by:	jkh
MFC after:	1 weeks
2001-05-12 19:39:13 +00:00
bde
98636556d9 Fixed a missing library in DPADD.
Fixed some style bugs.
2001-05-12 14:37:53 +00:00
bde
a260600c72 Fixed missing DPADD.
Don't clobber CFLAGS by assigning to it using "=".

Fixed some style bugs.
2001-05-12 14:34:46 +00:00
kris
cb1fb201fb Clean up some of the evil string handling in this code, replace
warnx()+exit() with errx() and replace a big if..then..else construct
to determine the package download directory with a lookup table.

Reviewed by:	jkh
MFC after:	2 weeks
2001-05-12 09:44:32 +00:00
sobomax
3d435c3bf3 Take keyboard map files from ${.CURDIR}/../../share/syscons/keymaps, not from
/usr/share/syscons/keymaps. This should prevent word breakage when new keymaps
have been added.

Prompted by:	Matthew D. Fuller <fullermd@over-yonder.net>
2001-05-12 09:19:36 +00:00
sobomax
5170a9e385 Allow path where keyboard maps are looked for to be altered using environment
variable.
2001-05-12 09:16:09 +00:00
brian
2e530caca7 Bring the interface IFF_UP from ipcp_InterfaceUp() (called from IPCP's
TLU event handler).

This used to be done as a side effect of SIOCAIFADDR'ing the interface,
but now that duplicate SIOCAIFADDRs are optimised out, we can't depend
on that behaviour.
2001-05-11 23:42:03 +00:00
wpaul
c2ceacfa6a Add support for gigabit ethernet cards based on the NatSemi DP83820
and DP83821 gigabit ethernet MAC chips and the NatSemi DP83861 10/100/1000
copper PHY. There are a whole bunch of very low cost cards available with
this chipset selling for $150USD or less. This includes the SMC9462TX,
D-Link DGE-500T, Asante GigaNIX 1000TA and 1000TPC, and a couple cards
from Addtron.

This chip supports TCP/IP checksum offload, VLAN tagging/insertion.
2048-bit multicast filter, jumbograms and has 8K TX and 32K RX FIFOs.
I have not done serious performance testing with this driver. I know
it works, and I want it under CVS control so I can keep tabs on it.
Note that there's no serious mutex stuff in here yet either: I need
to talk more with jhb to figure out the right way to do this. That
said, I don't think there will be any problems.

This driver should also work on the alpha. It's not turned on in
GENERIC.
2001-05-11 19:56:39 +00:00
ache
b75855b041 Add exact names for suggested screenmaps 2001-05-11 08:45:34 +00:00
sobomax
aa401e8fb7 Sync KOI8-U with latest KOI8-R changes. Also restore correct numbering
in the font selection dialog broken by the removal of KOI8-R.

Prompted by:	ache
MFC after:	2 weeks
2001-05-10 21:04:36 +00:00
jkh
0aee2b78da Add Romania to ftp mirrors. 2001-05-10 18:38:25 +00:00
ache
c4dc928d92 Add mousechar_start=3 for Russian font
(-current only)
2001-05-10 17:32:31 +00:00
ache
b40119fa19 Move cons25w entry last, index is off by one otherwise if RunningAsInit 2001-05-10 17:14:29 +00:00
ache
8b732e1fdc Remove CP866 keyboard and KOI8-R font to not confuse users.
Explain more about CP866 font usage.
2001-05-10 17:03:14 +00:00
sobomax
3e209c01a8 Add support for Ukrainian console.
Submitted by:	Olexander Kunytsa <kunia@istc.kiev.ua>
MFC after:	2 weeks
2001-05-10 15:57:16 +00:00
dwmalone
e1f582d079 Add the ability to specify alternate PID file for syslogd.
PR:		25784
Submitted by:	Jon Villarreal <jonv@ivmg.net>
Reviewed by:	iedowse
2001-05-10 15:48:33 +00:00
kris
69c0d8ca97 Patches from OpenBSD:
- check the msg.tsp_type value prior to using it as an
          index into char *tsptype[]
        - use strlcpy's instead of strcpy's
        - & handle short packets properly.

Submitted by:	"Andrew R. Reiter" <arr@watson.org>
Obtained from:	OpenBSD
2001-05-09 08:37:18 +00:00
jkh
b2d08ff4ca Fix what was clearly a 3am brain-o; Boolean should be signed, not
unsigned.  C is kinda loose about this sort of thing but it's no excuse.

Spotted by:	kenny
2001-05-09 08:01:56 +00:00
alfred
3fc7ffcb2b Unbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while and
Kirk finally has ditched them.  While I'm here also ditch FSHLOCK.
2001-05-09 03:38:02 +00:00
obrien
ae83019161 rcsid style fix. 2001-05-09 01:38:28 +00:00
obrien
df1f6231d6 A WIP snuck in the rev 1.34 commit. 2001-05-09 01:37:49 +00:00
dmlb
94169659c4 Use constants in <pccard/cis.h> for scannign the memory window with.
Approved by:	imp
2001-05-07 21:58:31 +00:00
dmlb
e33c5ff0f7 Ensure that pccardd sets up memory windows correctly for drivers other
than if_ed. The code for if_ed to set the offset and memory width
remains.

Approved by:	imp
2001-05-07 21:56:57 +00:00
dmlb
0c00e59bba Fix a minor printing bug that prints incorrect information for memory
block sizes.

This orginally worked in PAO-3 and worked on their r330 branch but got
broken in PAO-3 around December 1998!

Approved by:	imp
Obtained from:	PAO-3
2001-05-07 21:51:54 +00:00
kris
a47418c2c8 * fix ctm(8) to use mkstemp() instead of tempnam() for tempfile
creation.

* Tag the internal err() function with __printflike to allow checking
  for non-constant format string arguments (none exist)

* Use fmtcheck() to sanitize the tar command obtained via -t to make
  sure it doesn't contain extraneous format operators.

Reviewed by:    mikeh
MFC after:      1 week
2001-05-06 03:03:45 +00:00
jkh
2b89aff976 Make soft updates option print more nicely and stop overflow of
right-hand margin when set in 2nd column.  Also do a small amount of
code cleanup.
2001-05-06 02:52:45 +00:00
olgeni
4db5ab098d Replace an instance of the "watch" word with the ".Nm" macro: it is used to
specify the command name.
2001-05-04 23:27:30 +00:00
dmlb
d276ee6376 Off by one in counting the number of MIB entries. 2001-05-03 20:58:22 +00:00
hm
1a3670214b make isdnd less verbose while calculating times: fix another message to be
logged at DL_VALID instead at DL_MSG.
2001-05-03 15:18:50 +00:00
jkh
25eda20075 Remove now obsolete check for root filesystems > cyl 1024. The boot
loader can handle such cases.

Noted by:	olgeni
2001-05-03 09:23:48 +00:00
obrien
e1f6b578aa * include/elf.h has been repo copied to include/elf-hints.h, and it no
longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.
2001-05-02 23:56:21 +00:00
yar
1372bd3003 Add a missing free(3).
PR:		bin/27001
Submitted by:	alex <ml-freebsd-net@phobgate.de>,
		Matthew Emmerton <matt@gsicomp.on.ca>
2001-05-02 19:07:46 +00:00
brian
dca2083aa6 Handle situations where we've already got a P2P interface address
of a/x -> b and then negotiate a/x -> c by simply expecting SIOCAIFADDR
to do the change.

This was broken by the last commit that optimised out the deletion and
re-addition of the same a/x -> b combination, and forgot to compare
the old/new destination addresses.

Conveniently enough, this problem didn't effect setups where the
default route goes via the ppp link, and most other setups don't
care what the the destination address is actually set to.  It broke
test environments where ppp connects to the local machine rather
badly though....
2001-05-02 16:35:24 +00:00
adrian
987b429bf9 Fix the rmuser script to correctly determine if a user does not exist.
PR: 26674
2001-05-02 13:30:42 +00:00