aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd
Commit message (Collapse)AuthorAgeFilesLines
...
* Further research shows usbdump(8) is what we should point people atWarner Losh2018-11-021-2/+2
| | | | | | | rather than tcpdump for usb traffic capture. Notes: svn path=/head/; revision=340088
* Catch up with the SCSI device removal. We should likely review why weWarner Losh2018-11-021-3/+2
| | | | | | | even have this. Notes: svn path=/head/; revision=340087
* Document r226775: tell why we omit usbus[0-9]+Warner Losh2018-11-021-1/+3
| | | | | | | | | | tcpdump can capture packet traces from the usb bus. usbus[0-9] are registered as ifnet devices so this can work. When these devices come up, devd was trying to run pccard_ether on those interfaces, which didn't exist and generated an error. Notes: svn path=/head/; revision=340086
* We don't need shell protection for when we're expanding matches.Warner Losh2018-09-222-4/+4
| | | | | | | | | | | | Don't add it. This should fix when we do regepx matches against variables we've set and fix wifi bring up. PR: 231441 Approved by: re@ (kib) Differential Revision: https://reviews.freebsd.org/D17267 Notes: svn path=/head/; revision=338888
* Move all devd related configs to sbin/devd/Brad Davis2018-08-219-0/+900
| | | | | | | | | | | This helps with pkgbase as it switches these to using CONFS so they are properly tagged as config files. Approved by: will (mentor), imp Differential Revision: https://reviews.freebsd.org/D16781 Notes: svn path=/head/; revision=338144
* Revert "devd: use C++ style casts"Eitan Adler2018-07-291-6/+6
| | | | | | | | It seems that nullptr is not yet supported by all compilers used by FreeBSD. :( Notes: svn path=/head/; revision=336877
* devd: use C++ style castsEitan Adler2018-07-291-6/+6
| | | | Notes: svn path=/head/; revision=336867
* devd: use static where possibleEitan Adler2018-07-291-4/+4
| | | | Notes: svn path=/head/; revision=336866
* Document kernel/signal/crashdump devd(8) notification.Edward Tomasz Napierala2018-07-201-2/+17
| | | | | | | | | | Discussed with: kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16323 Notes: svn path=/head/; revision=336549
* Consistently use full stops.Edward Tomasz Napierala2018-07-181-19/+19
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=336459
* We're not, yet, at C++11 capable on all our plaforms.Warner Losh2018-06-281-1/+6
| | | | | | | | | | Use a possibly slower, but C++98 compatibe way to iterate through the string. Noticed by: g++ 4.2.1 and Mark Millard Notes: svn path=/head/; revision=335756
* Safely quote all variable expansions.Warner Losh2018-06-272-3/+27
| | | | | | | | | | | | When expanding a variable set by a message from the kernel, safely quote all arguments expanded when creating a command line for the shell. Reviewd by: Shawn Webb, Oliver Pinter, brd@ Sponsored by: Netflix Notes: svn path=/head/; revision=335753
* devd: drop WARNS back down to 3 until 6 actually works with GCCMatt Macy2018-05-241-0/+1
| | | | Notes: svn path=/head/; revision=334126
* devd: Move variable declaration to headerEitan Adler2018-05-233-2/+1
| | | | | | | Reminder by: imp Notes: svn path=/head/; revision=334095
* devd: Unbreak buildEitan Adler2018-05-231-2/+1
| | | | | | | | | | | | I'm not quite sure why this wasn't caught before. Most likely due to some generated file not being properly cleaned. Fix build by just hiding the warnings that `-i` was supposed to fix. Tested with clang, gcc9, gcc7 Notes: svn path=/head/; revision=334086
* devd: allow build to complete using g++Eitan Adler2018-05-231-0/+2
| | | | Notes: svn path=/head/; revision=334079
* devd: compile at WARNS=6Eitan Adler2018-05-233-6/+7
| | | | | | | Verified with "make universe TARGETS='amd64 arm arm64 i386 sparc64'" Notes: svn path=/head/; revision=334078
* devd: correct two warningsEitan Adler2018-05-232-2/+2
| | | | | | | | - catching a polymorphic type by value - "output between 16 and 95 bytes into a destination of size 80" Notes: svn path=/head/; revision=334077
* Remove support for FDDI and token ring media types in userland utilities.Brooks Davis2018-04-161-2/+0
| | | | | | | | | Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15077 Notes: svn path=/head/; revision=332630
* devd: don't pass &fds in useless parameters to select(2)Eitan Adler2018-02-151-1/+1
| | | | | | | | | | | select(2) should be declared as restrict. In addition the only fd in the fdset is open O_RDONLY, and it's not a socket that can provide OOB notifications, Reviewed by: ian, imp, vangyzen Notes: svn path=/head/; revision=329296
* devd: readd virtualEitan Adler2018-01-261-1/+1
| | | | | | | - my C++ knowledge is old and rusty. re-add virtual Notes: svn path=/head/; revision=328431
* devd: minor nitsEitan Adler2018-01-262-2/+2
| | | | | | | | - mark usage as noreturn - config does not need a virtual destructor Notes: svn path=/head/; revision=328430
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-274-0/+8
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-312-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* Require devd to be running for its ATF tests to runAlan Somers2017-06-201-1/+2
| | | | | | | | | | | | The ATF tests communicate with the system's running devd PR: 220169 Reported by: gjb MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=320166
* devd(8): Remove pidfile on shutdownAlan Somers2017-06-201-0/+1
| | | | | | | | MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=320165
* Use a more stream-lined version of fix_value.Warner Losh2017-03-242-16/+8
| | | | | | | Submitted by: ian@ Notes: svn path=/head/; revision=315901
* Implement quote escaping. String values may now contain " if youWarner Losh2017-03-232-3/+37
| | | | | | | | | | | | | | | | it is preceded by \. foo="I \"like\" C++" gives the value 'I "like" C++' to the variable 'foo'. If a character other than " follows the \, both the \ and that character are passed through. Differential Revision: https://reviews.freebsd.org/D6286 Sponsored by: Netflix Notes: svn path=/head/; revision=315773
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Fix build of devd with GCC 4.2Alan Somers2017-01-191-0/+1
| | | | | | | | | | | Reported by: olivier Pointy-hat-to: asomers MFC after: 27 days X-MFC-with: 312395 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=312417
* Fix several Coverity CIDs in devdAlan Somers2017-01-181-5/+16
| | | | | | | | | | | | | | | | | CID 1362055, 1362054: File descriptor leaks during shutdown CID 1362013: Potential null-termination fail with long network device names CID 1362097: Uncaught exception during memory pressure CID 1362017, 1362016: Unchecked errors, possibly resulting in weird behavior if two devd instances start at the same time. CID 1362015: Unchecked error that will probably never fail Reported by: Coverity CID: 1362055 1362054 1362013 1362097 1362017 1362016 1362015 MFC after: 4 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=312395
* Simplify test.Warner Losh2016-12-011-1/+1
| | | | Notes: svn path=/head/; revision=309349
* Sort SEE ALSO section sequentially.Sevan Janiyan2016-10-081-3/+3
| | | | | | | | | | | | Highlighted by mandoc -Tlint PR: 212440 Approved by: imp MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8192 Notes: svn path=/head/; revision=306840
* Add history section for devd(8)Sevan Janiyan2016-10-051-2/+8
| | | | | | | | | | | | Move sentence to a new line as advised by igor PR: 212439 Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8104 Notes: svn path=/head/; revision=306727
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299094
* Add GEOM::physpath documentation to devd.conf(5)Alan Somers2016-04-261-0/+2
| | | | | | | | | | | Suggested by: trasz Reviewed by: trasz MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6063 Notes: svn path=/head/; revision=298644
* MFHGlen Barber2016-04-161-2/+20
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=298092
| * Update the devd.conf man page to describe the new CAM/periph system/subsystem.Scott Long2016-04-141-2/+20
| | | | | | | | | | | | | | | | MFC after: 3 days Sponsored by: Netflix Notes: svn path=/head/; revision=298008
* | MFHGlen Barber2016-04-121-39/+27
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297861
| * Fix an intermittent bug in sbin/devd/client_test.streamAlan Somers2016-04-111-39/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In case where the two events were being received in separate reads, the event buffer was being null-terminated at the wrong offset. Also, factored out some common code between the tests, and fixed a comment. Submitted by: will MFC after: 3 days Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=297838
* | MFHGlen Barber2016-04-042-4/+28
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * Add a timestamp variable to the environment. This is when the eventWarner Losh2016-04-032-1/+13
| | | | | | | | | | | | | | was read from the kernel by devd. Notes: svn path=/head/; revision=297529
| * Make $_ match the docs.Warner Losh2016-04-031-1/+1
| | | | | | | | Notes: svn path=/head/; revision=297528
| * Sometimes, it's useful to export the entire line to an externalWarner Losh2016-03-282-3/+15
| | | | | | | | | | | | | | | | | | | | program without listening to the devd socket for all events. Define two new pseudo variables $*, the entire event from devctl and $_, the entire event without the type character, since it might be easier to use in some circumstances. Notes: svn path=/head/; revision=297331
* | MFHGlen Barber2016-03-101-0/+19
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-091-0/+19
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | MFHGlen Barber2016-03-022-7/+1
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318