Linux Standard Library # include and windows # include (C Language Development)

Source: Internet
Author: User

# 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.