Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: sysdeps/nacl/irt.h

Issue 1261203002: Fix signature of __nacl_irt_xx functions (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-glibc.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/irt.h
diff --git a/sysdeps/nacl/irt.h b/sysdeps/nacl/irt.h
index 3adc459049c87ac52caa9fffe818c1f10592ba74..ed84f87af3143f8801488426ae96491fa6c94858 100644
--- a/sysdeps/nacl/irt.h
+++ b/sysdeps/nacl/irt.h
@@ -12,8 +12,8 @@
struct timeval;
struct timespec;
-struct stat;
-struct dirent;
+struct nacl_abi_dirent;
+struct nacl_abi_stat;
struct PP_StartFunctions;
struct PP_ThreadFunctions;
@@ -110,8 +110,8 @@ struct nacl_irt_fdio {
int (*read)(int fd, void *buf, size_t count, size_t *nread);
int (*write)(int fd, const void *buf, size_t count, size_t *nwrote);
int (*seek)(int fd, off_t offset, int whence, off_t *new_offset);
- int (*fstat)(int fd, struct stat *);
- int (*getdents)(int fd, struct dirent *, size_t count, size_t *nread);
+ int (*fstat)(int fd, struct nacl_abi_stat *);
+ int (*getdents)(int fd, struct nacl_abi_dirent *, size_t count, size_t *nread);
};
/*
@@ -127,7 +127,7 @@ struct nacl_irt_fdio {
#define NACL_IRT_FILENAME_v0_1 "nacl-irt-filename-0.1"
struct nacl_irt_filename {
int (*open)(const char *pathname, int oflag, mode_t cmode, int *newfd);
- int (*stat)(const char *pathname, struct stat *);
+ int (*stat)(const char *pathname, struct nacl_abi_stat *);
};
/*
« no previous file with comments | « no previous file | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698