OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "update_engine/utils.h" | 5 #include "update_engine/utils.h" |
6 | 6 |
7 #include <sys/mount.h> | 7 #include <sys/mount.h> |
8 #include <sys/resource.h> | 8 #include <sys/resource.h> |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <dirent.h> | 11 #include <dirent.h> |
12 #include <errno.h> | 12 #include <errno.h> |
13 #include <fcntl.h> | 13 #include <fcntl.h> |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 #include <stdlib.h> | 15 #include <stdlib.h> |
16 #include <string.h> | 16 #include <string.h> |
17 #include <unistd.h> | 17 #include <unistd.h> |
18 | 18 |
19 #include <algorithm> | 19 #include <algorithm> |
20 | 20 |
21 #include "base/file_path.h" | 21 #include "base/file_path.h" |
22 #include "base/file_util.h" | 22 #include "base/file_util.h" |
23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
24 #include "chromeos/obsolete_logging.h" | 24 #include "base/logging.h" |
25 #include "update_engine/file_writer.h" | 25 #include "update_engine/file_writer.h" |
26 #include "update_engine/omaha_request_params.h" | 26 #include "update_engine/omaha_request_params.h" |
27 #include "update_engine/subprocess.h" | 27 #include "update_engine/subprocess.h" |
28 | 28 |
29 using std::min; | 29 using std::min; |
30 using std::string; | 30 using std::string; |
31 using std::vector; | 31 using std::vector; |
32 | 32 |
33 namespace chromeos_update_engine { | 33 namespace chromeos_update_engine { |
34 | 34 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 int ComparePriorities(ProcessPriority priority_lhs, | 455 int ComparePriorities(ProcessPriority priority_lhs, |
456 ProcessPriority priority_rhs) { | 456 ProcessPriority priority_rhs) { |
457 return static_cast<int>(priority_rhs) - static_cast<int>(priority_lhs); | 457 return static_cast<int>(priority_rhs) - static_cast<int>(priority_lhs); |
458 } | 458 } |
459 | 459 |
460 const char* const kStatefulPartition = "/mnt/stateful_partition"; | 460 const char* const kStatefulPartition = "/mnt/stateful_partition"; |
461 | 461 |
462 } // namespace utils | 462 } // namespace utils |
463 | 463 |
464 } // namespace chromeos_update_engine | 464 } // namespace chromeos_update_engine |
OLD | NEW |