if (__darwintrace_fd == -2) { char* path = getenv("DARWINTRACE_LOG"); if (path != NULL) { __darwintrace_fd = open(path, O_CREAT | O_WRONLY | O_APPEND, 0666); fcntl(__darwintrace_fd, F_SETFD, 1);  } }
__darwintrace_setup();
int execve(const char* path, char* const argv[], char* const envp[]) {#define execve(x,y,z) syscall(SYS_execve, (x), (y), (z))	int result;		if (__darwintrace_fd == -2) {	  char* path = getenv("DARWINTRACE_LOG");	  if (path != NULL) {		__darwintrace_fd = open(path,		O_CREAT | O_WRONLY | O_APPEND,		0666);		fcntl(__darwintrace_fd, F_SETFD, 1); /* close-on-exec */	  }	}	if (__darwintrace_fd >= 0) {	  struct stat sb;	  if (stat(path, &sb) == 0) {		int size = snprintf(__darwintrace_buf, BUFFER_SIZE, "execve\t%s\n", path );		write(__darwintrace_fd, __darwintrace_buf, size);		fsync(__darwintrace_fd);	  }	}	result = execve(path, argv, envp);	return result;}