Linux Learning Notes System standard: Posix,iso C ...

Source: Internet
Author: User
Tags posix

First, Posix,iso c,single the concept of UNIX specification.

1,posix:portable Operating System Interface. Portable operating System interface. expect to obtain source-level software portability.

2,iso C: Provides standardization of C language. Improve the portability of C languages on different operating systems. It defines the syntax, semantics, and standard libraries of the C language.

3,single a superset of the UNIX specification:posix.1 standard , defines additional interfaces that extend the functionality of the basic POSIX.1 specification. The complete collection of the corresponding system interfaces is known as the X/open system interface (Xsi,x/open systems Interface).

4:posix obey the ISO C standard: That is, when the conflict arises, the ISO C shall prevail. Also, pay attention to the units of return values (frequency, microseconds, seconds, etc.) between each standard.

Second, the sysconf,pathconf,fpathconf:posix specifies the operating system of the various restrictions (such as the maximum number of files), these 3 functions can be at run time to obtain a specific limit value.

1,sysconf: Get options unrelated to file/directory.

2,pathconf: Options related to files/directories. (use path as parameter)

3:fpathconf: Options related to files/directories. (use file descriptors as parameters)

4: You can improve the portability of your programs by using these functions.

4: These functions detect limit values only at run time. You can find the limit values in the "unistd.h" header file at compile time.

Linux Learning Notes System standard: Posix,iso C ...

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.