Commit Graph

146280 Commits

Author SHA1 Message Date
hubertf 19ef9ca981 unpackURL():
Make timeout mechanism's granularity always per-file (inside package)
instead of per-package (if not -v) or per-file (inside package, if -v).
2006-04-18 13:11:05 +00:00
pavel dc9694f7fa VLAN tags were sent byte-swapped by the gsip driver, because the driver
forgets to convert them from the host to the network byte order. Use
bswap16 to convert them. (Not htons, because on a big-endian machine, they
are in the correct byte order initially, but then, they are byte-swapped
by a htole32 call when written to the transmit descriptor. So
byte-swapping is needed in this case too, to compensate for this htole32
call.)

For a similar reason, tags were seen byte-swapped when received on a
big-endian machine. Replace ntohs by bswap16 in the input path too.
(Again, it is needed to compensate for a le32toh call when the receive
descriptor is read.)

Fixes PR 32644.

Tested on 3.0/i386, 3.0/sgimips and current/alpha.

OK by martin@.
2006-04-18 13:07:03 +00:00
rpaulo 2f81fede5b Use strlcpy instead of strncpy and sizeof. Requested by Luke. 2006-04-18 12:49:02 +00:00
darrenr 0df9b5fe68 ipf -Z returns junk and/or can cause a panic (seen on solaris.) 2006-04-18 12:40:49 +00:00
tsutsui e2f83bd318 Check more invalid devices in pci_conf_hook(9). 2006-04-18 12:26:45 +00:00
simonb 1525687690 Copy sysconf(_SC_SEMAPHORES) test from regress/lib/librt/sem/sem.c
so we abort a bit more gracefully if semaphores aren't configured
in the kernel.
2006-04-18 12:21:05 +00:00
salo ce4da208d9 Note init(8) multi-user chroot() support. 2006-04-18 11:45:42 +00:00
salo b0b7590bc7 Add support for running multi-user in a chroot() environment.
How it works:

- after successful execution of /etc/rc, check the value of "init.root"
  sysctl node, if it's different than "/", chroot() into its value and run
  /etc/rc inside the chroot(),

- in single-user, return back to the original / file system.

Allows running with / file system on e.g., cgd(4), vnd(4) or ccd(4) volumes.

Idea first discussed with Matt Thomas, implemented by Jachym Holecek <freza
(at) liberouter.org> with some nitpicks by me.  Successfully used by me for
almost a year with / on a cgd(4) volume (for more information about the setup
check ftp://ftp.NetBSD.org/pub/NetBSD/misc/salo/init-chroot/ ).
2006-04-18 11:40:26 +00:00
yamt c8d2679980 from Christian Ehrhardt:
* uvm_loanzero may call uvm_analloc which will return with anon->an_lock
  locked. This lock is never dropped by uvm_loanzero and AFAICS the caller
  doesn't drop it either.
2006-04-18 09:56:16 +00:00
yamt 51ab7131e8 from Christian Ehrhardt:
* physio: The first call to ltsleep should apparently use o &obp->b_interlock
  instead of bp->b_interlock (bp is probably NULL here).
2006-04-18 09:54:32 +00:00
salo 11124f2a30 Add setttyentpath() information to RETURN VALUES and HISTORY, too. 2006-04-18 09:38:12 +00:00
simonb 247e7a1d03 Don't install an empty <machine/mtpr.h> that seems to be an artifact of
when this port was created and has long since been removed from the i386
port.
2006-04-18 06:59:39 +00:00
agc 339a11eb23 Bump version to 20060417 for the Mac OS X build fixes (thanks, Jason) 2006-04-18 06:52:59 +00:00
martin 5e7dd1ed9a Invert carrier detect sense, from Jonathan A. Kollasch 2006-04-18 00:09:37 +00:00
salo b0536303e9 Add setttyentpath() manual page and bump libc minor. 2006-04-17 23:31:24 +00:00
salo 2118fde310 Add setttyentpath(), functionally equivalent to setttyent() but takes an
additional argument to read the ttys information from an alternate path
istead of _PATH_TTYS.

Required for upcoming init(8) changes.

Mostly from <apb>.

Bump libc minor.
2006-04-17 23:29:21 +00:00
christos bc05fcd7ed Cleanup qmqgr remnants (Hisashi T Fujinaka) 2006-04-17 22:09:39 +00:00
christos 45af66f763 Make sure we clear cpi_name; reported by Aymeric Vincent. 2006-04-17 22:05:23 +00:00
macallan eabac42c58 add some missing files 2006-04-17 21:07:38 +00:00
rpaulo 6f2308417e Remove SIOCKILLFW. 2006-04-17 20:57:24 +00:00
rpaulo 43c3d200d1 Remove -k. Should no longer be needed. 2006-04-17 20:55:28 +00:00
pooka 37c14369ab Define the dcache size so that we can run our own homegrown cache
flush routine during startup.  XXX: I have absolutely no idea where
this managed to pick up DCACHE_SIZE from before.

closes port-evbarm/33276 by Peter Postma
2006-04-17 20:44:30 +00:00
perseant 0268059112 Introduce two fcntl calls that freeze the filesystem right at the point
where segment 0 is being considered for writing.  This allows for automated
checkpoint vailidity scanning, and could be used (in conjunction with the
existing LFCNREWIND) for e.g. snapshot dumps as well.

Include a regression test that does such scanning.

When writing the Ifile, loop through the dirty block list three times to
make sure that the checkpoint is always consistent (the first and second
times the Ifile blocks can cross a segment boundary; not so the third time
unless the segments are very small).  Discovered by using the aforementioned
regression test.
2006-04-17 20:02:34 +00:00
christos 2aa11212e6 Remove qmqpd again. perry will fix postfix set-permissions 2006-04-17 19:18:59 +00:00
christos 22b7f8f567 Perry says we don't want qmqpd and that he'll be responsible for fixing
postfix set-permissions.
2006-04-17 19:07:45 +00:00
rpaulo 3f57889bb2 Oops, 16 is not enough to store the firmware filenames, use 24. 2006-04-17 19:06:51 +00:00
perseant 7700866e01 Remove the free list ordering/disordering code, since the kernel now keeps
the list in order (ordering it on mount).

Regularize error messages: these are now all in ALL CAPS, with all hex
numbers (not reported in caps) prefixed by 0x.  (The non-fsck-specific
messages are an exception to this all-caps rule.)
2006-04-17 19:05:16 +00:00
rpaulo 6e7b39c917 ipwctl is no longer used to load the firmware. 2006-04-17 17:50:51 +00:00
rpaulo d9a55567aa Pull firmload on ipw. 2006-04-17 17:31:43 +00:00
rpaulo 82029f5699 Add /usr/pkg/libdata to the list of FIRMWARE_PATHS in order to be
compatible with pkgsrc firmware packages (ipw, iwi, etc).
2006-04-17 17:30:32 +00:00
rpaulo f32518359d Use the firmload API to retrive the firmware from the filesystem. 2006-04-17 17:29:08 +00:00
thorpej e82413c3cf disk_read() / disk_write(): Make the temporary pointer a uint8_t *, rather
than a char *.  Eliminates a GCC4 warning.
2006-04-17 16:58:31 +00:00
thorpej 0c7787e9ae Let MD5Update() take a void *, rather than a uint8_t *. Gets rid of a
GCC 4 warning.
2006-04-17 16:49:16 +00:00
thorpej 01de58d459 Test HAVE_STDINT_H and bring in <stdint.h> if defined. 2006-04-17 16:45:02 +00:00
thorpej 57de6c70c3 Pull in config.h to get the definition of HAVE_STDINT_H 2006-04-17 16:44:42 +00:00
thorpej 7dd6393f48 Check for <libkern/OSByteOrder.h>. If it exists, use it to get the
OSSwapBigToHostInt64() definition for HTOBE64().  This now builds on
Mac OS X 10.4.6.
2006-04-17 16:30:00 +00:00
christos 862fe20f05 GC old signal handling and merge it in 4 places:
1. Immediately ignore all the signals we want to ignore and set the alarm.
    2. Before we exit on error, restore all signals we modified
    3. Before we exec a shell, restore all signals we modified and ignore TSTP.
       Job control aware shells know how to deal with this.
    4. Temporarily handle SIGINT while we read motd.
2006-04-17 16:29:44 +00:00
christos f24c5c7519 Add qmqpd 2006-04-17 16:15:40 +00:00
christos 2ab3510195 Add qmqpd. 2006-04-17 16:11:20 +00:00
he f563f92980 It's NULLFS, not NULL. 2006-04-17 16:08:05 +00:00
jmmv 4208ccaafa Properly pass down the 'vs' cookie to pxa2x0_lcd_ioctl calls. Pointed out
by he@.
2006-04-17 15:59:47 +00:00
nathanw 611b39a8f6 In scsipi_done(), bail out early if the scsipi_xfer has already been
marked as done. Works around one problem with detaching in-use sd
devices, as described on tech-kern:

http://mail-index.netbsd.org/tech-kern/2005/09/22/0002.html
2006-04-17 14:30:40 +00:00
tsutsui 936c3743c7 Switch macepci to use MI pci_configure_bus(9) rather than its own fixup code.
Tested on my O2 with several devices, and ok'ed by sekiya.
2006-04-17 14:01:08 +00:00
jmcneill 8dec918f9f Redraw the screen immediately after initialization if SPLASHSCREEN is not
defined. From jmmv@
2006-04-17 13:59:01 +00:00
elad 00b7ea1b74 Fix typos. 2006-04-17 13:31:02 +00:00
christos b42fa2b7b2 Fix typo. Pointed out by brad. 2006-04-17 13:02:01 +00:00
uwe e34bcd0c5a netwinder uses loadable server modules.
(Oops, forgot to commit this change along with other netwinder
X server commits.  Unbreaks builds.)
2006-04-17 12:50:51 +00:00
tsutsui bf7d106360 Add adv at pci. Tested on my O2. 2006-04-17 12:46:35 +00:00
veego f43a65b85e Don't try to backup a 'nfs' disklabel, which will happen because of the
recent iostat changes.
Patch supplied in pr# 33274 by Geoff C. Wing.
2006-04-17 07:38:53 +00:00
skrll c0d9bc63a5 Check that a .rodata section description has been provided before putting
orphan sections in it.

Closes PR/33129.
2006-04-17 07:05:17 +00:00