OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 CRAZY_LINKER_SYSTEM_H | 5 #ifndef CRAZY_LINKER_SYSTEM_H |
6 #define CRAZY_LINKER_SYSTEM_H | 6 #define CRAZY_LINKER_SYSTEM_H |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Returns true iff a given path is a regular file (or link to a regular | 69 // Returns true iff a given path is a regular file (or link to a regular |
70 // file). | 70 // file). |
71 bool PathIsFile(const char* path_name); | 71 bool PathIsFile(const char* path_name); |
72 | 72 |
73 // Returns the current directory, as a string. | 73 // Returns the current directory, as a string. |
74 String GetCurrentDirectory(); | 74 String GetCurrentDirectory(); |
75 | 75 |
76 // Returns the value of a given environment variable. | 76 // Returns the value of a given environment variable. |
77 const char* GetEnv(const char* var_name); | 77 const char* GetEnv(const char* var_name); |
78 | 78 |
79 // Returns true iff |lib_name| corresponds to one of the NDK-exposed | |
80 // system libraries. | |
81 bool IsSystemLibrary(const char* lib_name); | |
82 | |
83 } // namespace crazy | 79 } // namespace crazy |
84 | 80 |
85 #endif // CRAZY_LINKER_SYSTEM_H | 81 #endif // CRAZY_LINKER_SYSTEM_H |
OLD | NEW |