Lines Matching defs:exe
53 * (1) .exe suffix inconsistencies
198 snprintf(buf, size, "%s.exe", path);
200 strcpy(s, ".exe");
326 snprintf(buf, sizeof(buf), "%s.exe", path);
702 static Exe_test_t* exe[16];
712 if (fd >= 0 && fd < elementsof(exe) && exe[fd])
714 r = exe[fd]->test;
715 exe[fd]->test = 0;
716 if (r > 0 && !fstat(fd, &st) && st.st_ino == exe[fd]->ino)
721 if (!stat(exe[fd]->path, &st) && st.st_ino == exe[fd]->ino)
723 snprintf(buf, sizeof(buf), "%s.exe", exe[fd]->path);
724 sysrename(exe[fd]->path, buf);
736 if (fd >= 0 && fd < elementsof(exe) && exe[fd] && exe[fd]->test < 0)
737 exe[fd]->test = n >= 2 && ((unsigned char*)buf)[1] == 0x5a && (((unsigned char*)buf)[0] == 0x4c || ((unsigned char*)buf)[0] == 0x4d) && !lseek(fd, (off_t)0, SEEK_CUR);
767 if (fd >= 0 && fd < elementsof(exe) && strlen(path) < PATH_MAX &&
770 if (!suffix(path) && !fstat(fd, &st) && (exe[fd] || (exe[fd] = (Exe_test_t*)malloc(sizeof(Exe_test_t)))))
772 exe[fd]->test = -1;
773 exe[fd]->ino = st.st_ino;
774 strcpy(exe[fd]->path, path);