summaryrefslogtreecommitdiffstats
path: root/share/examples
Commit message (Collapse)AuthorAgeFilesLines
* Always assign WARNS using ?=uqs2010-03-021-3/+3
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* Please welcome HAST - Highly Avalable Storage.pjd2010-02-186-0/+290
| | | | | | | | | | | | | | | | | | | | | | 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
* Conform style.Makefile(5) and replace = and += with ?=, which lets you towkoszek2010-02-012-2/+2
| | | | | | override WARNS. Reported by: <marius@nuenneri.ch> and uqs@
* Include unistd.h for read(), write() and stdlib.h for exit().wkoszek2010-01-182-3/+6
| | | | Bump WARNS to 5 while being here.
* Small cleanup while being here:wkoszek2010-01-182-14/+6
| | | | | | | | | | - 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.
* Include stdlib.h for exit(3) and unistd.h for syscall(2). This makeswkoszek2010-01-181-0/+2
| | | | this program to compile cleanly.
* Small fix for making this KLD to compile.wkoszek2010-01-181-1/+1
|
* Remove examples for pppd and SLIP-related stuff.trasz2009-12-2919-277/+0
|
* Removed one more Alpha leftover.ru2009-12-211-1/+0
|
* Install firmware(9) examples.antoine2009-12-121-0/+6
| | | | MFC after: 1 month
* Cleanup code to make it WARNS=6 clean:delphij2009-11-0411-40/+54
| | | | | | | | - 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
* Include string.h for prototype of strcmp().delphij2009-11-041-0/+1
|
* Tell about the full name we opened, not the unit.mjacob2009-09-191-1/+1
| | | | | Obtained from: Sean Bruno MFC after: 1 month
* A few enhancements I made while working on the Firewire target (sbp_targ).sbruno2009-09-072-3/+7
| | | | | | | | | | | 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
* Update example for RELENG_8.kensmith2009-08-241-4/+5
|
* Where if not in examples we should follow style(9)?pjd2009-06-032-34/+30
|
* Mention the danger of running programs using ``!''.brian2009-05-261-1/+6
| | | | | PR: 112481 MFC after: 1 week
* Fix broken URL and use the same base directory as thetrhodes2009-01-131-3/+3
| | | | | | | example files. PR: 123035 Submitted by: Lawrence Mayer <lawmay3@i12.com> (original version)
* Add unistd.h to the getosreldate(3) manpage.kib2008-09-301-5/+9
| | | | | | 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.
* Also use dev2unit() in the pseudo-driver example script.ed2008-09-271-1/+1
| | | | | Because I'm planning on MFC'ing my last change to this file, make sure we use dev2unit() here as well.
* Make the make_pseudo_driver.sh shellscript work again.ed2008-09-221-2/+2
| | | | | | | | | | | 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
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andbz2008-05-2633-5487/+0
| | | | | | | | | | | | | | | | | | 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
* Remove netatm from HEAD as it is not MPSAFE and relies on the now removedrwatson2008-05-2510-1521/+0
| | | | | | | | | | | | | | | | | | | 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
* Add a new awk script which parses informations returned by the newlyattilio2008-05-071-0/+24
| | | | | | | | 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>
* Add projects-all collection to cvs-supfileedwin2008-03-131-0/+6
| | | | | | | PR: misc/121680 Submitted by: "Philip M. Gollucci" <pgollucci@p6m7g8.com> Approved by: grog@ (mentor) MFC after: 1 week
* - Add doc/hu_* and doc/mn_* to the refuse examples so that include allgabor2007-12-071-0/+2
| | | | | | | | of the currently used languages PR: docs/118476 (related) Submitted by: Chess Griffin <chess@chessgriffin.com> MFC after: 3 days
* - Add doc/hu_* and doc/mn_* to the sample refuse file so that it includes allgabor2007-12-071-0/+2
| | | | | | | | of the languages PR: docs/118476 Submitted by: Chess Griffin <chess@chessgriffin.com> MFC after: 3 days
* Update pf examples from OpenBSD to catch up with new stateful defaults andmlaier2007-11-1110-89/+121
| | | | other syntax changes. Move pf.conf from /etc to examples, too.
* To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.kensmith2007-10-111-4/+4
| | | | Approved by: re (implicit)
* - Remove info about the consumed space in base dir. This info is notgabor2007-09-077-35/+21
| | | | | | | | | | 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
* Include the <sys/sysproto.h> header which includes the prerequisite headerkevlo2007-07-221-0/+1
| | | | | | for AUE_NULL. Approved by: re (kensmith)
* Disconnect netatm from the build as it is not MPSAFE and relies onrwatson2007-07-141-10/+14
| | | | | | | | | | | | | | | | | | | | 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)
* I4B header files are now installed in include/i4b/ and no longerbz2007-07-066-8/+8
| | | | | | | | in include/machine/. Adapt #include paths. Approved by: re (kensmith)
* Add new x11-drivers category.flz2007-05-192-0/+2
| | | | MFC after: 3 days
* Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.emax2007-04-242-268/+0
| | | | MFC after: 1 week
* Add ports-net-im, ports-net-p2p and ports-ports-mgmt collections.ru2007-04-141-0/+3
|
* Add src-cddl and src-rescue.ru2007-04-143-0/+6
|
* - Add ports-ports-mgmt collectionpav2007-01-311-0/+1
|
* On i386, make "prescott" an alias for "nocona" (instead of the other waydes2007-01-171-3/+4
| | | | | | | | | around), and introduce "core", along with the alias "core2". All of these enable SSE3. On amd64, add "core2" (enables SSE3). MFC after: 3 weeks
* Remove references to pccard.conf, it is no longer used.imp2006-10-191-2/+0
|
* Revert my previous change as it does not seem to be entirely correct anddanger2006-09-271-6/+8
| | | | popular.
* Bump MAX_INITIATORS to 1024- the LSI-Logic can go even higher thanmjacob2006-09-273-96/+150
| | | | | | | | | | | | | | 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.
* - Use existing functions mtx_lock() and mtx_unlock().pjd2006-09-271-8/+9
| | | | | | | | | | | | | | | | | | | - 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
* Remove second person from the sentece and rephrase a bit.danger2006-09-261-8/+6
| | | | Approved by: trhodes (mentor), keramida (mentor)
* Fix wording to what I intended originally.ru2006-09-181-4/+5
|
* - Avoid using second person.ru2006-09-181-4/+7
| | | | | - Demonstrate how .Nm can be used without the side effect of causing a line break in the SYNOPSIS section.
* - Change the example CFLAGS entry to match our default in sys.mk.ru2006-09-131-3/+7
| | | | | | - Document that -fno-strict-aliasing is required for -O2. Prodded by: users of stable@
* Fix path for source file in files.FOO.rik2006-08-231-1/+1
|
* - Added ability to provide (optional) path to the kernel sourcesrik2006-08-091-22/+122
| | | | | | | | | | | | - 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@
* Added copyright templeterik2006-08-091-32/+57
| | | | | | Fixed compilation Reviewed by: julian@
OpenPOWER on IntegriCloud