Commit af53ea31 authored by Nils Goroll's avatar Nils Goroll

define INTERPOSE_REAL for functions we need, but don't implement in the interposer variant

parent b70c831a
......@@ -67,6 +67,10 @@ FUNCTION(ssize_t, getxattr, const char *, const char *, void *, size_t)
FUNCTION(ssize_t, lgetxattr, const char *, const char *, void *, size_t)
FUNCTION(int, setxattr, const char *, const char *, const void *, size_t, int)
FUNCTION(int, lsetxattr, const char *, const char *, const void *, size_t, int)
#if defined(INTERPOSE_REAL)
FUNCTION(ssize_t, fgetxattr, int, const char *, void *, size_t)
FUNCTION(int, fsetxattr, int, const char *, const void *, size_t, int)
#endif
#endif
#if defined(INTERPOSE) && defined(TRACE)
......
......@@ -131,6 +131,7 @@ extern int fstatat(int, const char *, struct stat *, int);
/*
* declaration of real() function pointers
*/
# define INTERPOSE_REAL
# define FUNCTION(type, name, ...) static type (* real(name))(__VA_ARGS__);
# if ! defined(_LP64)
# define FUNCTION64(type, name, ...) static type (* real64(name))(__VA_ARGS__);
......@@ -141,6 +142,7 @@ extern int fstatat(int, const char *, struct stat *, int);
# include <longpath/longpath_tbl_functions64.h>
# undef FUNCTION
# undef FUNCTION64
# undef INTERPOSE_REAL
# include <dlfcn.h>
# include <stdio.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment