Synesis Software

unistd.h File Reference


Detailed Description

Contains standard limits and declarations.

#include <stddef.h>
#include <sys/types.h>

Go to the source code of this file.

Typedefs

typedef int pid_t

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.

UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2007