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