Commit Graph

912 Commits

Author SHA1 Message Date
Kevin Lo
258c09af47 Fix missing argument for errx().
While here, clean up the code a bit.
2010-06-23 04:42:47 +00:00
Konstantin Belousov
8284562954 Fix the syscall module name after r205320.
Submitted by:	Vladislav Movchan <vladislav.movchan gmail com>
MFC after:	1 week
2010-06-15 09:30:36 +00:00
Andriy Gapon
ee9c0bb32b indent.pro example: actually install the sample file 2010-04-21 12:17:01 +00:00
Andriy Gapon
5594e17667 indent.pro example: put all options one per line
This should help with modification tracking.

Discussed with:	bde
MFC after:	7 days
2010-04-05 09:26:03 +00:00
Andriy Gapon
b39dcffb08 indent.pro example: correctly place -ta option
The options are sorted, leading 'n' (for 'off') should be ignored.

Pointed out by:	bde
MFC after:	7 days
2010-04-05 09:24:24 +00:00
Andriy Gapon
a1a8ef9125 indent.pro: replace a bunch of -T types with -ta introduced in r205989
Suggested by:	bde, Hans Petter Selasky
MFC after:	10 days
2010-04-02 16:09:55 +00:00
Andriy Gapon
896c58786c add example indent.pro file believed to produce code with minimal differences from KNF
This file is what bde uses!
With addition of some types from queue(3) by hps.
Please note that the output will not be KNF and currently it's not
possible to achieve correct KNF with any combination of options.
indent(1) needs to be made smarter.

Some issues:
o indent produces a space between a queue type macro and opening
  parenthesis
o indent produces a tab before __packed and __aligned
o indent produce a space after #define

bde also notes difference in the following options between this profile
and profile in /usr/src/admin/style of 4.4BSD:
-cdb -ei -ip8 -nsob

Also, NetBSD uses -di0 instead of -di8.

Location for the profile is suggested by jh.

Submitted by:	Hans Petter Selasky (parts)
Obtained from:	bde :-)
MFC after:	10 days
X-ToDo:		make indent able to produce proper (perfect) KNF
X-Perhaps-ToDo:	make KNF default output
2010-04-02 16:06:46 +00:00
Ulrich Spörlein
47e1a877c5 Always assign WARNS using ?=
- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication

Approved by:	ed (co-mentor)
2010-03-02 16:58:04 +00:00
Pawel Jakub Dawidek
32115b105a Please welcome HAST - Highly Avalable Storage.
HAST allows to transparently store data on two physically separated machines
connected over the TCP/IP network. HAST works in Primary-Secondary
(Master-Backup, Master-Slave) configuration, which means that only one of the
cluster nodes can be active at any given time. Only Primary node is able to
handle I/O requests to HAST-managed devices. Currently HAST is limited to two
cluster nodes in total.

HAST operates on block level - it provides disk-like devices in /dev/hast/
directory for use by file systems and/or applications. Working on block level
makes it transparent for file systems and applications. There in no difference
between using HAST-provided device and raw disk, partition, etc. All of them
are just regular GEOM providers in FreeBSD.

For more information please consult hastd(8), hastctl(8) and hast.conf(5)
manual pages, as well as http://wiki.FreeBSD.org/HAST.

Sponsored by:	FreeBSD Foundation
Sponsored by:	OMCnet Internet Service GmbH
Sponsored by:	TransIP BV
2010-02-18 23:16:19 +00:00
Wojciech A. Koszek
55f031bd90 Conform style.Makefile(5) and replace = and += with ?=, which lets you to
override WARNS.

Reported by:	<marius@nuenneri.ch> and uqs@
2010-02-01 16:13:56 +00:00
Wojciech A. Koszek
12a91a4387 Include unistd.h for read(), write() and stdlib.h for exit().
Bump WARNS to 5 while being here.
2010-01-18 23:13:22 +00:00
Wojciech A. Koszek
d632071e0e Small cleanup while being here:
- sort includes
- remove usage(), since it seems to come from older version
  of the KLD
- remove unnecessary variable
- mark argc/argv as unused

Bring WARNS = 5 to the Makefile.
2010-01-18 23:09:07 +00:00
Wojciech A. Koszek
6f31cdcdba Include stdlib.h for exit(3) and unistd.h for syscall(2). This makes
this program to compile cleanly.
2010-01-18 23:04:38 +00:00
Wojciech A. Koszek
539f7d3ac2 Small fix for making this KLD to compile. 2010-01-18 22:59:53 +00:00
Edward Tomasz Napierala
5689f92fb0 Remove examples for pppd and SLIP-related stuff. 2009-12-29 20:20:51 +00:00
Ruslan Ermilov
9a594a3eb7 Removed one more Alpha leftover. 2009-12-21 12:32:13 +00:00
Antoine Brodin
cb174b37be Install firmware(9) examples.
MFC after:	1 month
2009-12-12 17:04:36 +00:00
Xin LI
2804a96a50 Cleanup code to make it WARNS=6 clean:
- ANSIfy prototypes;
 - Add __unused for parameters that is not being currently used;
 - Add a header for subrountines being called from other modules.

Reviewed by:	mjacob
2009-11-04 23:36:23 +00:00
Xin LI
c2b1d5a3d6 Include string.h for prototype of strcmp(). 2009-11-04 21:12:33 +00:00
Matt Jacob
0e9d96d74e Tell about the full name we opened, not the unit.
Obtained from:	Sean Bruno
MFC after:	1 month
2009-09-19 20:36:43 +00:00
Sean Bruno
b0d0537558 A few enhancements I made while working on the Firewire target (sbp_targ).
Update the error handling in a couple of cases to exit gracefully if
certain mandatory conditions aren't met.

Reduce the maximum number of initiators to 8 for this example code.  While
1024 is more correct, this example code would act like it was stalled out
even though it was merely allocating the needed structures in init_ccbs()

Reviewed by:	scottl@freebsd.org
2009-09-07 23:16:27 +00:00
Ken Smith
143cbd1780 Update example for RELENG_8. 2009-08-24 18:43:22 +00:00
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