Commit Graph

88660 Commits

Author SHA1 Message Date
kris
7ec4223664 * Add explicit conflict-checking to the package tools. Packages can
register a list of other packages with which they conflict (via the
  -C option to pkg_create), and they will refuse to install (unless -f is
  specified) if one of the listed packages is already present.

* Update documentation for the new feature as well as fleshing out some
  existing documentation.

* Bump PKG_INSTALL_VERSION so this feature can be tested for.

Submitted by:   Sergey Matveychuk <sem@ciam.ru>
PR:             bin/47145
MFC after:      2 weeks
2003-04-17 09:56:05 +00:00
phk
52a551e4c5 These two files fell off during my previous commit: put the encoding
decoding functions for struct disklabel in a separate .c file.
2003-04-17 08:41:08 +00:00
iedowse
1bc9e58dac Revert part of revision 1.97 by calling dc_stop() unconditionally
in dc_detach() instead of only calling it if the hardware is preset.
This is a workaround for page faults in softclock() after a `dc'
device was detached, caused by not disabling a timer before freeing
its memory. The bus_child_present() checks should probably be
re-added later, but only to avoid the hardware accesses and not the
other resource cleanups in dc_stop().

Approved by:	njl
2003-04-17 08:36:52 +00:00
phk
f33582721f Separate the encoding/decoding functions for struct disklabel into a
separate source file which can be used from both kernel and userland code.
2003-04-17 07:39:03 +00:00
sumikawa
c48484a7fe Buffer size is not enough in the previous commit. Use 128.
Pointed out by:	nectar
MFC after:	1 week
2003-04-17 07:20:00 +00:00
jhay
7472737d39 Move the ex, ie, plip and sl drivers to drivers.flp, so that kern.flp
fit again.
2003-04-17 06:06:54 +00:00
jhay
6878bbad2c NO_COMPAT_FREEBSD4 is no more. 2003-04-17 06:04:44 +00:00
rwatson
572cb42cc2 Revert url.c:1.2: there was a race condition between when I produced
the fix and when I committed it -- in between the two, DES committed
a different fix, rendering this fix unneeded.

Requested by:	des
2003-04-17 03:51:06 +00:00
simokawa
e5cf68121b We don't need "device fwohci" in the kernel config file. 2003-04-17 03:46:09 +00:00
simokawa
e5b520f036 Add dev/firewire/fwdma.c. 2003-04-17 03:39:27 +00:00
simokawa
29b43e58e3 MFp4(simokawa_firewire):
Many internal structure changes for the FireWire driver.

- Compute CRC in CROM parsing.
- Add support for configuration ROM build.
- Simplify dummy buffer handling.
- busdma conversion
- Use swi_taskqueue_giant for -current.  Mark the interrupt routine as MPSAFE.
- AR buffer handling.
	Don't reallocate AR buffer but just recycle it.
	Don't malloc and copy per packet in fwohci_arcv().
	Pass packet to fw_rcv() using iovec.
	Application must prepare receiving buffer in advance.
- Change fw_bind API so that application should pre-allocate xfer structure.
- Add fw_xfer_unload() for recycling struct fw_xfer.
- Add post_busreset hook
- Remove unused 'sub' and 'act_type' in struct fw_xfer.
- Remove npacket from struct fw_bulkxfer.
- Don't call back handlers in fwochi_arcv() if the packet has
	not drained in AT queue
- Make firewire works on big endian platform.
- Use native endian for packet header and remove unnecessary ntohX/htonX.
- Remove FWXFERQ_PACKET mode.  We don't use it anymore.
- Remove unnecessary restriction of FWSTMAXCHUNK.
- Don't set root node for phy config packet if the root node is
	not cycle master capable but set myself for root node.
	We should be the root node after next bus reset.

	Spotted by: Yoshihiro Tabira <tabira@scd.mei.co.jp>
- Improve self id handling

Tested on: i386, sparc64 and i386 with forced bounce buffer
2003-04-17 03:38:03 +00:00
phk
f946ac1010 Cut&Paste considered far too easy:
Don't include <sys/disklabel.h>
2003-04-16 21:09:41 +00:00
jhb
da8de4ae41 Rename KRNLSRCDIR to KERNSRCDIR and allow it to be overridden. The name
change was to be consistent with other overridable variables such as
KERNCONFDIR and KERNCONF.
2003-04-16 21:05:06 +00:00
phk
6dd4776ecc Don't include <sys/disklabel.h> 2003-04-16 20:57:35 +00:00
phk
d7217006e6 Include <sys/ioccom.h> instead of <sys/disklabel.h> 2003-04-16 20:46:30 +00:00
jhb
373f7eda61 Explicitly cast a l_ulong to an unsigned long to make all arch's happy
with the printf format.
2003-04-16 20:43:10 +00:00
rwatson
addc55224a Clarify the relationship between the MAC library APIs and POSIX.1e:
they resemble one another, but POSIX.1e interfaces were not sufficiently
expressive to do what we needed.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-04-16 20:40:34 +00:00
jhb
277277d989 Fix printf format in a debug printf. 2003-04-16 20:07:48 +00:00
jhb
3b3b4c3bfc Fix printf args in debug printfs. 2003-04-16 20:05:42 +00:00
jhb
8571db1e83 Assume a struct thread *td instead of a struct proc *p in the debug
printf macros.
2003-04-16 20:04:47 +00:00
jhb
2adf0f9f0c Fix multiple printf warnings on Alpha:
- Prefer long long to quad_t to match printf args.
- Use uintmax_t and %j to print segsz_t and vm_size_t values.
- Fix others in Alpha-specific code.
2003-04-16 19:46:26 +00:00
jhb
d726ddfb83 Fix some debug macros. Either missing close parens or close parens in the
wrong place.
2003-04-16 19:28:13 +00:00
jhay
500fbb6abc Add locking and remove all the spl() calls. 2003-04-16 17:42:38 +00:00
jhay
10e2a694f9 Get rid of COMPAT_OLDISA and move in the direction of newbus. 2003-04-16 17:29:00 +00:00
mtm
cdd9ff99e3 Fix typo (and make it more explicit/self-documenting).
Noticed by:	gshapiro
2003-04-16 16:44:00 +00:00
mtm
875fc4643f Add new knobs for controlling jails in rc.d and document them.
Approved by:	makrm (mentor)
2003-04-16 16:29:51 +00:00
mtm
21aff7c292 o Add a script to start jails on boot.
o Hook it up to the build

Approved by:	markm (mentor)
Submitted by:	Clement Laforet <sheepkiller@cultdeadsheep.org> (modified)
Prodded by:	mike
2003-04-16 16:27:23 +00:00
bmah
b2bb2ae285 Update puc(4) supported hardware.
PR:		50928
Submitted by:	Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
2003-04-16 16:04:05 +00:00
jhay
38d249439e Remove the register keyword. 2003-04-16 15:52:20 +00:00
jhb
346da26070 Remove another unused variable. 2003-04-16 15:24:17 +00:00
jhb
d27d7e38fe Remove an unused variable so this compiles again. 2003-04-16 15:19:55 +00:00
bde
a81754c584 Backed out previous commit. Use ${LIBMROUTED} in LDADD again instead of
hard-coding a path to the library that is wrong in some corner cases.
2003-04-16 14:53:51 +00:00
bde
f551b7d8e3 "Fixed" LDADD by backing out part of the previous commit. -lfoo in
LDADD is not wrong, but the simple substitution in `make checkdpadd'
doesn't work if foo.a is not an installed library, so we use the full
path to foo.a in both DPADD and LDADD for non-installed libraries.
2003-04-16 13:50:52 +00:00
mdodd
25a8614d11 Remove some code that managed to escape from my local repository. 2003-04-16 13:18:27 +00:00
ru
ee0896bc97 There is no format(8) manual page available, but it would be really
nice to have, now that we have different semantics of initializing
disks on systems with BSD labels, SUN labels, and GPT partitions.
2003-04-16 12:11:01 +00:00
ru
af0cc424b0 There is an undocument feature that ``route -vnd flush'' prints
a nice dump of the entire routing table.  Allow non-root users
to see it too.
2003-04-16 12:06:53 +00:00
ru
23b30371f8 Normalize, fix ``make checkdpadd''. 2003-04-16 11:54:11 +00:00
ru
3147b5d4bc Create the whatis(1) database in /usr/share/openssl/man. 2003-04-16 11:28:45 +00:00
sumikawa
dea571d781 Make character buffer more bigger.
Obtained from:	KAME
MFC after:	1 week
2003-04-16 11:21:12 +00:00
sumikawa
b0222b0710 Use NI_xxx macros.
Obtained from:	KAME
MFC after:	1 week
2003-04-16 09:53:29 +00:00
sobomax
2c8ec42bdf Update comment to match reality. 2003-04-16 09:16:55 +00:00
sos
a733e8a7dd Cosmetics. 2003-04-16 08:30:40 +00:00
sos
212b001639 Fix a panic with Cenatek controllers. 2003-04-16 08:30:10 +00:00
mdodd
5be29b8203 - Remove a block of code I missed in the previous commit.
- Call tl_ifmedia_upd() in tl_init() for cards with bitrate devices.
2003-04-16 06:51:26 +00:00
mdodd
6662199777 - Set if_unit, if_init, and ifq_maxlen.
- Remove unnecessary initializations; ether_ifattach() takes care of them.
- Change function argument types to avoid nasty casts.
2003-04-16 06:27:39 +00:00
simokawa
13f420d95c Fix bogus maxsegsz parameter for bus_dma_tag_create().
MFC: 1 week
2003-04-16 05:03:35 +00:00
mdodd
74c95b7f29 - Don't call pci_enable_io() in drivers (unless needed for resume).
- Don't test memory/port status and emit an error message; the PCI
  bus code will do this now.
2003-04-16 03:16:57 +00:00
mdodd
ac7452631f Return status for PCI methods '{enable,disable}_{io,busmaster}'.
Reviewed by:	imp
2003-04-16 03:15:08 +00:00
grog
02bfb74887 Clarify US events which may not be so obvious to non-US Americans. 2003-04-16 02:19:27 +00:00
grog
a61dc05df9 Clarify that holidays are US holidays. Many conflict with similarly
named holidays in other countries.
2003-04-16 02:18:30 +00:00