Codebase list kmod / 36a46cb
Merge tag 'v30+20220905' Marco d'Itri 1 year, 6 months ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1414 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17 /* We unset _FILE_OFFSET_BITS here so we can override both stat and stat64 on
18 * 32-bit architectures and forward each to the right libc function */
19 #undef _FILE_OFFSET_BITS
20
1721 #include <assert.h>
1822 #include <dirent.h>
1923 #include <dlfcn.h>
182186 WRAP_1ARG(DIR*, NULL, opendir);
183187
184188 WRAP_2ARGS(FILE*, NULL, fopen, const char*);
189 WRAP_2ARGS(FILE*, NULL, fopen64, const char*);
185190 WRAP_2ARGS(int, -1, mkdir, mode_t);
186191 WRAP_2ARGS(int, -1, access, int);
187192 WRAP_2ARGS(int, -1, stat, struct stat*);
188193 WRAP_2ARGS(int, -1, lstat, struct stat*);
189 #ifndef _FILE_OFFSET_BITS
190194 WRAP_2ARGS(int, -1, stat64, struct stat64*);
191195 WRAP_2ARGS(int, -1, lstat64, struct stat64*);
192196 WRAP_OPEN(64);
193 #endif
194197
195198 WRAP_OPEN();
196199
197200 #ifdef HAVE___XSTAT
198201 WRAP_VERSTAT(__x,);
199202 WRAP_VERSTAT(__lx,);
200 #ifndef _FILE_OFFSET_BITS
201203 WRAP_VERSTAT(__x,64);
202204 WRAP_VERSTAT(__lx,64);
203205 #endif
204 #endif