@@ -121,8 +121,6 @@ static void InitLibcFileIOFunctions() {
121
121
// the code below defines fopen_override() function with asm name
122
122
// "fopen", so that all references to fopen() will resolve to this
123
123
// function.
124
- __attribute__ ((__visibility__(" default" )))
125
- FILE* fopen_override(const char * path, const char * mode) __asm__ (" fopen" );
126
124
127
125
__attribute__ ((__visibility__(" default" )))
128
126
FILE* fopen_override(const char * path, const char * mode) {
@@ -141,7 +139,7 @@ FILE* fopen_override(const char* path, const char* mode) {
141
139
}
142
140
143
141
__attribute__ ((__visibility__(" default" )))
144
- FILE* fopen64 (const char * path, const char * mode) {
142
+ FILE* fopen64_override (const char * path, const char * mode) {
145
143
if (g_override_urandom && strcmp (path, kUrandomDevPath ) == 0 ) {
146
144
int fd = HANDLE_EINTR (dup (base::GetUrandomFD ()));
147
145
if (fd < 0 ) {
@@ -161,11 +159,6 @@ FILE* fopen64(const char* path, const char* mode) {
161
159
162
160
#if HAVE_XSTAT
163
161
164
- __attribute__ ((__visibility__(" default" )))
165
- int xstat_override(int version,
166
- const char *path,
167
- struct stat *buf) __asm__ (" __xstat" );
168
-
169
162
__attribute__ ((__visibility__(" default" )))
170
163
int xstat_override(int version, const char *path, struct stat *buf) {
171
164
if (g_override_urandom && strcmp (path, kUrandomDevPath ) == 0 ) {
@@ -178,11 +171,6 @@ int xstat_override(int version, const char *path, struct stat *buf) {
178
171
}
179
172
}
180
173
181
- __attribute__ ((__visibility__(" default" )))
182
- int xstat64_override(int version,
183
- const char *path,
184
- struct stat64 *buf) __asm__ (" __xstat64" );
185
-
186
174
__attribute__ ((__visibility__(" default" )))
187
175
int xstat64_override(int version, const char *path, struct stat64 *buf) {
188
176
if (g_override_urandom && strcmp (path, kUrandomDevPath ) == 0 ) {
@@ -197,10 +185,6 @@ int xstat64_override(int version, const char *path, struct stat64 *buf) {
197
185
198
186
#else
199
187
200
- __attribute__ ((__visibility__(" default" )))
201
- int stat_override(const char *path,
202
- struct stat *buf) __asm__ (" stat" );
203
-
204
188
__attribute__ ((__visibility__(" default" )))
205
189
int stat_override(const char *path, struct stat *buf) {
206
190
if (g_override_urandom && strcmp (path, kUrandomDevPath ) == 0 ) {
@@ -213,10 +197,6 @@ int stat_override(const char *path, struct stat *buf) {
213
197
}
214
198
}
215
199
216
- __attribute__ ((__visibility__(" default" )))
217
- int stat64_override(const char *path,
218
- struct stat64 *buf) __asm__ (" stat64" );
219
-
220
200
__attribute__ ((__visibility__(" default" )))
221
201
int stat64_override(const char *path, struct stat64 *buf) {
222
202
if (g_override_urandom && strcmp (path, kUrandomDevPath ) == 0 ) {
0 commit comments