<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Talk%3AError_code</id>
	<title>Talk:Error code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Talk%3AError_code"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Talk:Error_code&amp;action=history"/>
	<updated>2026-10-25T21:03:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Talk:Error_code&amp;diff=1118127&amp;oldid=prev</id>
		<title>imported&gt;Guy Harris: Undid revision 1243803155 by 2404:1C40:30:BC82:1:0:E2E2:8C9C (talk) - not relevant to contents of article.</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Talk:Error_code&amp;diff=1118127&amp;oldid=prev"/>
		<updated>2024-09-03T20:57:37Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/wiki143/index.php?title=Special:Diff/1243803155&quot; title=&quot;Special:Diff/1243803155&quot;&gt;1243803155&lt;/a&gt; by &lt;a href=&quot;/wiki143/index.php?title=Special:Contributions/2404:1C40:30:BC82:1:0:E2E2:8C9C&quot; title=&quot;Special:Contributions/2404:1C40:30:BC82:1:0:E2E2:8C9C&quot;&gt;2404:1C40:30:BC82:1:0:E2E2:8C9C&lt;/a&gt; (&lt;a href=&quot;/wiki143/index.php?title=User_talk:2404:1C40:30:BC82:1:0:E2E2:8C9C&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:2404:1C40:30:BC82:1:0:E2E2:8C9C (page does not exist)&quot;&gt;talk&lt;/a&gt;) - not relevant to contents of article.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{WikiProject banner shell|class=Start|&lt;br /&gt;
{{WikiProject Computing|importance=Mid}}&lt;br /&gt;
}}&lt;br /&gt;
== Historical context ==&lt;br /&gt;
Nice to add some historical context.&lt;br /&gt;
When was the first use of Error codes? &lt;br /&gt;
When did they become popular?&lt;br /&gt;
When were they the standard? (80s I think)&lt;br /&gt;
When did exceptions start replacing them? (90s?) [[User:Aharel|Aharel]] ([[User talk:Aharel|talk]]) 11:20, 19 March 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== untitled ==&lt;br /&gt;
I&amp;#039;m yanking the &amp;quot;expansion&amp;quot; tag, since the article has grown quite significantly since it was added.  [[User:Fluzwup|scot]] 18:38, 1 December 2005 (UTC)&lt;br /&gt;
&lt;br /&gt;
This sentence needs to be translated into English &amp;quot;Error codes are often process global variables, such as &amp;#039;&amp;#039;errno&amp;#039;&amp;#039; in C. &amp;quot; It&amp;#039;s a wee bit cryptic for the average reader.  --[[User:LeeHunter|Lee Hunter]] 14:54, 11 Feb 2005 (UTC)&lt;br /&gt;
&lt;br /&gt;
: I&amp;#039;ve been a geek too long (started programming in 1980, at age 9) so it really makes my brain hurt to try to think like &amp;quot;the average reader&amp;quot;.  That phrase &amp;quot;process global variable&amp;quot; is probably worthy of several paragraphs.  It also begs the question of just how global errno is on, say, bastardized &amp;quot;cooperatively mulitprocessing&amp;quot; machines like 16 bit Windows, which ran all processes in essentially the same address space.  I&amp;#039;ve tried very hard to repress all memories of working under 16 bit Windows...  I&amp;#039;ll do some thinking on it and see if I can come up with a lower level explanation.   [[User:Fluzwup|scot]] 16:21, 11 Feb 2005 (UTC)&lt;br /&gt;
&lt;br /&gt;
The example with &amp;quot;fopen&amp;quot; uses errno, but the page [[Fopen]] does not mention errno as part of the interface.  As I understand whether fopen sets errno (even on failure) is implementation dependent (or an extension to the standard)?&lt;br /&gt;
  http://www.opengroup.org/onlinepubs/009695399/functions/fopen.html&lt;br /&gt;
  http://www.opengroup.org/onlinepubs/007908799/xsh/fopen.html&lt;br /&gt;
-- [[User:File Not Found|File Not Found]] 18:21, 2 September 2006 (UTC)&lt;br /&gt;
&lt;br /&gt;
Some discussion may be added about the correct way to handle errno in C, because it is confusing and partially implementation dependent.  I believe this is the most portable way to use errno in C.&lt;br /&gt;
&lt;br /&gt;
  // example taken from http://www.brainbell.com/tutors/c/Advice_and_Warnings_for_C/Macros_and_Miscellaneous_Pitfalls.html&lt;br /&gt;
  // in section &amp;quot;Gently Down the Stream&amp;quot;&lt;br /&gt;
 errno = 0;&lt;br /&gt;
 fileptr = fopen( ... );&lt;br /&gt;
 if ( fileptr == NULL )  {&lt;br /&gt;
   /* An error occurred in fopen()&lt;br /&gt;
   | Now it&amp;#039;s valid to examine errno&lt;br /&gt;
   */&lt;br /&gt;
   if ( errno != 0 ) {&lt;br /&gt;
   /* handle error */&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
: -- [[User:File Not Found|File Not Found]] 18:47, 2 September 2006 (UTC)&lt;/div&gt;</summary>
		<author><name>imported&gt;Guy Harris</name></author>
	</entry>
</feed>