along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef _SAMBA_BUILD_
+
#define UID_WRAPPER_NOT_REPLACE
-#include "includes.h"
+#include "../replace/replace.h"
+#include <talloc.h>
#include "system/passwd.h"
-#include "system/filesys.h"
+
+#else /* _SAMBA_BUILD_ */
+
+#error uid_wrapper_only_supported_in_samba_yet
+
+#endif
#ifndef _PUBLIC_
#define _PUBLIC_
#ifndef __UID_WRAPPER_H__
#define __UID_WRAPPER_H__
+int uwrap_enabled(void);
+int uwrap_seteuid(uid_t euid);
+uid_t uwrap_geteuid(void);
+int uwrap_setegid(gid_t egid);
+uid_t uwrap_getegid(void);
+int uwrap_setgroups(size_t size, const gid_t *list);
+int uwrap_getgroups(int size, gid_t *list);
+uid_t uwrap_getuid(void);
+gid_t uwrap_getgid(void);
+
#ifdef seteuid
#undef seteuid
#endif
#endif
#define getgid uwrap_getgid
-int uwrap_enabled(void);
-
#endif /* __UID_WRAPPER_H__ */