# Include <unistd. h>
Symbol constant
It is the header file of the POSIX standard-defined Unix-class system-defined symbolic constant. It contains the function prototype of many UNIX system services, such as the READ function, write function, and getpid function.
Unistd. H is similar to Windows. h In windows in UNIX!
# Ifdef Win32
# Include <windows. h>
# Else
# Include <unistd. h>
# Endif
Constants and functions contained in unistd. h:
Ssize_tRead(INT, void *, size_t );
IntUnlink(Const char *);
Ssize_tWrite(INT, const void *, size_t );
IntUsleep(Useconds_t );
UnsignedSleep(Unsigned );
IntAccess(Const char *, INT );
UnsignedAlarm(Unsigned );
IntChdir(Const char *);
IntChown(Const char *, uid_t, gid_t );
IntClose(INT );
Size_tConfstr(INT, char *, size_t );
Void_ Exit(INT );
Pid_tFork(Void );
Null // NULL pointer
Seek_cur // set file offset to current plus offset.
Seek_end // set file offset to EOF plus offset.
Seek_set // set file offset to offset.
Introduction to Windows. h: http://baike.baidu.com/view/1586331.htm