#include <unistd.h> exist in Linux, functions that contain system services

Source: Internet
Author: User

#include <unistd.h>

Linux Standard library # include <unistd.h> with Windows # include <windows.h> (C language Development)

#include <unistd.h>

Symbolic constants

is the POSIX standard-defined UNIX class system that defines symbolic constants for the header files that contain many of the UNIX system services ' function prototypes, such as the Read function, the Write function, and the Getpid function
Unistd.h is similar to the windows.h! in Windows in Unix #ifdef WIN32 #include <windows.h> #else #include <unistd.h> #endif

Unistd.h contains constants and functions:

ssize_t      Read (int, void *, size_t); int           unlink (const char *); ssize_t      write (int, const void *, size_t); int          usleep (useconds_t); unsigned     Sleep (unsigned);

int Access(const char *, int); unsigned alarm(unsigned); int chdir(const char *); int chown(const char *, uid_t, gid_t); int close(int); size_t confstr(int, char *, size_t); void _exit(int); pid_t fork(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.

About Windows.h: http://baike.baidu.com/view/1586331.htm

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.