GO-V.ORG
As seen in

Errno.h

is a header file in the standard library of the C programming language.[src] It defines macros for reporting and retrieving error conditions using the symbol errno (short form for "error number").[src] errno acts like an integer variable.[src] A value (the error number) is stored in errno by certain library functions when they detect errors.[src] At program startup, the value stored is zero.[src] Library functions store only values greater than zero.[src] Any library function can alter the value stored before return, whether or not they detect errors.[src] Most functions indicate that they detected an error by returning a special value, typically for functions that return pointers, and for functions that return integers.[src] A few functions require the caller to preset errno to zero and test it afterwards to see if an error was detected.[src] The errno macro expands to an lvalue with type int , sometimes with the extern and/or volatile type specifiers depending upon the platform.[src] Originally this was a static memory location, but macros are almost always used today to allow for multi-threading, so that each thread will see its own thread-local error number.[src] The header file also defines macros that expand to integer constants that represent the error codes.…[src]

is a header file in the standard library of the C programming language.[src] It defines macros for reporting and retrieving error conditions using the symbol errno (short form for "error number").[src] errno acts like an integer variable.[src] A value (the error number) is stored in errno by certain library functions when they detect errors.[src] At program startup, the value stored is zero.[src] Library functions store only values greater than zero.[src] Any library function can alter the value stored before return, whether or not they detect errors.[src] Most functions indicate that they detected an error by returning a special value, typically for functions that return pointers, and for functions that return integers.[src] A few functions require the caller to preset errno to zero and test it afterwards to see if an error was detected.[src] The errno macro expands to an lvalue with type int , sometimes with the extern and/or volatile type specifiers depending upon the platform.[src] Originally this was a static memory location, but macros are almost always used today to allow for multi-threading, so that each thread will see its own thread-local error number.[src] The header file also defines macros that expand to integer constants that represent the error codes.[src] The C standard library only requires three to be defined: POSIX compliant operating systems like AIX, Linux or Solaris include many other error values, many of which are used much more often than the above ones, such as for when a file cannot be opened for reading.[src] C++11 additionally defines many of the same values found within the POSIX specification.[src] Traditionally, the first page of Unix system manuals, named intro(2), lists all errno.h macros, but this is not the case with Linux, where these macros are instead listed in the errno(3).[src] An can be translated to a descriptive string using (defined in ) or a BSD extension called .[src] The translation can be printed directly to the standard error stream using (defined in ).[src] As in many Unix-like systems is not thread-safe, a thread-safe version is used, but conflicting definitions from POSIX and GNU makes it even less portable than the table.[src] ==References== ==External links== GNU C library manual: Error codes Lists of errno values on Linux, both numeric and symbolic[src]

31 sentences · 31 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Errno.h." encyclopegia.org, 2026, https://encyclopegia.org/wiki/errno-h. Accessed 04 December 2026.

Chicago

"Errno.h." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/errno-h.

APA

encyclopegia.org. (2026). Errno.h. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/errno-h

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377122775 · 0.5 · snapshot enwiki-001377122775

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.