9 #include "vpl/vpl_export.h" 21 extern VPL_EXPORT
char *
vpl_getcwd(
char *buf, std::size_t buf_size );
24 extern VPL_EXPORT
int vpl_mkdir(
const char *dir,
unsigned short mode );
27 extern VPL_EXPORT
int vpl_rmdir(
const char *dir );
30 extern VPL_EXPORT
int vpl_chdir(
const char *dir );
33 extern VPL_EXPORT
int vpl_unlink(
const char *file );
36 extern VPL_EXPORT
unsigned int vpl_sleep(
unsigned int t );
39 extern VPL_EXPORT
int vpl_usleep(
unsigned int t );
44 extern VPL_EXPORT
int vpl_putenv (
const char * envvar );
VPL_EXPORT int vpl_gethostname(char *name, std::size_t len)
Get the current machine's hostname.
VPL_EXPORT int vpl_mkdir(const char *dir, unsigned short mode)
Create a new directory dir with permissions mode.
VPL_EXPORT int vpl_rmdir(const char *dir)
Remove the directory dir.
VPL_EXPORT unsigned int vpl_sleep(unsigned int t)
Sleep for t seconds.
VPL_EXPORT int vpl_usleep(unsigned int t)
Sleep for t microseconds.
VPL_EXPORT int vpl_unlink(const char *file)
Remove the file file.
VPL_EXPORT char * vpl_getcwd(char *buf, std::size_t buf_size)
Get the pathname of the current working directory.
VPL_EXPORT int vpl_chdir(const char *dir)
Change the working directory to dir.
VPL_EXPORT unsigned vpl_getpid()
Get the process identifier.
VPL_EXPORT int vpl_putenv(const char *envvar)
Set environment variable.