Synesis Software

Main Page   Compound List   File List   Compound Members   File Members  

/freelibs/unixem/include/unistd.h File Reference

Go to the source code of this file.

Defines

#define PATH_MAX   (260)
 The maximum number of characters (including null terminator) in a directory entry name.


Functions

int chdir (const char *dirName)
 Change the current working directory.

char * getcwd (char *buffer, size_t max_len)
 Get the current working directory.

int getpagesize (void)


Define Documentation

#define PATH_MAX   (260)
 

The maximum number of characters (including null terminator) in a directory entry name.


Function Documentation

int chdir const char *    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.

Parameters:
dirName  Path of new working directory
Returns:
O on success, or -1 if there is an error

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.

Parameters:
buffer  Storage location for the current working directory
max_len  Maximum length of path (in characters)
Returns:
buffer on success, or NULL to indicate error.

int getpagesize void   
 

Returns the size, in bytes, of the page size


UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2001-2003