Errno.h

Errno.h

errno.h is a header file in the standard library of C programming language. It defines macros to report error conditions through error codes.

The errno macro expands to an lvalue with type int, containing the last error code generated in any function using the errno facility.

Three macros expand to integer constants which represent the error codes:
* EDOM results from a parameter outside a function's domain, for example sqrt(-1)
* ERANGE results from a result outside a function's range, for example strtol("0xfffffffff",NULL,0)
* EILSEQ results from an illegal character sequence, for example wcstombs(str, L"xffff", 2)

POSIX compliant operating systems like UNIX or Linux may include other macros to represent other operating system error code numbers.

On December 19, 2003 the SCO Group issued DMCA notices to selected Fortune 1000 companies, alleging the errno.h file was copied from UNIX into Linux without authorization. Linus Torvalds, the creator and trademark holder of Linux, has denied SCO's claim, saying he wrote the code for Linux's version himself. See Error codes in Linux for standard error codes in Linux.

ee also

*C standard library
*SCO v. IBM Linux lawsuit
*stdio.h (for perror)
*string.h (for strerror)

External links

*man|bd|errno.h|SUS|system error numbers
* [http://www.ussg.iu.edu/hypermail/linux/kernel/0312.2/1241.html Linus Torvalds's commentary on errno.h]
* [http://healconsulting.com/SCO/sco-letter.html#table Commentary on the SCO Dec 2003 ABI Files letter, including a detailed analysis of the history of errno.h]
* [http://www.groklaw.net/article.php?story=20040221192536920 Warren Toomey, of the UNIX Heritage Society, traces the history of errno.h in Unix and Linux]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Errno.h — Saltar a navegación, búsqueda errno.h es un archivo de cabecera en la biblioteca estándar del lenguaje de programación C. En ella se definen las macros que presentan un informe de error a través de códigos de error. La macro errno se expande a un …   Wikipedia Español

  • Errno.h — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h stdint.h stdio.h stdlib.h …   Википедия

  • errno.h — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h …   Википедия

  • Errno — …   Википедия

  • — Wikimedia Foundation Error العربية Bahasa Indonesia Česky Dansk Deutsch Eesti Ελληνικά English Español …   Википедия

  • Código de error — En programación, los códigos de error son mensajes numerados que corresponden a errores en una aplicación específica. Se usan a menudo para identificar fallos de hardware, software o una entrada de datos incorrecta del usuario, en lenguajes de… …   Wikipedia Español

  • Error code — In computer programming, error codes are enumerated messages that correspond to faults in a specific software application. They are typically used to identify faulty hardware, software, or incorrect user input in programming languages that lack… …   Wikipedia

  • dirent.h — C POSIX library assert.h complex.h ctype.h dirent.h dlfcn.h errno.h …   Wikipedia

  • Код ошибки — (англ. Error code) в программировании,  это номер (или сочетания буквы и номера), который соответствует конкретной проблеме в работе программы. Коды ошибок используются для идентификации неправильной работы аппаратного и программного… …   Википедия

  • Berkeley sockets — The Berkeley sockets application programming interface (API) comprises a library for developing applications in the C programming language that perform inter process communication, most commonly across a computer network.Berkeley sockets (also… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”