Commit Graph

893 Commits

Author SHA1 Message Date
pjd
9434014ec0 Where if not in examples we should follow style(9)? 2009-06-03 09:28:58 +00:00
brian
61ac57ee20 Mention the danger of running programs using ``!''.
PR:		112481
MFC after:	1 week
2009-05-26 07:40:32 +00:00
trhodes
888dca1c5f Fix broken URL and use the same base directory as the
example files.

PR:		123035
Submitted by:	Lawrence Mayer <lawmay3@i12.com> (original version)
2009-01-13 12:47:59 +00:00
kib
c725244bd2 Add unistd.h to the getosreldate(3) manpage.
Update referenced example to include unistd.h per manpage.
Update example to be more style(9)-ish, silence warnings and add
FreeBSD id to the source file.
2008-09-30 11:25:55 +00:00
ed
b13cd39d11 Also use dev2unit() in the pseudo-driver example script.
Because I'm planning on MFC'ing my last change to this file, make sure
we use dev2unit() here as well.
2008-09-27 16:52:57 +00:00
ed
6c1702dda9 Make the make_pseudo_driver.sh shellscript work again.
It seems this script was broken because of the SYSINIT changes and a
rather awkward variable initialisation. For some reason the
make_device_driver.sh script is also broken, related to BUS_SETUP_INTR.
I have no experience with FreeBSD's interrupt handling, so I hope
someone else is willing to take a look at that shell script.

PR:		misc/126435
MFC after:	1 month
2008-09-22 16:10:12 +00:00
bz
6bba9b4244 Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re
2008-05-26 10:40:09 +00:00
rwatson
a3623cb733 Remove netatm from HEAD as it is not MPSAFE and relies on the now removed
NET_NEEDS_GIANT.  netatm has been disconnected from the build for ten
months in HEAD/RELENG_7.  Specifics:

- netatm include files
- netatm command line management tools
- libatm
- ATM parts in rescue and sysinstall
- sample configuration files and documents
- kernel support as a module or in NOTES
- netgraph wrapper nodes for netatm
- ctags data for netatm.
- netatm-specific device drivers.

MFC after:	3 weeks
Reviewed by:	bz
Discussed with:	bms, bz, harti
2008-05-25 22:11:40 +00:00
attilio
5f37114b4d Add a new awk script which parses informations returned by the newly
added sysctl debug.witness.graphs and returns all the graphs involving
Giant lock creating an appropriate script in DOT format which can be
plotted immediately.

Submitted by:   Michele Dallachiesa <michele dot dallachiesa at poste dot it>
2008-05-07 21:50:17 +00:00
edwin
b599192a00 Add projects-all collection to cvs-supfile
PR:		misc/121680
Submitted by:	"Philip M. Gollucci" <pgollucci@p6m7g8.com>
Approved by:	grog@ (mentor)
MFC after:	1 week
2008-03-13 22:36:02 +00:00
gabor
6f8c447516 - Add doc/hu_* and doc/mn_* to the refuse examples so that include all
of the currently used languages

PR:		docs/118476 (related)
Submitted by:	Chess Griffin <chess@chessgriffin.com>
MFC after:	3 days
2007-12-07 19:22:34 +00:00
gabor
4acdeffcea - Add doc/hu_* and doc/mn_* to the sample refuse file so that it includes all
of the languages

PR:		docs/118476
Submitted by:	Chess Griffin <chess@chessgriffin.com>
MFC after:	3 days
2007-12-07 18:48:57 +00:00
mlaier
439399edf8 Update pf examples from OpenBSD to catch up with new stateful defaults and
other syntax changes.  Move pf.conf from /etc to examples, too.
2007-11-11 01:16:51 +00:00
kensmith
c80a7cd238 To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.
Approved by:	re (implicit)
2007-10-11 04:28:08 +00:00
gabor
636f6b05b3 - Remove info about the consumed space in base dir. This info is not
relevant any more.

PR:		docs/115335
Submitted by:	Wayne Sierke <ws@au.dyndns.ws>
Reviewed by:	keramida
Approved by:	re (bmah)
MFC after:	3 days
2007-09-07 22:01:19 +00:00
kevlo
413e0853c2 Include the <sys/sysproto.h> header which includes the prerequisite header
for AUE_NULL.

Approved by: re (kensmith)
2007-07-22 06:48:34 +00:00
rwatson
ea4d9ac0d1 Disconnect netatm from the build as it is not MPSAFE and relies on
NET_NEEDS_GIANT, which will shortly be removed.  This is done in a
away that it may be easily reattached to the build before 7.1 if
appropriate locking is added.  Specifics:

- Don't install netatm include files
- Disconnect netatm command line management tools
- Don't build libatm
- Don't include ATM parts in rescue or sysinstall
- Don't install sample configuration files and documents
- Don't build kernel support as a module or in NOTES
- Don't build netgraph wrapper nodes for netatm

This removes the last remaining consumer of NET_NEEDS_GIANT.

Reviewed by:	harti
Discussed with:	bz, bms
Approved by:	re (kensmith)
2007-07-14 21:49:24 +00:00
bz
88f7f9d4f1 I4B header files are now installed in include/i4b/ and no longer
in include/machine/.

Adapt #include paths.

Approved by:	re (kensmith)
2007-07-06 07:21:56 +00:00
flz
9e72cd22f4 Add new x11-drivers category.
MFC after:	3 days
2007-05-19 21:29:26 +00:00
emax
ffd5021ec7 Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.
MFC after:	1 week
2007-04-24 16:58:54 +00:00
ru
3f5535c193 Add ports-net-im, ports-net-p2p and ports-ports-mgmt collections. 2007-04-14 12:54:38 +00:00
ru
9fe3c63603 Add src-cddl and src-rescue. 2007-04-14 12:53:37 +00:00
pav
3bd3bcc779 - Add ports-ports-mgmt collection 2007-01-31 14:35:05 +00:00
des
ef3eb6c935 On i386, make "prescott" an alias for "nocona" (instead of the other way
around), and introduce "core", along with the alias "core2".  All of these
enable SSE3.

On amd64, add "core2" (enables SSE3).

MFC after:	3 weeks
2007-01-17 12:43:06 +00:00
imp
1e39c38726 Remove references to pccard.conf, it is no longer used. 2006-10-19 05:19:00 +00:00
danger
1584e18eed Revert my previous change as it does not seem to be entirely correct and
popular.
2006-09-27 21:28:44 +00:00
mjacob
de5522a7f2 Bump MAX_INITIATORS to 1024- the LSI-Logic can go even higher than
this for 'initiator id'- this is a stopgap until a sparse map is
added.

Make compat defines for offset format (FreeBSD 5 or less).

Add no-asyncio flag. There's some breakage with ASYNC I/O that every
now and then drops us into an infinite loop. This also then does
a fallback to no-asyncio if the AIO option isn't loaded/compiled into
the kernel.

A number of other chanes to try and track some breakage.
2006-09-27 15:38:13 +00:00
pjd
e2d5d5e15d - Use existing functions mtx_lock() and mtx_unlock().
- Change variable name to 'error', as this is what is mostly used for
  functions that return an error.
- Add mutex(9) to the SEE ALSO section.
- Bump the date.

I don't really like the example code. I'd prefer symmetry where possible, eg.

	mtx_lock(&example_lock);
	error = example(NULL, EXAMPLE_ONE);
	mtx_unlock(&example_lock);
	if (error != 0)
		return (error);

But I'll leave it as it is for now.

Reviewed by:	simon
2006-09-27 08:39:00 +00:00
danger
990490fa5f Remove second person from the sentece and rephrase a bit.
Approved by: trhodes (mentor), keramida (mentor)
2006-09-26 19:59:52 +00:00
ru
90595a0fc9 Fix wording to what I intended originally. 2006-09-18 15:18:54 +00:00
ru
033894c029 - Avoid using second person.
- Demonstrate how .Nm can be used without the side effect of causing
  a line break in the SYNOPSIS section.
2006-09-18 11:56:51 +00:00
ru
33d6440a5a - Change the example CFLAGS entry to match our default in sys.mk.
- Document that -fno-strict-aliasing is required for -O2.

Prodded by:	users of stable@
2006-09-13 10:20:56 +00:00
rik
96cc09dde6 Fix path for source file in files.FOO. 2006-08-23 23:51:29 +00:00
rik
af3c9f2dc2 - Added ability to provide (optional) path to the kernel sources
- Added check of dirs used by example generator
- Fixed path for ${s}/conf/files.FOO and include it via files
  directive from config file
- Changed kernel configuration example with the driver: it is
  not produced by copying Generic but by including it
- KDB is added to config (for DDB)
- Added module building instead and fixed kernel building

Reviewed by:	julian@
2006-08-09 21:23:42 +00:00
rik
7d2b35a635 Added copyright templete
Fixed compilation

Reviewed by:	julian@
2006-08-09 20:57:24 +00:00
rik
e4e9eb23de - Added 'files "files.FOO"' to config for inclusion of user specific files.
- Added KDB option to config file (for DDB).
- Added ability to compile custom kernel.

Discussed with:	julian@
2006-08-09 10:53:26 +00:00
rik
83dd0fc853 - Added ability to provide (optional) path to the kernel sources
- Fixed path for ${s}/conf/files.FOO and a note that it should be merged into
corresponding file to be able to compile the kernel
- Changed kernel configuration example with the driver: it is not produced by
copying Generic but by including it
- Changed from automatic module building to asking an user if it whants to

Reviewed by:    julian@
2006-08-06 11:06:35 +00:00
rik
8f0d634936 Fix compilation.
Reviewed by:	julian@
2006-08-06 11:04:22 +00:00
des
3ba8214f48 Add CPUTYPE support for Via C3 and C3-2 processors.
MFC after:	2 weeks
2006-07-19 11:27:19 +00:00
motoyuki
ee159d095f doc fix: option MFS is obsolete. use MD_ROOT instead.
PR:	conf/93878
2006-06-02 15:01:11 +00:00
brueffer
efe16a4faf Make this example more real world usable: When the manpage first appeared
is not interesting, when the driver appeared is.  Most people who use this
example leave the manpage appearance date in and the driver date out.

MFC after:	3 days
2006-05-20 09:49:05 +00:00
sobomax
ef5a765dcc We don't have d_maj field in cdevsw structure anymore. 2006-05-19 20:02:44 +00:00
matteo
434ba872a4 Close a "(" I left open. 2006-05-16 17:10:16 +00:00
matteo
497e9819df Update README.examples according to the current state of the examples/etc directory
PR:	conf/97232
2006-05-15 17:43:51 +00:00
mjacob
8ecd1bb434 If we end up with a CTIO completing with CAM_REQUEUE_REQ,
be obliging and just redo the request instead of squawking
and dying.
2006-04-11 21:36:43 +00:00
brueffer
7426a2a8f4 Add a standard boilerplate to the SYNOPSIS section that mentions how
to load a kernel module.

MFC after:	3 days
2006-04-01 10:10:36 +00:00
mjacob
851b87ce3b Move the check for non-ATIO_CMD ahead of the cache chech so that
completion for unsupported commands doesn't abort.

Reviewed by:	nate
MFC after:	2 weeks
2006-03-25 18:18:26 +00:00
mjacob
c44d0b867f Make scsi_target actually compile after a structure member
change.

Obtained from:	Either Scott, Nate, Ken or A. Nagy
2006-03-22 17:00:14 +00:00
mjacob
ae57ffa860 At least respond to REPORT LUNS with an ILLEGAL COMMAND response.
This keeps us from dumping core when modern OS' like Windows and Linux
see us.
2006-03-22 01:30:07 +00:00
ru
5788f4caf7 Remove mentions of old compat options from here; equivalents are
now provided in src.conf(5).
2006-03-21 09:49:05 +00:00