Access to certain POSIX functions. More...
#include <vcl_cstddef.h>
Go to the source code of this file.
Functions | |
char * | vpl_getcwd (char *buf, vcl_size_t buf_size) |
Get the pathname of the current working directory. | |
int | vpl_mkdir (const char *dir, unsigned short mode) |
Create a new directory dir with permissions mode. | |
int | vpl_rmdir (const char *dir) |
Remove the directory dir. | |
int | vpl_chdir (const char *dir) |
Change the working directory to dir. | |
int | vpl_unlink (const char *file) |
Remove the file file. | |
unsigned int | vpl_sleep (unsigned int t) |
Sleep for t seconds. | |
int | vpl_usleep (unsigned int t) |
Sleep for t microseconds. | |
int | vpl_putenv (const char *envvar) |
Set environment variable. | |
unsigned | vpl_getpid () |
Get the process identifier. | |
int | vpl_gethostname (char *name, vcl_size_t len) |
Get the current machine's hostname. |
Access to certain POSIX functions.
Definition in file vpl.h.
int vpl_chdir | ( | const char * | dir | ) |
char* vpl_getcwd | ( | char * | buf, |
vcl_size_t | buf_size | ||
) |
Get the pathname of the current working directory.
If buf is not NULL, then size must be at least 1 greater than the length of the pathname to be returned and the pathname will be stored in buf. If buf is NULL then the pathname will be returned and the returned pointer may be passed to free() by the caller.
See also: getcwd(3) manpage.
int vpl_gethostname | ( | char * | name, |
vcl_size_t | len | ||
) |
int vpl_mkdir | ( | const char * | dir, |
unsigned short | mode | ||
) |
int vpl_putenv | ( | const char * | envvar | ) |
unsigned int vpl_sleep | ( | unsigned int | t | ) |