aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd
Commit message (Collapse)AuthorAgeFilesLines
* Minor initialization change to not trigger bogus gcc warning aboutWarner Losh2007-12-211-1/+1
| | | | | | | passing literal strings to the constructors of string. Notes: svn path=/head/; revision=174824
* Reduce the WARNS level across the board due to a warning that occursJohn Birrell2007-11-191-1/+3
| | | | | | | on at least arm and sparc64. i386/pc98, ia64 and amd64 are all OK. Notes: svn path=/head/; revision=173739
* Fix the description of "media-type".Ruslan Ermilov2006-10-241-3/+14
| | | | Notes: svn path=/head/; revision=163667
* Revise the markup, sort sections, fix some grammar bugs.Ruslan Ermilov2006-10-211-116/+119
| | | | | | | Not fixed: the description of media-type is completely bogus. Notes: svn path=/head/; revision=163581
* flesh out the devd.conf man page... Mostly from the PR, but did a coupleJohn-Mark Gurney2006-10-071-8/+298
| | | | | | | | | | | | gramatical tweaks along w/ sorting the list, and adding that serial is available for USB.... PR: 85097 Submitted by: Fredrik Lindberg MFC after: 1 week Notes: svn path=/head/; revision=163106
* Add -f option to program's usage(), fix manpage's SYNOPSIS.Ruslan Ermilov2006-09-172-4/+3
| | | | Notes: svn path=/head/; revision=162388
* o Yacc's lineno variable holds a total number of parsed lines.Maxim Konovalov2006-04-141-0/+1
| | | | | | | | | | | Reset it to 1 for each devd config file so if the parser finds a syntax error devd(8) will report a correct line number. Submitted by: Niki Denev MFC after: 2 weeks Notes: svn path=/head/; revision=157746
* Use pidfile(3).Pawel Jakub Dawidek2006-01-303-12/+35
| | | | | | | OK'ed by: imp Notes: svn path=/head/; revision=155073
* It was always intended that regular expression matching be caseWarner Losh2006-01-081-1/+1
| | | | | | | insensitive. Make it so. Notes: svn path=/head/; revision=154109
* Rev 1.15 should have incremented the date on this manual page.Joseph Koshy2005-12-191-1/+1
| | | | Notes: svn path=/head/; revision=153522
* Add a -f configfile option to devd(8), based on a patch submitted byJoseph Koshy2005-11-242-5/+33
| | | | | | | | | Wojciech A. Koszek. Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl> Notes: svn path=/head/; revision=152770
* Reuse delete_and_clear() template helper.Alexander Nedotsukov2005-11-141-5/+1
| | | | | | | Approved by: imp Notes: svn path=/head/; revision=152406
* Make devd WARNS=4 clean and bump WARNS accordingly. This will insureBrooks Davis2005-10-192-3/+3
| | | | | | | | | | that future variable shadowing bugs don't compile. Reviewed by: imp Compiled on: alpha i386 sparc64 Notes: svn path=/head/; revision=151486
* As pointed out on current@, we don't want to declare a variable in a scopeWarner Losh2005-10-191-1/+1
| | | | | | | | | | | that just uses the variable and throws it away. This should fix the subsystem keyword wrt media-type. MFC After: 2 days Notes: svn path=/head/; revision=151480
* media-type predicate is used in contexts where device-name is undefined.Warner Losh2005-10-041-1/+9
| | | | | | | | | | In those contexted, use subsystem instead. # This causes dhclient to run again when I plug in my ethernet cable to # my fxp card in my laptop. Notes: svn path=/head/; revision=150949
* * Open permissions on /var/run/devd.pipe so that any user can read devd eventsJoe Marcus Clarke2005-07-131-1/+3
| | | | | | | | | | | | | from this socket * Enable non-blocking I/O on devd.pipe to keep clients from wedging devd. If a write(2) on devd.pipe would block, the client in question will be removed [1] Requested by: rwatson [1] Approved by: imp Notes: svn path=/head/; revision=147973
* Replace fch{mod,own} with straight ch{mod,own} as the former cannot be usedJoe Marcus Clarke2005-07-131-2/+2
| | | | | | | | | | on socket file descriptors. Reviewed by: secteam (cperciva) Approved by: imp Notes: svn path=/head/; revision=147972
* Add the ability to match the on a media type of the device in question.Warner Losh2005-07-105-1/+101
| | | | | | | | Submitted by: sam Approved by: re (scottl) Notes: svn path=/head/; revision=147874
* Ignore sigpipe so we can properly detach clients to the pipe.Warner Losh2005-05-161-0/+2
| | | | | | | Submitted by: Fredrik Lindberg Notes: svn path=/head/; revision=146306
* Fix parsing of nomatch events.Warner Losh2005-04-181-3/+6
| | | | | | | minor debug fix. Notes: svn path=/head/; revision=145218
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-1/+1
| | | | Notes: svn path=/head/; revision=141611
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139987
* NOSHARED -> NO_SHAREDRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139112
* Clarify that devd will only parse files whose names end in .conf.Ceri Davies2004-11-281-1/+3
| | | | | | | | | | | Prompted by PR: docs/73668 Submitted by: Dan Pelleg MFC After: 3 days Notes: svn path=/head/; revision=138162
* mdoc(7) fixes.Ruslan Ermilov2004-07-071-1/+3
| | | | Notes: svn path=/head/; revision=131754
* Create a unix domain socket and write to it all the events that comeWarner Losh2004-07-012-14/+91
| | | | | | | in over the socket. Notes: svn path=/head/; revision=131397
* Parse the ! lines that will soon be coming from the kernel. These areWarner Losh2003-10-245-10/+48
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=121487
* fix typo: s/Instaed/Instead/Ralf S. Engelschall2003-09-261-1/+1
| | | | Notes: svn path=/head/; revision=120474
* At imp's request, force devd to be statically compiled. This avoids theGordon Tetlow2003-08-171-0/+2
| | | | | | | | | | need for libstdc++ in /lib, and the generated binary is actually smaller statically linked than dynamically + sizeof(libstdc++). Additionally, devd doesn't use get*by*() which is one of the main motivations for dynamically linking your root partition anyway. Notes: svn path=/head/; revision=119019
* Simplistic C comment re is wrong, use more correct oneWarner Losh2003-07-231-1/+1
| | | | Notes: svn path=/head/; revision=117945
* Remove old workaroundWarner Losh2003-07-231-3/+1
| | | | Notes: svn path=/head/; revision=117944
* Drop the pid file after we call the final daemon call. w/o -n wouldWarner Losh2003-07-051-2/+4
| | | | | | | | | | give the wrong pid. Submitted by: ru and Lukas Ertl PR: 54113 Notes: svn path=/head/; revision=117246
* mdoc(7) fixes: Expand contraction.Ruslan Ermilov2003-05-171-1/+1
| | | | Notes: svn path=/head/; revision=115114
* Allow zero or more actions in an action list, rather than requiringWarner Losh2003-05-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | one or more actions in the list. This makes constructs like: attach 10 { // echo "Driver $device_name attached" }; to be accepted by the parser. It will be treated as if the user had entered: // attach 10 { // echo "Driver $device_name attached" // }; (eg totally ignored). Approved by: re@ (rwatson) Notes: svn path=/head/; revision=115011
* sysctlbyname takes a size_t as its 5th argument, not a pointer.Warner Losh2003-05-021-1/+1
| | | | | | | | | | However, since NULL was used, and this is C++, this error went undetected until g++ 3.3 somehow managed to whine about it. Reported by: obrien Notes: svn path=/head/; revision=114541
* Create a new C++ header file called devd.hh which has all the classWarner Losh2003-04-263-101/+172
| | | | | | | | | 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). Notes: svn path=/head/; revision=114086
* Update to use is_id_char() in the last patch. I should have done thisWarner Losh2003-04-261-2/+1
| | | | | | | before the last commit. Notes: svn path=/head/; revision=114084
* Make better use of the string type when parsing things. This switchesWarner Losh2003-04-261-28/+22
| | | | | | | | | | | expand one from using a fixed buffer to using a string which dynamically allocates these things. Submitted by: green@ (against an earlier version of devd) Ignored for too long by: imp Notes: svn path=/head/; revision=114081
* Change default to be 'process all events before calling daemon.'Warner Losh2003-04-251-2/+4
| | | | | | | | | | | Also, put a small work around into devd to prevent a hang on boot this would cause because select used to return 2 rather than 0 for no evetnts due to a bug I fixed a few days ago in subr_bus.c. I'll remove this workaround May 7th. You have until then to upgrade your kernel if you want to run a new devd with an older kernel. Notes: svn path=/head/; revision=114000
* Kill debug printf that crept in my last commitWarner Losh2003-04-211-1/+0
| | | | Notes: svn path=/head/; revision=113805
* Implement a two new flags, and change the meaning of another one.Warner Losh2003-04-212-14/+45
| | | | | | | | | | | | | | | | | | 'd': now means don't do daemon(). 'D': Debug 'n': Don't wait to process all pending events before calling daemon. In the past, devd would call daemon immediately. However, this causes a race. If anything in the boot process depends on configuring the devices configured by devd, maybe they would be configured in time, maybe not. Now we don't call daemon until all pending events are processed, unless -n is specified. # -n is actually the default for a while due to the select(2) bug in devctl # that I just fixed to give people a chance to upgrade. Notes: svn path=/head/; revision=113790
* Put an anti-foot-shooting measure in place. Set hw.bus.devctl_disableWarner Losh2003-04-211-0/+19
| | | | | | | | | | | | to 0 when we startup. Print a warning in this case. This allows people that are playing with devd by hand to have something happen. Otherwise, it appears that devd isn't working because /dev/devctl is disabled and producing no events. Suggested by: peter on irc a long time ago. Notes: svn path=/head/; revision=113787
* o Skip white space between variables better. This makesWarner Losh2003-04-211-6/+17
| | | | | | | | | | | | | | 'a="b" c="d" at loc=1 on busN' properly set 'c' and process the rest of the stirng. Before it would ignore everything after variable 'a'. o Parse nomatch and other events differently. They are more different than the code allowed for, so we weren't properly parsing nomatch events. It appears this fixes some of the demand loading issues that I was having with devd. Noticed by: Gary Palmer Notes: svn path=/head/; revision=113785
* devd.conf already has the examples in the todo listWarner Losh2003-04-211-1/+0
| | | | Notes: svn path=/head/; revision=113782
* This can't obviously be cleaner than system headers.Ruslan Ermilov2003-04-011-1/+1
| | | | Notes: svn path=/head/; revision=112935
* mdoc(7) police: Revision.Ruslan Ermilov2003-03-032-24/+38
| | | | Notes: svn path=/head/; revision=111813
* The bugs section hasn't been true since before 5.0-RWarner Losh2003-02-141-3/+0
| | | | Notes: svn path=/head/; revision=110881
* devd bugs section is now OBEWarner Losh2003-02-141-3/+0
| | | | Notes: svn path=/head/; revision=110877
* These are OBE. devd.conf now lives in /etc.Warner Losh2003-01-092-126/+0
| | | | Notes: svn path=/head/; revision=108985
* Terminate the usage message with \n.Warner Losh2003-01-061-1/+1
| | | | | | | Submitted by: joe Notes: svn path=/head/; revision=108799