|
|
|
|
|
by pwdisswordfish5
2005 days ago
|
|
int ftruncate(int fd, int64_t length) {
if (!IsWindows()) {
return ftruncate$sysv(fd, length);
} else {
return ftruncate$nt(fd, length);
}
}
You get the idea. The OS is detected at startup and then checked each time a function is invoked. |
|