| OLD | NEW |
| 1 // Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2014 The Native Client 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 #ifndef NACL_SPAWN_LIBRARY_DEPENDENCIES_ | 5 #ifndef NACL_SPAWN_LIBRARY_DEPENDENCIES_ |
| 6 #define NACL_SPAWN_LIBRARY_DEPENDENCIES_ | 6 #define NACL_SPAWN_LIBRARY_DEPENDENCIES_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 // Finds shared objects which are necessary to run |filename|. | 11 // Finds shared objects which are necessary to run |filename|. |
| 12 // Also finds the architecture string |arch|. | 12 // Also finds the architecture string |arch|. |
| 13 // Output paths will be stored in |dependencies|. |filename| will be | 13 // Output paths will be stored in |dependencies|. |filename| will be |
| 14 // in |dependencies| if |filename| is dynamically linked. Otherwise, | 14 // in |dependencies| if |filename| is dynamically linked. Otherwise, |
| 15 // |dependencies| will be empty. Returns false and update errno | 15 // |dependencies| will be empty. Returns false and update errno |
| 16 // appropriately on error. | 16 // appropriately on error. |
| 17 bool FindArchAndLibraryDependencies(const std::string& filename, | 17 bool FindArchAndLibraryDependencies(const std::string& filename, |
| 18 std::string* arch, | 18 std::string* arch, |
| 19 std::vector<std::string>* dependencies); | 19 std::vector<std::string>* dependencies); |
| 20 | 20 |
| 21 #endif // NACL_SPAWN_LIBRARY_DEPENDENCIES_ | 21 #endif // NACL_SPAWN_LIBRARY_DEPENDENCIES_ |
| OLD | NEW |