12 return _getcwd( buf, (
int)buf_size );
37 return _unlink( file );
43 Sleep(
long(t) * 1000 );
62 return _putenv(envvar);
69 static bool wsa_initialised =
false;
74 WSAStartup(MAKEWORD(2,2), &wsaData);
77 return gethostname(name, len);
unsigned int vpl_sleep(unsigned int t)
Sleep for t seconds.
int vpl_usleep(unsigned int t)
Sleep for t microseconds.
char * vpl_getcwd(char *buf, std::size_t buf_size)
Get the pathname of the current working directory.
unsigned vpl_getpid()
Get the process identifier.
int vpl_putenv(const char *envvar)
Set environment variable.
int vpl_rmdir(const char *dir)
Remove the directory dir.
int vpl_mkdir(const char *dir, unsigned short mode)
Create a new directory dir with permissions mode.
int vpl_chdir(const char *dir)
Change the working directory to dir.
int vpl_gethostname(char *name, size_t len)
int vpl_unlink(const char *file)
Remove the file file.