Commit Graph

174962 Commits

Author SHA1 Message Date
reed 862cfefb55 Output (when verbose) when storing checksum files.
This may be a little noisy.
As discussed on current-users in March 2008.
2008-11-08 02:11:54 +00:00
reed 5656e47ecf Be consistent (like the other rpc* manual pages) and have the
Document Title match the filename.
Now this is correct alphabetically for the man0 generation.
2008-11-08 02:08:39 +00:00
dyoung 8e791deb98 To finish the device_t/softc split, convert some casts to struct
auich_softc * to device_private() calls.
2008-11-08 00:26:35 +00:00
christos c8877ef31c and if you don't succeed twice, try again. 2008-11-08 00:14:05 +00:00
cegger 83fde857cc buildfix: use PRIxPTR rather %lx. 2008-11-07 19:50:00 +00:00
he 761f38db5c In wsdisplay_kbdholdscreen(), just return if sc->sc_focus is NULL.
There is apparently no guarantee sc->sc_focus will be non-NULL,
as proved by a crash I experienced earlier today (admittedly on 4.0.1).
2008-11-07 19:33:13 +00:00
wiz a4814aed6a The escape sequence for a backslash is "\e". 2008-11-07 16:51:27 +00:00
wiz a6a4761c6a Drop trailing space. 2008-11-07 16:49:45 +00:00
wiz 5c9fd16b20 Fix typo. 2008-11-07 16:46:00 +00:00
rafal dd332648f3 Let hpcboot load kernels linked with PA != VA; use the PA addresses specified
instead of the VA addresses.  Should make no difference for kernels where the
physical and virtual addresses are the same.
2008-11-07 16:28:26 +00:00
rafal dba38eab03 Explicitly set LOADADDR of bss/sbss so naiive bootloaders (cough, hpcboot)
can deal with the BSS/SBSS of kernels linked with PA != VA.
2008-11-07 16:23:58 +00:00
rafal 9a83d246e7 Make stray interrupt handler get the minimum IRQ number based on the current
CPU type vs. hardcoding it for pxa270.
2008-11-07 16:14:37 +00:00
rafal 155980bdb0 Remove parameter checks from under DEBUG; bad gpio pin numbers will cause
the kernel to fall over rather quickly anyway with memory faults, so a panic
with a hint as to what's wrong seems much better.
2008-11-07 16:13:16 +00:00
reed a455765d91 Use line continuation for an example. It was too wide for my output
so was cropped.

Already shared upstream and was told (in September) will be in next
major release.
2008-11-07 15:50:38 +00:00
christos 61a52fac84 PR/39874: Geoff C. Wing: For compatibility trim hostname domains in bsd
output format when matching host lines.
2008-11-07 15:42:01 +00:00
reed a798b8c1a1 Be consistent: document the birthtime field of struct stat for
the "B" field specifier.
2008-11-07 15:33:31 +00:00
joerg 7efce18adf Drop non-applicable part of the original version in libarchive. 2008-11-07 15:24:44 +00:00
joerg 0e0a05e75d Switch to the correct second generation wpi(4) firmware. 2008-11-07 15:18:24 +00:00
christos 440e6c6264 Try a different fix for PR/11317: Don't ignore errors in list(). 2008-11-07 15:18:11 +00:00
joerg ae1f167309 Remove old version of wpi(4) firmware. 2008-11-07 15:11:16 +00:00
christos 2afd855bd9 Break PR/11317 again. The counting parentheses fix does not handle case
statements properly. Fixes PR/39873.
2008-11-07 15:08:43 +00:00
joerg b78ac4dea0 Import the real wpi(4) firmware image. 2008-11-07 15:01:55 +00:00
joerg 866b295da8 Match image name with upstream distfiles. 2008-11-07 14:58:27 +00:00
joerg a9e7045184 Don't reference pkgsrc package. 2008-11-07 14:51:12 +00:00
joerg a0241f836c Drop FILES section. 2008-11-07 14:50:45 +00:00
joerg 2af8c311c1 Don't reference pkgsrc firmware package. 2008-11-07 14:50:16 +00:00
joerg 4cab5b31e4 Update to reflect that the firmware images are shipped with base now.
For ipw and iwi also document the sysctl variables.
2008-11-07 11:41:34 +00:00
rtr 399b7cbd4e add entries for MKDEBUG=yes
- xmlwf.debug
  - fc-match.debug
  - fc-cat.debug
2008-11-07 10:55:28 +00:00
rtr d6cd7f5a3c sort 2008-11-07 10:24:18 +00:00
minskim a325bf28ac Remove trailing whitespace. 2008-11-07 07:36:38 +00:00
rafal ca70a1c015 Pass / log return address in a few more places; proposed on tech-kern and
ok'd by ad@ about 6 months ago.
2008-11-07 02:40:35 +00:00
dyoung de87fe677d *** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02🇩🇪ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.
2008-11-07 00:20:01 +00:00
pooka f455f7ee91 * use advisory file locks to avoid multiple mounts on the same device
(multiple rdonly mounts are still allowed)
* shuffle some assignments to avoid leaking resources in error branches
2008-11-07 00:18:33 +00:00
joerg 220377354c Don't use do {} while(0) for a single function call. 2008-11-07 00:15:42 +00:00
joerg ecbfc2933c Remove XXXUBC code for ffs_reallocblks, that has been conditionalized in
2002 and #if 0'ed in 2005. It would need a considerable amount of work
to bring back and obscures the more important block allocation.
2008-11-06 22:31:08 +00:00
veego a74f73830c Add missing LIBDPLIBS, found by using 'LDFLAGS += -Wl,-z,defs' and sort
src/external/mit/xorg/lib/Makefile to match the new order.
2008-11-06 22:28:25 +00:00
macallan 9263b0c23b add a couple more registers 2008-11-06 22:16:03 +00:00
macallan 61277fe87d install crmfbreg.h 2008-11-06 22:15:39 +00:00
macallan e1d1db9e9e add a couple driver names for Xorg 2008-11-06 22:13:58 +00:00
macallan 7aac9a5290 don't build DRI drivers on sgimips either 2008-11-06 22:11:47 +00:00
macallan dd39ac4627 use ppc_video.c on sgimip as well since mips_video.c is just another subset
of ppc_video.c
2008-11-06 22:10:47 +00:00
macallan 0b74872bfb add sgimips 2008-11-06 22:09:11 +00:00
macallan c67e988999 reachover for the crime driver 2008-11-06 22:08:39 +00:00
macallan 8afdb5e4f5 add Xorg bits 2008-11-06 22:00:38 +00:00
macallan 90dfb8be62 add Xorg stuff 2008-11-06 21:58:28 +00:00
christos 125a3d7f1f fix diagassert arg. 2008-11-06 19:59:42 +00:00
wiz e896af94f7 ext2 -> Ext2, to match newfs_ext2fs. 2008-11-06 19:40:03 +00:00
cegger 4b9b87ae5b Link cpus in the order they are attaching and not in inverse order. 2008-11-06 19:29:46 +00:00
wiz 55bab24118 Spelling fixes. 2008-11-06 17:51:39 +00:00
cegger 1f7782b4ba wrap lines. no functional change. 2008-11-06 17:50:59 +00:00