Back to index

glibc  2.9
Functions | Variables
errnoconv.c File Reference
#include <errno.h>
#include "linux-errno.h"

Go to the source code of this file.


int __errno_aix_to_linux (int err)


static int mapping []

Function Documentation

Definition at line 132 of file errnoconv.c.

  int conv;

  if (err >= 0 && err < (sizeof (mapping) / sizeof (mapping[0]))
      && ((conv = mapping[err]) != 0 || err == 0))
    return conv;

  /* The error value is not known.  Create a special value which can
     be easily recognized as an invalid result.  */
  return 512 + err;

Here is the call graph for this function:

Variable Documentation

int mapping[] [static]

Definition at line 25 of file errnoconv.c.