devd.cc (247763) | devd.cc (250186) |
---|---|
1/*- 2 * Copyright (c) 2002-2010 M. Warner Losh. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 49 unchanged lines hidden (view full) --- 58 */ 59 60// TODO list: 61// o devd.conf and devd man pages need a lot of help: 62// - devd needs to document the unix domain socket 63// - devd.conf needs more details on the supported statements. 64 65#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2010 M. Warner Losh. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 49 unchanged lines hidden (view full) --- 58 */ 59 60// TODO list: 61// o devd.conf and devd man pages need a lot of help: 62// - devd needs to document the unix domain socket 63// - devd.conf needs more details on the supported statements. 64 65#include <sys/cdefs.h> |
66__FBSDID("$FreeBSD: head/sbin/devd/devd.cc 247763 2013-03-04 02:21:31Z eadler $"); | 66__FBSDID("$FreeBSD: head/sbin/devd/devd.cc 250186 2013-05-02 17:02:50Z eadler $"); |
67 68#include <sys/param.h> 69#include <sys/socket.h> 70#include <sys/stat.h> 71#include <sys/sysctl.h> 72#include <sys/types.h> 73#include <sys/wait.h> 74#include <sys/un.h> 75 | 67 68#include <sys/param.h> 69#include <sys/socket.h> 70#include <sys/stat.h> 71#include <sys/sysctl.h> 72#include <sys/types.h> 73#include <sys/wait.h> 74#include <sys/un.h> 75 |
76#include <ctype.h> | 76#include <cctype> 77#include <cerrno> 78#include <cstdlib> 79#include <cstdio> 80#include <csignal> 81#include <cstring> 82 |
77#include <dirent.h> | 83#include <dirent.h> |
78#include <errno.h> | |
79#include <err.h> 80#include <fcntl.h> 81#include <libutil.h> 82#include <paths.h> 83#include <poll.h> 84#include <regex.h> | 84#include <err.h> 85#include <fcntl.h> 86#include <libutil.h> 87#include <paths.h> 88#include <poll.h> 89#include <regex.h> |
85#include <signal.h> 86#include <stdlib.h> 87#include <stdio.h> 88#include <string.h> | |
89#include <unistd.h> 90 91#include <algorithm> 92#include <map> 93#include <string> 94#include <list> 95#include <vector> 96 --- 1051 unchanged lines hidden --- | 90#include <unistd.h> 91 92#include <algorithm> 93#include <map> 94#include <string> 95#include <list> 96#include <vector> 97 --- 1051 unchanged lines hidden --- |