Commit Graph

890 Commits

Author SHA1 Message Date
Pawel Jakub Dawidek
195ebc7e9e Where if not in examples we should follow style(9)? 2009-06-03 09:28:58 +00:00
Brian Somers
a063878a50 Mention the danger of running programs using ``!''.
PR:		112481
MFC after:	1 week
2009-05-26 07:40:32 +00:00
Tom Rhodes
bd4048bad8 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
Konstantin Belousov
e45b2259ec 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 Schouten
00b4430eb8 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 Schouten
30105b9cc7 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
Bjoern A. Zeeb
2e598474fa 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
Robert Watson
e4372ceba0 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 Rao
29614b3788 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 Groothuis
ae667c3df0 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 Kovesdan
064be22e10 - 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 Kovesdan
b67976fb35 - 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
Max Laier
42a227f8ba 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
Ken Smith
c15e0967df 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 Kovesdan
5f8464cb22 - 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
Kevin Lo
282a3889eb 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
Robert Watson
2b851aeb63 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
Bjoern A. Zeeb
ec8fa4cfd9 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
Florent Thoumie
98069bca33 Add new x11-drivers category.
MFC after:	3 days
2007-05-19 21:29:26 +00:00
Maksim Yevmenkin
a84d9cdb72 Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.
MFC after:	1 week
2007-04-24 16:58:54 +00:00
Ruslan Ermilov
e774c513f0 Add ports-net-im, ports-net-p2p and ports-ports-mgmt collections. 2007-04-14 12:54:38 +00:00
Ruslan Ermilov
14d9c82a4a Add src-cddl and src-rescue. 2007-04-14 12:53:37 +00:00
Pav Lucistnik
ad9096d289 - Add ports-ports-mgmt collection 2007-01-31 14:35:05 +00:00
Dag-Erling Smørgrav
3f15422a91 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
Warner Losh
fe976fdd35 Remove references to pccard.conf, it is no longer used. 2006-10-19 05:19:00 +00:00
Daniel Gerzo
eb2d52f4b8 Revert my previous change as it does not seem to be entirely correct and
popular.
2006-09-27 21:28:44 +00:00
Matt Jacob
cd6dedfc61 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
Pawel Jakub Dawidek
e5cccaf001 - 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
Daniel Gerzo
19ee36f1e5 Remove second person from the sentece and rephrase a bit.
Approved by: trhodes (mentor), keramida (mentor)
2006-09-26 19:59:52 +00:00
Ruslan Ermilov
584eddcad1 Fix wording to what I intended originally. 2006-09-18 15:18:54 +00:00
Ruslan Ermilov
ad9fae588f - 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
Ruslan Ermilov
bb077f2d54 - 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
Roman Kurakin
5eedd41e3b Fix path for source file in files.FOO. 2006-08-23 23:51:29 +00:00
Roman Kurakin
d339df73a5 - 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
Roman Kurakin
00cbc48be6 Added copyright templete
Fixed compilation

Reviewed by:	julian@
2006-08-09 20:57:24 +00:00
Roman Kurakin
be11502127 - 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
Roman Kurakin
36a64d1321 - 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
Roman Kurakin
a299217f8f Fix compilation.
Reviewed by:	julian@
2006-08-06 11:04:22 +00:00
Dag-Erling Smørgrav
7fa5ba9e34 Add CPUTYPE support for Via C3 and C3-2 processors.
MFC after:	2 weeks
2006-07-19 11:27:19 +00:00
Motoyuki Konno
0fdc646ada doc fix: option MFS is obsolete. use MD_ROOT instead.
PR:	conf/93878
2006-06-02 15:01:11 +00:00
Christian Brueffer
8a2f6186a8 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
Maxim Sobolev
dc79eb6b2a We don't have d_maj field in cdevsw structure anymore. 2006-05-19 20:02:44 +00:00
Matteo Riondato
ba9dfb8097 Close a "(" I left open. 2006-05-16 17:10:16 +00:00
Matteo Riondato
273733f2c8 Update README.examples according to the current state of the examples/etc directory
PR:	conf/97232
2006-05-15 17:43:51 +00:00
Matt Jacob
6070eb3f93 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
Christian Brueffer
c541fe558c 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
Matt Jacob
441201ce65 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
Matt Jacob
3a4d58a91a 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
Matt Jacob
0fa274524a 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
Ruslan Ermilov
862aa05f64 Remove mentions of old compat options from here; equivalents are
now provided in src.conf(5).
2006-03-21 09:49:05 +00:00