devd.cc (240823) | devd.cc (243907) |
---|---|
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 240823 2012-09-22 12:42:51Z pjd $"); | 66__FBSDID("$FreeBSD: head/sbin/devd/devd.cc 243907 2012-12-05 20:50:40Z dim $"); |
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> --- 365 unchanged lines hidden (view full) --- 440 { 441 return (l1->get_priority() > l2->get_priority()); 442 } 443}; 444 445void 446config::sort_vector(vector<event_proc *> &v) 447{ | 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> --- 365 unchanged lines hidden (view full) --- 440 { 441 return (l1->get_priority() > l2->get_priority()); 442 } 443}; 444 445void 446config::sort_vector(vector<event_proc *> &v) 447{ |
448 sort(v.begin(), v.end(), epv_greater()); | 448 stable_sort(v.begin(), v.end(), epv_greater()); |
449} 450 451void 452config::parse(void) 453{ 454 vector<string>::const_iterator i; 455 456 parse_one_file(configfile); --- 615 unchanged lines hidden --- | 449} 450 451void 452config::parse(void) 453{ 454 vector<string>::const_iterator i; 455 456 parse_one_file(configfile); --- 615 unchanged lines hidden --- |