Synesis Software

src/unistd.c File Reference

#include <unistd.h>
#include <unixem/unixem.h>
#include <unixem/internal/util.h>
#include <errno.h>
#include <limits.h>
#include <windows.h>

Defines

#define FILE_ATTRIBUTE_ERROR   (0xFFFFFFFF)
#define _MAX_FNAME   (256)
#define _MAX_PATH   (260)

Functions

int link (const char *originalFile, const char *linkName)
 Creates a hardlink.
int unlink (const char *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 (const char *dirName, unsigned mode)
 Creates the given directory.
int rmdir (const char *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.

Define Documentation

#define _MAX_FNAME   (256)

#define _MAX_PATH   (260)

#define FILE_ATTRIBUTE_ERROR   (0xFFFFFFFF)


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