Changeset f40ddad in rtems


Ignore:
Timestamp:
Sep 25, 2008, 2:17:53 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
8f07770
Parents:
fac2a48
Message:

2008-09-25 Joel Sherrill <joel.sherrill@…>

  • libfs/src/imfs/deviceio.c: Eliminate duplicate implementation.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rfac2a48 rf40ddad  
     12008-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libfs/src/imfs/deviceio.c: Eliminate duplicate implementation.
     4
    152008-09-24      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • cpukit/libfs/src/imfs/deviceio.c

    rfac2a48 rf40ddad  
    2929 * Convert RTEMS status to a UNIX errno
    3030 */
    31 
    32 const rtems_assoc_t errno_assoc[] = {
    33     { "OK",                 RTEMS_SUCCESSFUL,                0 },
    34     { "BUSY",               RTEMS_RESOURCE_IN_USE,           EBUSY },
    35     { "INVALID NAME",       RTEMS_INVALID_NAME,              EINVAL },
    36     { "NOT IMPLEMENTED",    RTEMS_NOT_IMPLEMENTED,           ENOSYS },
    37     { "TIMEOUT",            RTEMS_TIMEOUT,                   ETIMEDOUT },
    38     { "NO MEMORY",          RTEMS_NO_MEMORY,                 ENOMEM },
    39     { "NO DEVICE",          RTEMS_UNSATISFIED,               ENODEV },
    40     { "INVALID NUMBER",     RTEMS_INVALID_NUMBER,            EBADF},
    41     { "NOT RESOURCE OWNER", RTEMS_NOT_OWNER_OF_RESOURCE,     EPERM},
    42     { "IO ERROR",           RTEMS_IO_ERROR,                  EIO},
    43     { 0, 0, 0 },
    44 };
    45 
    46 static int
    47 rtems_deviceio_errno(rtems_status_code code)
    48 {
    49     int rc;
    50 
    51     if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code)))
    52     {
    53         errno = rc;
    54         return -1;
    55     }
    56     return -1;
    57 }
     31extern int rtems_deviceio_errno(rtems_status_code code);
    5832
    5933/*
Note: See TracChangeset for help on using the changeset viewer.