summaryrefslogtreecommitdiffstats
path: root/sbin/devd/devd.hh
Commit message (Collapse)AuthorAgeFilesLines
* devd: Remove unnecessary empty default constructors.eadler2013-03-041-2/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove empty virtual destructor from class, which has noch subclasses.eadler2013-03-041-1/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use the standard constructor of std::string instead of string("").eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* Constify where possible.eadler2013-03-041-1/+1
| | | | Approved by: cperciva (mentor)
* Improve devd startup time, by tweaking some string handling routines that areian2013-01-301-2/+3
| | | | | | | | | | | | heavily used when parsing config files. Mostly these changes avoid making temporary copies of the strings, and avoid doing byte at a time append operations, on the most-used code path. On a 1.2 GHz ARM processor this reduces the time to parse the config files from 13 to 6 seconds. Reviewed by: imp Approved by: cognet (mentor)
* Prefer the use of initalizer lists to ctor assignment.eadler2012-12-061-1/+1
| | | | | Approved by: cperciva MFC after: 2 weeks
* Constify where possibleeadler2012-12-061-3/+3
| | | | | Approved by: cperciva MFC after: 2 weeks
* In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. Indim2011-12-171-2/+2
| | | | | | devd.hh, there are redeclared as classes. Fix the inconsistency. MFC after: 1 week
* - Add support for a "!" character in regex matching in devd(8). It invertshrs2011-10-261-0/+1
| | | | | | | | | the logic (true/false) of the matching. - Add "!usbus[0-9]+" to IFNET ATTACH notification handler in the default devd.conf to prevent rc.d/netif from running when usbus[0-9]+ is attached. Reviewed by: imp
* Expand system into my_system, and add the necessary tidyness that weimp2010-06-291-0/+1
| | | | | | | | | | need. Close the pidfile. Then close all descriptors >= 3 to avoid information leakage to children. This solves the problem of not being able to restart devd when you have, for example, a dhclient forked to configure your network... MFC after: 3 days
* Minor initialization change to not trigger bogus gcc warning aboutimp2007-12-211-1/+1
| | | | passing literal strings to the constructors of string.
* Use pidfile(3).pjd2006-01-301-1/+3
| | | | OK'ed by: imp
* Add the ability to match the on a media type of the device in question.imp2005-07-101-0/+16
| | | | | Submitted by: sam Approved by: re (scottl)
* Parse the ! lines that will soon be coming from the kernel. These areimp2003-10-241-0/+2
| | | | | | | | | | a generalized notification mechanism for subsystems wishing to report events. Revieded by: njl # The kernel side seems like it might be causing panics for me, but should # be forthcoming shortly.
* Create a new C++ header file called devd.hh which has all the classimp2003-04-261-0/+163
definitions in it. Begin to document the classes that we use, and how they interrelate (using comments that I can use with doxygen to automatically generate docs with).
OpenPOWER on IntegriCloud