Lines Matching refs:WRAP

30 // Macro to get the WRAP function
31 #define WRAP(name) __nacl_irt_##name##_wrap
44 // Switch the IRT's pointer to the WRAP function
46 __libnacl_irt_##group.name = (typeof(REAL(name)))WRAP(name);
95 int WRAP(close)(int fd) {
99 int WRAP(dup)(int fd, int* newfd) {
104 int WRAP(dup2)(int fd, int newfd) {
109 void WRAP(exit)(int status) {
113 int WRAP(read)(int fd, void* buf, size_t count, size_t* nread) {
119 int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) {
125 int WRAP(seek)(int fd, off_t offset, int whence, off_t* new_offset) {
130 int WRAP(fstat)(int fd, struct stat* buf) {
134 int WRAP(getdents)(int fd, dirent* buf, size_t count, size_t* nread) {
141 int WRAP(fchdir)(int fd) {
145 int WRAP(fchmod)(int fd, mode_t mode) {
149 int WRAP(fsync)(int fd) {
153 int WRAP(fdatasync)(int fd) {
157 int WRAP(ftruncate)(int fd, off_t length) {
161 int WRAP(isatty)(int fd, int* result) {
167 int WRAP(mmap)(void** addr,
181 int WRAP(munmap)(void* addr, size_t length) {
188 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) {
193 int WRAP(stat)(const char* pathname, struct stat* buf) {
197 int WRAP(mkdir)(const char* pathname, mode_t mode) {
201 int WRAP(rmdir)(const char* pathname) {
205 int WRAP(chdir)(const char* pathname) {
209 int WRAP(getcwd)(char* pathname, size_t len) {
215 int WRAP(unlink)(const char* pathname) {
219 int WRAP(truncate)(const char* pathname, off_t length) {
223 int WRAP(lstat)(const char* pathname, struct stat* buf) {
227 int WRAP(link)(const char* pathname, const char* newpath) {
231 int WRAP(rename)(const char* pathname, const char* newpath) {
235 int WRAP(symlink)(const char* pathname, const char* newpath) {
239 int WRAP(chmod)(const char* pathname, mode_t mode) {
243 int WRAP(access)(const char* pathname, int amode) {
247 int WRAP(readlink)(const char* pathname,
257 int WRAP(utimes)(const char* pathname, const struct timeval times[2]) {