mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 16:58:30 +00:00
Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been cleared out. We might have a working load average for the platform that should help GNU Make work well.
This commit is contained in:
parent
e2e0b042c1
commit
c23b6ecc31
162 changed files with 847 additions and 153 deletions
|
@ -29,8 +29,7 @@
|
|||
* @vforksafe
|
||||
*/
|
||||
bool isexecutable(const char *path) {
|
||||
/* execve() depends on this */
|
||||
struct stat st;
|
||||
struct stat st; /* execve() depends on this */
|
||||
if (fstatat(AT_FDCWD, path, &st, 0)) return 0;
|
||||
return !!(st.st_mode & 0111);
|
||||
return !S_ISDIR(st.st_mode) && !!(st.st_mode & 0111);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue