Lines Matching defs:fildes
90 static int (*__real_fcntl)(int fildes, int cmd, ...) = NULL;
91 static int (*__real_openat)(int fildes, const char *path, int oflag, ...) = NULL;
92 static int (*__real_close)(int fildes) = NULL;
95 static int (*__real_dup)(int fildes) = NULL;
96 static int (*__real_dup2)(int fildes, int fildes2) = NULL;
97 static int (*__real_pipe)(int fildes[2]) = NULL;
102 static FILE *(*__real_fdopen)(int fildes, const char *mode) = NULL;
103 static ssize_t (*__real_read)(int fildes, void *buf, size_t nbyte) = NULL;
104 static ssize_t (*__real_write)(int fildes, const void *buf, size_t nbyte) = NULL;
105 static ssize_t (*__real_readv)(int fildes, const struct iovec *iov, int iovcnt) = NULL;
106 static ssize_t (*__real_writev)(int fildes, const struct iovec *iov, int iovcnt) = NULL;
109 static ssize_t (*__real_pread)(int fildes, void *buf, size_t nbyte, off_t offset) = NULL;
110 static ssize_t (*__real_pwrite)(int fildes, const void *buf, size_t nbyte, off_t offset) = NULL;
111 static ssize_t (*__real_pwrite64)(int fildes, const void *buf, size_t nbyte, off64_t offset) = NULL;
117 static off_t (*__real_lseek)(int fildes, off_t offset, int whence) = NULL;
118 static offset_t (*__real_llseek)(int fildes, offset_t offset, int whence) = NULL;
123 static int (*__real_getdents)(int fildes, struct dirent *buf, size_t nbyte) = NULL;
130 static int (*__real_fsync)(int fildes) = NULL;
133 static int (*__real_lockf)(int fildes, int function, off_t size) = NULL;
148 static FILE *(*__real_fdopen_2_17)(int fildes, const char *mode) = NULL;
149 static FILE *(*__real_fdopen_2_2_5)(int fildes, const char *mode) = NULL;
150 static FILE *(*__real_fdopen_2_1)(int fildes, const char *mode) = NULL;
151 static FILE *(*__real_fdopen_2_0)(int fildes, const char *mode) = NULL;
160 static ssize_t (*__real_pread_2_2)(int fildes, void *buf, size_t nbyte, off_t offset) = NULL;
161 static ssize_t (*__real_pwrite_2_2)(int fildes, const void *buf, size_t nbyte, off_t offset) = NULL;
170 static ssize_t (*__real_pwrite64_2_2)(int fildes, const void *buf, size_t nbyte, off64_t offset) = NULL;
1066 fcntl (int fildes, int cmd, ...)
1108 return CALL_REAL (fcntl)(fildes, cmd, int_arg);
1110 return CALL_REAL (fcntl)(fildes, cmd, long_arg);
1112 return CALL_REAL (fcntl)(fildes, cmd);
1124 return CALL_REAL (fcntl)(fildes, cmd, int_arg);
1126 return CALL_REAL (fcntl)(fildes, cmd, long_arg);
1128 return CALL_REAL (fcntl)(fildes, cmd);
1141 fd = CALL_REAL (fcntl)(fildes, cmd, long_arg);
1159 iopkt.ofd = fildes;
1169 openat (int fildes, const char *path, int oflag, ...)
1186 return CALL_REAL (openat)(fildes, path, oflag, mode);
1189 fd = CALL_REAL (openat)(fildes, path, oflag, mode);
1453 close (int fildes)
1461 return CALL_REAL (close)(fildes);
1464 stat = CALL_REAL (close)(fildes);
1479 iopkt.fd = fildes;
1648 gprofng_fdopen (FILE*(real_fdopen) (int, const char *), int fildes, const char *mode)
1656 return real_fdopen (fildes, mode);
1659 fp = real_fdopen (fildes, mode);
1674 iopkt.fd = fildes;
1684 FILE *dcl_f (int fildes, const char *mode) \
1688 return gprofng_fdopen (__real_fdopen, fildes, mode); \
1699 dup (int fildes)
1707 return CALL_REAL (dup)(fildes);
1710 fd = CALL_REAL (dup)(fildes);
1727 iopkt.ofd = fildes;
1737 dup2 (int fildes, int fildes2)
1745 return CALL_REAL (dup2)(fildes, fildes2);
1748 fd = CALL_REAL (dup2)(fildes, fildes2);
1764 iopkt.ofd = fildes;
1774 pipe (int fildes[2])
1782 return CALL_REAL (pipe)(fildes);
1785 ret = CALL_REAL (pipe)(fildes);
1800 iopkt.fd = fildes[0];
1812 iopkt.fd = fildes[1];
1858 read (int fildes, void *buf, size_t nbyte)
1866 return CALL_REAL (read)(fildes, buf, nbyte);
1869 ret = CALL_REAL (read)(fildes, buf, nbyte);
1884 iopkt.fd = fildes;
1894 write (int fildes, const void *buf, size_t nbyte)
1902 return CALL_REAL (write)(fildes, buf, nbyte);
1905 ret = CALL_REAL (write)(fildes, buf, nbyte);
1920 iopkt.fd = fildes;
1930 readv (int fildes, const struct iovec *iov, int iovcnt)
1938 return CALL_REAL (readv)(fildes, iov, iovcnt);
1941 ret = CALL_REAL (readv)(fildes, iov, iovcnt);
1956 iopkt.fd = fildes;
1966 writev (int fildes, const struct iovec *iov, int iovcnt)
1974 return CALL_REAL (writev)(fildes, iov, iovcnt);
1977 ret = CALL_REAL (writev)(fildes, iov, iovcnt);
1992 iopkt.fd = fildes;
2085 int fildes, void *buf, size_t nbyte, off_t offset)
2091 return real_pread (fildes, buf, nbyte, offset);
2094 ret = real_pread (fildes, buf, nbyte, offset);
2109 iopkt.fd = fildes;
2119 ssize_t dcl_f (int fildes, void *buf, size_t nbyte, off_t offset) \
2123 return gprofng_pread (__real_pread, fildes, buf, nbyte, offset); \
2136 __collector_pwrite_2_2 (int fildes, const void *buf, size_t nbyte, off_t offset)
2142 return CALL_REAL (pwrite_2_2)(fildes, buf, nbyte, offset);
2145 ssize_t ret = CALL_REAL (pwrite_2_2)(fildes, buf, nbyte, offset);
2151 write_io_packet (fildes, ret, reqt, ret >= 0 ? WRITE_TRACE : WRITE_TRACE_ERROR);
2158 pwrite (int fildes, const void *buf, size_t nbyte, off_t offset)
2164 return CALL_REAL (pwrite)(fildes, buf, nbyte, offset);
2167 ssize_t ret = CALL_REAL (pwrite)(fildes, buf, nbyte, offset);
2173 write_io_packet (fildes, ret, reqt, ret >= 0 ? WRITE_TRACE : WRITE_TRACE_ERROR);
2185 __collector_pwrite64_2_2 (int fildes, const void *buf, size_t nbyte, off64_t offset)
2191 return CALL_REAL (pwrite64_2_2)(fildes, buf, nbyte, offset);
2194 ssize_t ret = CALL_REAL (pwrite64_2_2)(fildes, buf, nbyte, offset);
2200 write_io_packet (fildes, ret, reqt, ret >= 0 ? WRITE_TRACE : WRITE_TRACE_ERROR);
2207 pwrite64 (int fildes, const void *buf, size_t nbyte, off64_t offset)
2213 return CALL_REAL (pwrite64)(fildes, buf, nbyte, offset);
2216 ssize_t ret = CALL_REAL (pwrite64)(fildes, buf, nbyte, offset);
2222 write_io_packet (fildes, ret, reqt, ret >= 0 ? WRITE_TRACE : WRITE_TRACE_ERROR);
2438 lseek (int fildes, off_t offset, int whence)
2446 return CALL_REAL (lseek)(fildes, offset, whence);
2449 ret = CALL_REAL (lseek)(fildes, offset, whence);
2464 iopkt.fd = fildes;
2473 llseek (int fildes, offset_t offset, int whence)
2481 return CALL_REAL (llseek)(fildes, offset, whence);
2484 ret = CALL_REAL (llseek)(fildes, offset, whence);
2499 iopkt.fd = fildes;
2720 getdents (int fildes, struct dirent *buf, size_t nbyte)
2728 return CALL_REAL (getdents)(fildes, buf, nbyte);
2731 ret = CALL_REAL (getdents)(fildes, buf, nbyte);
2746 iopkt.fd = fildes;
3108 fsync (int fildes)
3116 return CALL_REAL (fsync)(fildes);
3119 ret = CALL_REAL (fsync)(fildes);
3134 iopkt.fd = fildes;
3212 lockf (int fildes, int function, off_t size)
3220 return CALL_REAL (lockf)(fildes, function, size);
3223 ret = CALL_REAL (lockf)(fildes, function, size);
3238 iopkt.fd = fildes;