Home | History | Annotate | Download | only in nacl_io

Lines Matching refs:REAL

101 // Macro to get the REAL function pointer
102 #define REAL(name) __nacl_irt_##name##_real
107 // Declare REAL function pointer.
109 typeof(__nacl_irt_##name) REAL(name);
111 // Assign the REAL function pointer.
114 REAL(name) = __nacl_irt_##name;
116 // Switch IRT's pointer to the REAL pointer
118 __nacl_irt_##name = (typeof(__nacl_irt_##name)) REAL(name)
216 return REAL(mmap)(addr, length, prot, flags, fd, offset);
223 // Always let the real munmap run on the address range. It is not an error if
226 return REAL(munmap)(addr, length);
247 return REAL(read)(fd, buf, count, nread);
281 return REAL(write)(fd, buf, count, nwrote);
288 // "real" functions, i.e. the unwrapped original functions.
291 return REAL(close)(fd);
296 int err = REAL(fstat)(fd, &st);
313 int err = REAL(getdents)(fd, (dirent*)nacl_buf, count, &nacl_nread);
336 return REAL(seek)(fd, offset, whence, new_offset);
340 return REAL(mkdir)(pathname, mode);
345 return REAL(mmap)(addr, length, prot, flags, fd, offset);
349 return REAL(munmap)(addr, length);
353 return REAL(open)(pathname, oflag, cmode, newfd);
357 return REAL(open_resource)(file, fd);
361 return REAL(read)(fd, buf, count, nread);
365 return REAL(rmdir)(pathname);
369 return REAL(write)(fd, buf, count, nwrote);