![]() ![]() |
![]() |
version 1.20, 2002/03/07 22:58:45 | version 1.21, 2002/03/19 22:56:00 | ||
---|---|---|---|
|
| ||
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN | ||
#include <windows.h> | #include <windows.h> | ||
#include <fcntl.h> | |||
#include <sys/types.h> | #include <sys/types.h> | ||
#include <time.h> | #include <time.h> | ||
#include <sys/timeb.h> | #include <sys/timeb.h> | ||
|
| ||
return _getpid(); | return _getpid(); | ||
} | } | ||
Boolean System::truncateFile( | |||
const char* path, | |||
size_t newSize) | |||
{ | |||
int fd = open(path, O_RDWR); | |||
if (fd == -1) | |||
return false; | |||
if (chsize(fd, newSize) != 0) | |||
return false; | |||
close(fd); | |||
return true; | |||
} | |||
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
|
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |