![]() |
|||||
|
Typedefs | |
typedef int | pid_t |
Process identifier type. | |
Enumerations | |
enum | { _PC_LINK_MAX, _PC_MAX_CANON, _PC_MAX_INPUT, _PC_NAME_MAX, _PC_PATH_MAX, _PC_PIPE_BUF, _PC_CHOWN_RESTRICTED, _PC_NO_TRUNC, _PC_VDISABLE, _PC_AIX_DISK_PARTITION, _PC_AIX_DISK_SIZE, _PC_FILESIZEBITS, _PC_SYNC_IO } |
Functions | |
int | link (char const *originalFile, char const *linkName) |
Creates a hardlink. | |
int | unlink (char const *path) |
Unlinks a file or directory. | |
int | chdir (char const *dirName) |
Change the current working directory. | |
char * | getcwd (char *buffer, size_t max_len) |
Get the current working directory. | |
int | mkdir (char const *dirName, unsigned mode) |
Creates the given directory. | |
int | rmdir (char const *dirName) |
Removes the given directory. | |
int | close (int handle) |
Closes a file. | |
int | getpagesize (void) |
Returns the size, in bytes, of the page size. | |
long | pathconf (char const *path, int name) |
Provides access to various system limits not available at compile time. | |
char * | realpath (char const *path, char resolvedPath[]) |
Turns path into a fully qualified path, resolving all symbolic links, multiple /, /. | |
int | usleep (unsigned long microSeconds) |
Suspends execution for the given internal. | |
pid_t | getpid (void) |
Returns the current process identifier. | |
int | gethostname (char *name, size_t cchName) |
Returns the host name for the current machine. |
typedef int pid_t |
Process identifier type.
anonymous enum |
int chdir | ( | char const * | dirName | ) |
Change the current working directory.
This function changes the current working directory to the directory specified by dirName. dirName must refer to an existing directory.
dirName | Path of new working directory |
References errno_from_Win32().
int close | ( | int | handle | ) |
Closes a file.
handle | The handle of the file to be closed |
char* getcwd | ( | char * | buffer, | |
size_t | max_len | |||
) |
Get the current working directory.
This function gets the full path of the current working directory and stores it in buffer.
buffer | Storage location for the current working directory | |
max_len | Maximum length of path (in characters) |
References errno_from_Win32().
int gethostname | ( | char * | name, | |
size_t | cchName | |||
) |
Returns the host name for the current machine.
name | Pointer to an array of characters to receive the results | |
cchName | Number of characters available in the buffer |
0 | the operation completed successfully | |
-1 | the operation failed |
int getpagesize | ( | void | ) |
Returns the size, in bytes, of the page size.
pid_t getpid | ( | void | ) |
Returns the current process identifier.
int link | ( | char const * | originalFile, | |
char const * | linkName | |||
) |
Creates a hardlink.
This function creates a link from originalFile
to linkName
.
originalFile | Path of the original file | |
linkName | Path of the link |
References errno_from_Win32(), and get_current_drive().
int mkdir | ( | char const * | dirName, | |
unsigned | mode | |||
) |
Creates the given directory.
This function creates the named directory.
dirName | Path of directory to remove | |
mode | The access permissions of the directory |
References errno_from_Win32().
long pathconf | ( | char const * | path, | |
int | name | |||
) |
Provides access to various system limits not available at compile time.
References _PC_AIX_DISK_PARTITION, _PC_AIX_DISK_SIZE, _PC_CHOWN_RESTRICTED, _PC_FILESIZEBITS, _PC_LINK_MAX, _PC_MAX_CANON, _PC_MAX_INPUT, _PC_NAME_MAX, _PC_NO_TRUNC, _PC_PATH_MAX, _PC_PIPE_BUF, _PC_SYNC_IO, and _PC_VDISABLE.
char* realpath | ( | char const * | path, | |
char | resolvedPath[] | |||
) |
Turns path
into a fully qualified path, resolving all symbolic links, multiple /, /.
/ and /../
path | The relative path to be converted into absolute form | |
resolvedPath | Pointer to a buffer to receive the path. This must contain sufficient storage for a valid path |
References errno_from_Win32().
int rmdir | ( | char const * | dirName | ) |
Removes the given directory.
This function removes the named directory.
dirName | Path of directory to remove |
References errno_from_Win32().
int unlink | ( | char const * | path | ) |
Unlinks a file or directory.
path | The path of the file or directory to unlink |
References errno_from_Win32().
int usleep | ( | unsigned long | microSeconds | ) |
Suspends execution for the given internal.
microSeconds | The number of microseconds in the sleep interval |
|
UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2010 |