#include "../syscalls.h"
#include "exports.h"
#include <stdarg.h>
+#include <stddef.h>
#define DEBUG(v...) Debug(v)
return _Syscall(SYS_IOCTL, ">i >i ?d", fd, id, 1024, data);
}
int acess_finfo(int fd, t_sysFInfo *info, int maxacls) {
- DEBUG("offsetof(size, t_sysFInfo) = %i", offsetof(t_sysFInfo, size));
+// DEBUG("offsetof(size, t_sysFInfo) = %i", offsetof(t_sysFInfo, size));
DEBUG("finfo(%i, %p, %i)", fd, info, maxacls);
return _Syscall(SYS_FINFO, ">i <d >i",
fd,
for( i = 0; i < argc; i ++ )
printf("\"%s\" ", new_argv[i]);
printf("\n");
+ if(envp)
+ {
+ printf("envp = %p\n", envp);
+ for( i = 0; envp[i]; i ++ )
+ printf("%i: \"%s\"\n", i, envp[i]);
+ printf("envc = %i\n", i);
+ }
#endif
// Call actual execve
- return execve("./ld-acess", new_argv, envp);
+ return native_execve("./ld-acess", new_argv, envp);
}
void acess_sleep(void)