Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


feature_test_macros(7) — Linux manual page

NAME |DESCRIPTION |STANDARDS |HISTORY |NOTES |EXAMPLES |SEE ALSO |COLOPHON

featur..._macros(7)  Miscellaneous Information Manualfeatur..._macros(7)

NAME        top

       feature_test_macros - feature test macros

DESCRIPTION        top

       Feature test macros allow the programmer to control the       definitions that are exposed by system header files when a program       is compiled.NOTE:In order to be effective, a feature test macromust bedefined before including any header files.  This can be done       either in the compilation command (cc -DMACRO=value) or by       defining the macro within the source code before including any       headers.  The requirement that the macro must be defined before       including any header file exists because header files may freely       include one another.  Thus, for example, in the following lines,       defining the_GNU_SOURCEmacro may have no effect because the       header<abc.h> itself includes<xyz.h> (POSIX explicitly allows       this):           #include <abc.h>           #define _GNU_SOURCE           #include <xyz.h>       Some feature test macros are useful for creating portable       applications, by preventing nonstandard definitions from being       exposed.  Other macros can be used to expose nonstandard       definitions that are not exposed by default.       The precise effects of each of the feature test macros described       below can be ascertained by inspecting the<features.h> header       file.Note: applications donot need to directly include<features.h>; indeed, doing so is actively discouraged.  See       NOTES.Specification of feature test macro requirements in manual pages       When a function requires that a feature test macro is defined, the       manual page SYNOPSIS typically includes a note of the following       form (this example from theacct(2) manual page):#include <unistd.h>int acct(const char *filename);          Feature Test Macro Requirements for glibc (seefeature_test_macros(7)):acct(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE <              500)       The||means that in order to obtain the declaration ofacct(2)       from<unistd.h>,either of the following macro definitions must be       made before including any header files:           #define _BSD_SOURCE           #define _XOPEN_SOURCE        /* or any value < 500 */       Alternatively, equivalent definitions can be included in the       compilation command:           cc -D_BSD_SOURCE           cc -D_XOPEN_SOURCE           # Or any value < 500       Note that, as described below,some feature test macros aredefined by default, so that it may not always be necessary to       explicitly specify the feature test macro(s) shown in the       SYNOPSIS.       In a few cases, manual pages use a shorthand for expressing the       feature test macro requirements (this example fromreadahead(2)):#define _GNU_SOURCE#define _FILE_OFFSET_BITS 64#include <fcntl.h>ssize_t readahead(intfd, off_t *offset, size_tcount);       This format is employed when the feature test macros ensure that       the proper function declarations are visible, and the macros are       not defined by default.Feature test macros understood by glibc       The paragraphs below explain how feature test macros are handled       in glibc 2.x,x > 0.       First, though, a summary of a few details for the impatient:       •  The macros that you most likely need to use in modern source          code are_POSIX_C_SOURCE(for definitions from various versions          of POSIX.1),_XOPEN_SOURCE(for definitions from various          versions of SUS),_GNU_SOURCE(for GNU and/or Linux specific          stuff), and_DEFAULT_SOURCE(to get definitions that would          normally be provided by default).       •  Certain macros are defined with default values.  Thus, although          one or more macros may be indicated as being required in the          SYNOPSIS of a man page, it may not be necessary to define them          explicitly.  Full details of the defaults are given later in          this man page.       •  Defining_XOPEN_SOURCEwith a value of 600 or greater produces          the same effects as defining_POSIX_C_SOURCEwith a value of          200112L or greater.  Where one sees              _POSIX_C_SOURCE >= 200112L          in the feature test macro requirements in the SYNOPSIS of a man          page, it is implicit that the following has the same effect:              _XOPEN_SOURCE >= 600       •  Defining_XOPEN_SOURCEwith a value of 700 or greater produces          the same effects as defining_POSIX_C_SOURCEwith a value of          200809L or greater.  Where one sees              _POSIX_C_SOURCE >= 200809L          in the feature test macro requirements in the SYNOPSIS of a man          page, it is implicit that the following has the same effect:              _XOPEN_SOURCE >= 700       glibc understands the following feature test macros:__STRICT_ANSI__              ISO Standard C.  This macro is implicitly defined bygcc(1)              when invoked with, for example, the-std=c99 or-ansi flag._POSIX_C_SOURCE              Defining this macro causes header files to expose              definitions as follows:              •  The value 1 exposes definitions conforming to                 POSIX.1-1990 and ISO C (1990).              •  The value 2 or greater additionally exposes definitions                 for POSIX.2-1992.              •  The value 199309L or greater additionally exposes                 definitions for POSIX.1b (real-time extensions).              •  The value 199506L or greater additionally exposes                 definitions for POSIX.1c (threads).              •  (Since glibc 2.3.3) The value 200112L or greater                 additionally exposes definitions corresponding to the                 POSIX.1-2001 base specification (excluding the XSI                 extension).  This value also causes C95 (since glibc                 2.12) and C99 (since glibc 2.10) features to be exposed                 (in other words, the equivalent of defining_ISOC99_SOURCE).              •  (Since glibc 2.10) The value 200809L or greater                 additionally exposes definitions corresponding to the                 POSIX.1-2008 base specification (excluding the XSI                 extension)._POSIX_SOURCE              Defining this obsolete macro with any value is equivalent              to defining_POSIX_C_SOURCEwith the value 1.              Since this macro is obsolete, its usage is generally not              documented when discussing feature test macro requirements              in the man pages._XOPEN_SOURCE              Defining this macro causes header files to expose              definitions as follows:              •  Defining with any value exposes definitions conforming                 to POSIX.1, POSIX.2, and XPG4.              •  The value 500 or greater additionally exposes                 definitions for SUSv2 (UNIX 98).              •  (Since glibc 2.2) The value 600 or greater additionally                 exposes definitions for SUSv3 (UNIX 03; i.e., the                 POSIX.1-2001 base specification plus the XSI extension)                 and C99 definitions.              •  (Since glibc 2.10) The value 700 or greater additionally                 exposes definitions for SUSv4 (i.e., the POSIX.1-2008                 base specification plus the XSI extension).              If__STRICT_ANSI__is not defined, or_XOPEN_SOURCEis              defined with a value greater than or equal to 500and              neither_POSIX_SOURCEnor_POSIX_C_SOURCEis explicitly              defined, then the following macros are implicitly defined:              •_POSIX_SOURCEis defined with the value 1.              •_POSIX_C_SOURCEis defined, according to the value of_XOPEN_SOURCE:_XOPEN_SOURCE< 500_POSIX_C_SOURCEis defined with the value 2.                 500 <=_XOPEN_SOURCE< 600_POSIX_C_SOURCEis defined with the value                        199506L.                 600 <=_XOPEN_SOURCE< 700_POSIX_C_SOURCEis defined with the value                        200112L.                 700 <=_XOPEN_SOURCE(since glibc 2.10)_POSIX_C_SOURCEis defined with the value                        200809L.              In addition, defining_XOPEN_SOURCEwith a value of 500 or              greater produces the same effects as defining_XOPEN_SOURCE_EXTENDED._XOPEN_SOURCE_EXTENDED              If this macro is defined,and_XOPEN_SOURCEis defined,              then expose definitions corresponding to the XPG4v2 (SUSv1)              UNIX extensions (UNIX 95).  Defining_XOPEN_SOURCEwith a              value of 500 or more also produces the same effect as              defining_XOPEN_SOURCE_EXTENDED.  Use of_XOPEN_SOURCE_EXTENDEDin new source code should be              avoided.              Since defining_XOPEN_SOURCEwith a value of 500 or more              has the same effect as defining_XOPEN_SOURCE_EXTENDED, the              latter (obsolete) feature test macro is generally not              described in the SYNOPSIS in man pages._ISOC99_SOURCE(since glibc 2.1.3)              Exposes declarations consistent with the ISO C99 standard.              Earlier glibc 2.1.x versions recognized an equivalent macro              named_ISOC9X_SOURCE(because the C99 standard had not then              been finalized).  Although the use of this macro is              obsolete, glibc continues to recognize it for backward              compatibility.              Defining_ISOC99_SOURCEalso exposes ISO C (1990) Amendment              1 ("C95") definitions.  (The primary change in C95 was              support for international character sets.)              Invoking the C compiler with the option-std=c99 produces              the same effects as defining this macro._ISOC11_SOURCE(since glibc 2.16)              Exposes declarations consistent with the ISO C11 standard.              Defining this macro also enables C99 and C95 features (like_ISOC99_SOURCE).              Invoking the C compiler with the option-std=c11 produces              the same effects as defining this macro._LARGEFILE64_SOURCE              Expose definitions for the alternative API specified by the              LFS (Large File Summit) as a "transitional extension" to              the Single UNIX Specification.  (See              ⟨http://opengroup.org/platform/lfs.html⟩.)  The alternative              API consists of a set of new objects (i.e., functions and              types) whose names are suffixed with "64" (e.g.,off64_t              versusoff_t,lseek64() versuslseek(), etc.).  New              programs should not employ this macro; instead_FILE_OFFSET_BITS=64 should be employed._LARGEFILE_SOURCE              This macro was historically used to expose certain              functions (specificallyfseeko(3) andftello(3)) that              address limitations of earlier APIs (fseek(3) andftell(3))              that uselong for file offsets.  This macro is implicitly              defined if_XOPEN_SOURCEis defined with a value greater              than or equal to 500.  New programs should not employ this              macro; defining_XOPEN_SOURCEas just described or defining_FILE_OFFSET_BITSwith the value 64 is the preferred              mechanism to achieve the same result._FILE_OFFSET_BITS              Defining this macro with the value 64 automatically              converts references to 32-bit functions and data types              related to file I/O and filesystem operations into              references to their 64-bit counterparts.  This is useful              for performing I/O on large files (> 2 Gigabytes) on 32-bit              systems.  It is also useful when calling functions likecopy_file_range(2) that were added more recently and that              come only in 64-bit flavors.  (Defining this macro permits              correctly written programs to use large files with only a              recompilation being required.)              64-bit systems naturally permit file sizes greater than 2              Gigabytes, and on those systems this macro has no effect._TIME_BITS              Defining this macro with the value 64 changes the width oftime_t(3type) to 64-bit which allows handling of timestamps              beyond 2038.  It is closely related to_FILE_OFFSET_BITS              and depending on implementation, may require it set.  This              macro is available as of glibc 2.34._BSD_SOURCE(deprecated since glibc 2.20)              Defining this macro with any value causes header files to              expose BSD-derived definitions.              In glibc versions up to and including 2.18, defining this              macro also causes BSD definitions to be preferred in some              situations where standards conflict, unless one or more of_SVID_SOURCE,_POSIX_SOURCE,_POSIX_C_SOURCE,_XOPEN_SOURCE,_XOPEN_SOURCE_EXTENDED, or_GNU_SOURCEis              defined, in which case BSD definitions are disfavored.              Since glibc 2.19,_BSD_SOURCEno longer causes BSD              definitions to be preferred in case of conflicts.              Since glibc 2.20, this macro is deprecated.  It now has the              same effect as defining_DEFAULT_SOURCE, but generates a              compile-time warning (unless_DEFAULT_SOURCEis also              defined).  Use_DEFAULT_SOURCEinstead.  To allow code that              requires_BSD_SOURCEin glibc 2.19 and earlier and_DEFAULT_SOURCEin glibc 2.20 and later to compile without              warnings, defineboth_BSD_SOURCEand_DEFAULT_SOURCE._SVID_SOURCE(deprecated since glibc 2.20)              Defining this macro with any value causes header files to              expose System V-derived definitions.  (SVID == System V              Interface Definition; seestandards(7).)              Since glibc 2.20, this macro is deprecated in the same              fashion as_BSD_SOURCE._DEFAULT_SOURCE(since glibc 2.19)              This macro can be defined to ensure that the "default"              definitions are provided even when the defaults would              otherwise be disabled, as happens when individual macros              are explicitly defined, or the compiler is invoked in one              of its "standard" modes (e.g.,cc -std=c99).  Defining_DEFAULT_SOURCEwithout defining other individual macros or              invoking the compiler in one of its "standard" modes has no              effect.              The "default" definitions comprise those required by              POSIX.1-2008 and ISO C99, as well as various definitions              originally derived from BSD and System V.  On glibc 2.19              and earlier, these defaults were approximately equivalent              to explicitly defining the following:                  cc -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809_ATFILE_SOURCE(since glibc 2.4)              Defining this macro with any value causes header files to              expose declarations of a range of functions with the suffix              "at"; seeopenat(2).  Since glibc 2.10, this macro is also              implicitly defined if_POSIX_C_SOURCEis defined with a              value greater than or equal to 200809L._GNU_SOURCE              Defining this macro (with any value) implicitly defines_ATFILE_SOURCE,_LARGEFILE64_SOURCE,_ISOC99_SOURCE,_XOPEN_SOURCE_EXTENDED,_POSIX_SOURCE,_POSIX_C_SOURCEwith              the value 200809L (200112L before glibc 2.10; 199506L              before glibc 2.5; 199309L before glibc 2.1) and_XOPEN_SOURCEwith the value 700 (600 before glibc 2.10;              500 before glibc 2.2).  In addition, various GNU-specific              extensions are also exposed.              Since glibc 2.19, defining_GNU_SOURCEalso has the effect              of implicitly defining_DEFAULT_SOURCE.  Before glibc 2.20,              defining_GNU_SOURCEalso had the effect of implicitly              defining_BSD_SOURCEand_SVID_SOURCE._REENTRANT              Historically, on various C libraries it was necessary to              define this macro in all multithreaded code.  (Some C              libraries may still require this.)  In glibc, this macro              also exposed definitions of certain reentrant functions.              However, glibc has been thread-safe by default for many              years; since glibc 2.3, the only effect of defining_REENTRANThas been to enable one or two of the same              declarations that are also enabled by defining_POSIX_C_SOURCEwith a value of 199606L or greater._REENTRANTis now obsolete.  In glibc 2.25 and later,              defining_REENTRANTis equivalent to defining_POSIX_C_SOURCEwith the value 199606L.  If a higher POSIX              conformance level is selected by any other means (such as_POSIX_C_SOURCEitself,_XOPEN_SOURCE,_DEFAULT_SOURCE, or_GNU_SOURCE), then defining_REENTRANThas no effect.              This macro is automatically defined if one compiles withcc -pthread._THREAD_SAFE              Synonym for the (deprecated)_REENTRANT, provided for              compatibility with some other implementations._FORTIFY_SOURCE(since glibc 2.3.4)              Defining this macro causes some lightweight checks to be              performed to detect some buffer overflow errors when              employing various string and memory manipulation functions              (for example,memcpy(3),memset(3),stpcpy(3),strcpy(3),strncpy(3),strcat(3),strncat(3),sprintf(3),snprintf(3),vsprintf(3),vsnprintf(3),gets(3), and wide character              variants thereof).  For some functions, argument              consistency is checked; for example, a check is made thatopen(2) has been supplied with amode argument when the              specified flags includeO_CREAT.  Not all problems are              detected, just some common cases.              If_FORTIFY_SOURCEis set to 1, with compiler optimization              level 1 (gcc -O1) and above, checks that shouldn't change              the behavior of conforming programs are performed.  With_FORTIFY_SOURCEset to 2, some more checking is added, but              some conforming programs might fail.              Some of the checks can be performed at compile time (via              macros logic implemented in header files), and result in              compiler warnings; other checks take place at run time, and              result in a run-time error if the check fails.              With_FORTIFY_SOURCEset to 3, additional checking is added              to intercept some function calls used with an argument of              variable size where the compiler can deduce an upper bound              for its value.  For example, a program wheremalloc(3)'s              size argument is variable can now be fortified.              Use of this macro requires compiler support, available              since gcc 4.0 and clang 2.6.  Use of_FORTIFY_SOURCEset to              3 requires gcc 12.0 or later, or clang 9.0 or later, in              conjunction with glibc 2.33 or later.Default definitions, implicit definitions, and combining definitions       If no feature test macros are explicitly defined, then the       following feature test macros are defined by default:_BSD_SOURCE       (in glibc 2.19 and earlier),_SVID_SOURCE(in glibc 2.19 and       earlier),_DEFAULT_SOURCE(since glibc 2.19),_POSIX_SOURCE, and_POSIX_C_SOURCE=200809L (200112L before glibc 2.10; 199506L before       glibc 2.4; 199309L before glibc 2.1).       If any of__STRICT_ANSI__,_ISOC99_SOURCE,_ISOC11_SOURCE(since       glibc 2.18),_POSIX_SOURCE,_POSIX_C_SOURCE,_XOPEN_SOURCE,_XOPEN_SOURCE_EXTENDED(in glibc 2.11 and earlier),_BSD_SOURCE       (in glibc 2.19 and earlier), or_SVID_SOURCE(in glibc 2.19 and       earlier) is explicitly defined, then_BSD_SOURCE,_SVID_SOURCE,       and_DEFAULT_SOURCEare not defined by default.       If_POSIX_SOURCEand_POSIX_C_SOURCEare not explicitly defined,       and either__STRICT_ANSI__is not defined or_XOPEN_SOURCEis       defined with a value of 500 or more, then       •_POSIX_SOURCEis defined with the value 1; and       •_POSIX_C_SOURCEis defined with one of the following values:          •  2, if_XOPEN_SOURCEis defined with a value less than 500;          •  199506L, if_XOPEN_SOURCEis defined with a value greater             than or equal to 500 and less than 600; or          •  (since glibc 2.4) 200112L, if_XOPEN_SOURCEis defined with             a value greater than or equal to 600 and less than 700.          •  (Since glibc 2.10) 200809L, if_XOPEN_SOURCEis defined with             a value greater than or equal to 700.          •  Older versions of glibc do not know about the values 200112L             and 200809L for_POSIX_C_SOURCE, and the setting of this             macro will depend on the glibc version.          •  If_XOPEN_SOURCEis undefined, then the setting of_POSIX_C_SOURCEdepends on the glibc version: 199506L,             before glibc 2.4; 200112L, since glibc 2.4 to glibc 2.9; and             200809L, since glibc 2.10.       Multiple macros can be defined; the results are additive.

STANDARDS        top

       POSIX.1 specifies_POSIX_C_SOURCE,_POSIX_SOURCE, and_XOPEN_SOURCE._FILE_OFFSET_BITSis not specified by any standard, but is       employed on some other implementations._BSD_SOURCE,_SVID_SOURCE,_DEFAULT_SOURCE,_ATFILE_SOURCE,_GNU_SOURCE,_FORTIFY_SOURCE,_REENTRANT, and_THREAD_SAFEare       specific to glibc.

HISTORY        top

_XOPEN_SOURCE_EXTENDEDwas specified by XPG4v2 (aka SUSv1), but is       not present in SUSv2 and later.

NOTES        top

<features.h> is a Linux/glibc-specific header file.  Other systems       have an analogous file, but typically with a different name.  This       header file is automatically included by other header files as       required: it is not necessary to explicitly include it in order to       employ feature test macros.       According to which of the above feature test macros are defined,<features.h> internally defines various other macros that are       checked by other glibc header files.  These macros have names       prefixed by two underscores (e.g.,__USE_MISC).  Programs shouldnever define these macros directly: instead, the appropriate       feature test macro(s) from the list above should be employed.

EXAMPLES        top

       The program below can be used to explore how the various feature       test macros are set depending on the glibc version and what       feature test macros are explicitly set.  The following shell       session, on a system with glibc 2.10, shows some examples of what       we would see:           $cc ftm.c           $./a.out           _POSIX_SOURCE defined           _POSIX_C_SOURCE defined: 200809L           _BSD_SOURCE defined           _SVID_SOURCE defined           _ATFILE_SOURCE defined           $cc -D_XOPEN_SOURCE=500 ftm.c           $./a.out           _POSIX_SOURCE defined           _POSIX_C_SOURCE defined: 199506L           _XOPEN_SOURCE defined: 500           $cc -D_GNU_SOURCE ftm.c           $./a.out           _POSIX_SOURCE defined           _POSIX_C_SOURCE defined: 200809L           _ISOC99_SOURCE defined           _XOPEN_SOURCE defined: 700           _XOPEN_SOURCE_EXTENDED defined           _LARGEFILE64_SOURCE defined           _BSD_SOURCE defined           _SVID_SOURCE defined           _ATFILE_SOURCE defined           _GNU_SOURCE definedProgram source       /* ftm.c */       #include <stdint.h>       #include <stdio.h>       #include <unistd.h>       #include <stdlib.h>       int       main(int argc, char *argv[])       {       #ifdef _POSIX_SOURCE           printf("_POSIX_SOURCE defined\n");       #endif       #ifdef _POSIX_C_SOURCE           printf("_POSIX_C_SOURCE defined: %jdL\n",                   (intmax_t) _POSIX_C_SOURCE);       #endif       #ifdef _ISOC99_SOURCE           printf("_ISOC99_SOURCE defined\n");       #endif       #ifdef _ISOC11_SOURCE           printf("_ISOC11_SOURCE defined\n");       #endif       #ifdef _XOPEN_SOURCE           printf("_XOPEN_SOURCE defined: %d\n", _XOPEN_SOURCE);       #endif       #ifdef _XOPEN_SOURCE_EXTENDED           printf("_XOPEN_SOURCE_EXTENDED defined\n");       #endif       #ifdef _LARGEFILE64_SOURCE           printf("_LARGEFILE64_SOURCE defined\n");       #endif       #ifdef _FILE_OFFSET_BITS           printf("_FILE_OFFSET_BITS defined: %d\n", _FILE_OFFSET_BITS);       #endif       #ifdef _TIME_BITS           printf("_TIME_BITS defined: %d\n", _TIME_BITS);       #endif       #ifdef _BSD_SOURCE           printf("_BSD_SOURCE defined\n");       #endif       #ifdef _SVID_SOURCE           printf("_SVID_SOURCE defined\n");       #endif       #ifdef _DEFAULT_SOURCE           printf("_DEFAULT_SOURCE defined\n");       #endif       #ifdef _ATFILE_SOURCE           printf("_ATFILE_SOURCE defined\n");       #endif       #ifdef _GNU_SOURCE           printf("_GNU_SOURCE defined\n");       #endif       #ifdef _REENTRANT           printf("_REENTRANT defined\n");       #endif       #ifdef _THREAD_SAFE           printf("_THREAD_SAFE defined\n");       #endif       #ifdef _FORTIFY_SOURCE           printf("_FORTIFY_SOURCE defined\n");       #endif           exit(EXIT_SUCCESS);       }

SEE ALSO        top

libc(7),standards(7),system_data_types(7)       The section "Feature Test Macros" underinfo libc./usr/include/features.h

COLOPHON        top

       This page is part of theman-pages (Linux kernel and C library       user-space interface documentation) project.  Information about       the project can be found at        ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report       for this manual page, see       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.       This page was obtained from the tarball man-pages-6.15.tar.gz       fetched from       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on       2025-08-11.  If you discover any rendering problems in this HTML       version of the page, or you believe there is a better or more up-       to-date source for the page, or you have corrections or       improvements to the information in this COLOPHON (which isnot       part of the original manual page), send a mail to       man-pages@man7.orgLinux man-pages 6.15            2025-05-17featur..._macros(7)

Pages that refer to this page:access(2)acct(2)brk(2)chdir(2)chmod(2)chown(2)chroot(2)clock_getres(2)clock_nanosleep(2)_exit(2)fcntl(2)fsync(2)futimesat(2)getdomainname(2)getgroups(2)gethostname(2)getpagesize(2)getrlimit(2)getsid(2)gettimeofday(2)intro(2)kill(2)link(2)madvise(2)mincore(2)mkdir(2)mknod(2)nanosleep(2)nice(2)open(2)posix_fadvise(2)pread(2)process_vm_readv(2)readlink(2)readv(2)rename(2)select(2)semop(2)seteuid(2)setpgid(2)setreuid(2)sigaction(2)sigaltstack(2)signal(2)sigpending(2)sigprocmask(2)sigsuspend(2)sigwaitinfo(2)stat(2)stime(2)symlink(2)sync(2)syscall(2)timer_create(2)timer_delete(2)timer_getoverrun(2)timer_settime(2)truncate(2)unlink(2)utimensat(2)vfork(2)vhangup(2)wait(2)wait4(2)a64l(3)abs(3)acos(3)acosh(3)addseverity(3)adjtime(3)asin(3)asinh(3)atan2(3)atan(3)atanh(3)atoi(3)bsd_signal(3)cbrt(3)ceil(3)cfree(3)clearenv(3)clock_getcpuclockid(3)confstr(3)copysign(3)cos(3)cosh(3)crypt(3)ctermid(3)ctime(3)daemon(3)dirfd(3)div(3)drand48(3)drand48_r(3)duplocale(3)dysize(3)ecvt(3)ecvt_r(3)endian(3)erf(3)erfc(3)exec(3)exp2(3)exp(3)expm1(3)fabs(3)fdim(3)fexecve(3)ffs(3)fgetc(3)fgetgrent(3)fgetpwent(3)fileno(3)finite(3)flockfile(3)floor(3)fma(3)fmax(3)fmemopen(3)fmin(3)fmod(3)fopen(3)fpclassify(3)frexp(3)fseeko(3)ftw(3)futimes(3)fwide(3)gamma(3)gcvt(3)getaddrinfo(3)getcwd(3)getdate(3)getdirentries(3)getdtablesize(3)getentropy(3)getenv(3)getgrent(3)getgrent_r(3)getgrnam(3)getgrouplist(3)gethostbyname(3)gethostid(3)getline(3)getloadavg(3)getlogin(3)getmntent(3)getnameinfo(3)getnetent_r(3)getopt(3)getpass(3)getprotoent_r(3)getpwent(3)getpwent_r(3)getpwnam(3)getrpcent_r(3)gets(3)getservent_r(3)getspnam(3)getsubopt(3)getusershell(3)getutent(3)getw(3)grantpt(3)group_member(3)gsignal(3)hypot(3)ilogb(3)inet(3)inet_net_pton(3)initgroups(3)insque(3)intro(3)isalpha(3)isfdtype(3)isgreater(3)iswblank(3)j0(3)killpg(3)ldexp(3)lgamma(3)lockf(3)log10(3)log1p(3)log2(3)log(3)logb(3)lrint(3)lround(3)malloc(3)mbsnrtowcs(3)memchr(3)mkdtemp(3)mkfifo(3)mkstemp(3)mktemp(3)modf(3)mq_receive(3)mq_send(3)nan(3)newlocale(3)nextafter(3)nl_langinfo(3)off_t(3type)on_exit(3)opendir(3)open_memstream(3)perror(3)popen(3)posix_fallocate(3)posix_madvise(3)posix_memalign(3)posix_openpt(3)pow(3)printf(3)profil(3)psignal(3)pthread_attr_setstack(3)pthread_cleanup_push_defer_np(3)pthread_kill(3)pthread_mutexattr_setrobust(3)pthread_mutex_consistent(3)pthread_rwlockattr_setkind_np(3)pthread_sigmask(3)pthread_sigqueue(3)pthread_spin_init(3)pthread_spin_lock(3)ptsname(3)putenv(3)putpwent(3)qecvt(3)qsort(3)rand(3)random(3)random_r(3)rcmd(3)readdir_r(3)realpath(3)remainder(3)remquo(3)rint(3)round(3)rpmatch(3)scalb(3)scalbln(3)scandir(3)scanf(3)sched_getcpu(3)seekdir(3)sem_wait(3)setbuf(3)setenv(3)setjmp(3)setnetgrent(3)siginterrupt(3)signbit(3)significand(3)sigpause(3)sigqueue(3)sigset(3)sigsetops(3)sigvec(3)sigwait(3)sin(3)sinh(3)sockatmark(3)sqrt(3)sscanf(3)stat(3type)stpncpy(3)strcpy(3)strdup(3)strerror(3)strfromd(3)strncat(3)strnlen(3)strsep(3)strsignal(3)strtod(3)strtok(3)strtol(3)strtoul(3)syslog(3)tan(3)tanh(3)telldir(3)tempnam(3)termios(3)tgamma(3)timegm(3)timeradd(3)time_t(3type)tm(3type)tmpnam(3)toascii(3)toupper(3)towlower(3)towupper(3)trunc(3)ttyslot(3)tzset(3)ualarm(3)unlocked_stdio(3)unlockpt(3)uselocale(3)usleep(3)wcpcpy(3)wcpncpy(3)wcscasecmp(3)wcsdup(3)wcsnlen(3)wcsnrtombs(3)wordexp(3)wprintf(3)y0(3)environ(7)feature_test_macros(7)libc(7)man-pages(7)standards(7)system_data_types(7)



HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp