Nut/OS  4.10.3
API Reference
unistd.h File Reference

Miscellaneous function declarations. More...

#include <compiler.h>
Include dependency graph for unistd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _UNISTD_VIRTUAL_H_

Functions

int access (CONST char *path, int what)
 Check the accessibility of a file.
long lseek (int fh, long pos, int whence)
 Reposition a file pointer.
int rmdir (CONST char *path)
 Remove a directory.
int unlink (CONST char *path)
 Remove a file entry.
unsigned int sleep (unsigned int)

Access functions

#define F_OK   0
 Test for existence of file.
#define X_OK   0x01
 Test for execute or search permission.
#define W_OK   0x02
 Test for write permission.
#define R_OK   0x04
 Test for read permission.

Detailed Description

Miscellaneous function declarations.

 *
 * $Log$
 * Revision 1.9  2009/03/05 22:16:57  freckle
 * use __NUT_EMULATION instead of __APPLE__, __linux__, or __CYGWIN__
 *
 * Revision 1.8  2008/04/01 13:34:20  haraldkipp
 * Fixed Unix emulation build.
 *
 * Revision 1.6  2008/01/31 09:15:21  haraldkipp
 * Added sleep() prototype.
 *
 * Revision 1.5  2005/04/19 15:46:45  freckle
 * added #include <compiler.h> as the implicit ordering is not sufficient
 * on our red hat machines and the cruisecontrol build fails
 *
 * Revision 1.4  2005/03/24 14:32:02  freckle
 * added creation of include/unistd_orig.h to configure
 * Added NUT_ wrapper for nut's unistd.h functions. Use <unistd_orig.h>
 * instead of "/usr/include/unistd.h". Relevant for unix emulation only.
 *
 * Revision 1.3  2005/02/23 13:42:28  freckle
 * Correctly include /usr/include/unistd.h for unix emulation
 *
 * Revision 1.2  2005/02/21 11:08:45  olereinhardt
 * For unix plattforms I added #include "/usr/include/unistd.h" since some
 * functions needed for unix_nutinit.c are missing in this file...
 *
 * Revision 1.1  2005/02/05 20:37:17  haraldkipp
 * Peanut added
 *
 *
 * 

Definition in file unistd.h.


Define Documentation

#define _UNISTD_VIRTUAL_H_

Definition at line 79 of file unistd.h.

#define F_OK   0

Test for existence of file.

Definition at line 106 of file unistd.h.

#define X_OK   0x01

Test for execute or search permission.

Definition at line 107 of file unistd.h.

#define W_OK   0x02

Test for write permission.

Definition at line 108 of file unistd.h.

#define R_OK   0x04

Test for read permission.

Definition at line 109 of file unistd.h.


Function Documentation

unsigned int sleep ( unsigned  int)