Changeset 918a0d8 in rtems


Ignore:
Timestamp:
Jun 12, 2009, 5:38:53 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
84d7499
Parents:
5c15be81
Message:

2009-06-12 Joel Sherrill <joel.sherrill@…>

  • libblock/src/flashdisk.c, libblock/src/nvdisk.c, libblock/src/ramdisk.c, libfs/src/dosfs/fat.c, libfs/src/dosfs/msdos_format.c: Eliminate using the GNU/Linux specific error numbers EBADRQC and ENOTBLK. Switch to EINVAL and ENOTTY as appropriate.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r5c15be81 r918a0d8  
     12009-06-12      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libblock/src/flashdisk.c, libblock/src/nvdisk.c,
     4        libblock/src/ramdisk.c, libfs/src/dosfs/fat.c,
     5        libfs/src/dosfs/msdos_format.c: Eliminate using the GNU/Linux
     6        specific error numbers EBADRQC and ENOTBLK. Switch to EINVAL and
     7        ENOTTY as appropriate.
     8
    192009-06-12      Chris Johns <chrisj@rtems.org>
    210
  • cpukit/libblock/src/flashdisk.c

    r5c15be81 r918a0d8  
    23792379       
    23802380            default:
    2381               errno = EBADRQC;
     2381              errno = EINVAL;
    23822382              break;
    23832383          }
     
    24112411
    24122412      default:
    2413         errno = EBADRQC;
     2413        errno = EINVAL;
    24142414        break;
    24152415    }
  • cpukit/libblock/src/nvdisk.c

    r5c15be81 r918a0d8  
    731731           
    732732          default:
    733             errno = EBADRQC;
     733            errno = EINVAL;
    734734            break;
    735735        }
     
    745745       
    746746      default:
    747         errno = EBADRQC;
     747        errno = EINVAL;
    748748        break;
    749749    }
  • cpukit/libblock/src/ramdisk.c

    r5c15be81 r918a0d8  
    202202
    203203                default:
    204                     errno = EBADRQC;
     204                    errno = EINVAL;
    205205                    return -1;
    206206            }
     
    209209
    210210        default:
    211             errno = EBADRQC;
     211            errno = EINVAL;
    212212            return -1;
    213213    }
  • cpukit/libfs/src/dosfs/fat.c

    r5c15be81 r918a0d8  
    352352    /* rtmes feature: no block devices, all are character devices */
    353353    if (!S_ISCHR(stat_buf.st_mode))
    354         rtems_set_errno_and_return_minus_one(ENOTBLK);
     354        rtems_set_errno_and_return_minus_one(ENOTTY);
    355355
    356356    /* check that device is registred as block device and lock it */
    357357    vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
    358358    if (vol->dd == NULL)
    359         rtems_set_errno_and_return_minus_one(ENOTBLK);
     359        rtems_set_errno_and_return_minus_one(ENOTTY);
    360360
    361361    vol->dev = stat_buf.st_rdev;
  • cpukit/libfs/src/dosfs/msdos_format.c

    r5c15be81 r918a0d8  
    911911  if ((ret_val == 0) &&
    912912      (!S_ISCHR(stat_buf.st_mode))) {
    913     errno = ENOTBLK;
     913    errno = ENOTTY;
    914914    ret_val = -1;
    915915  }
     
    919919    dd = rtems_disk_obtain(stat_buf.st_rdev);
    920920    if (dd == NULL) {
    921       errno = ENOTBLK;
     921      errno = ENOTTY;
    922922      ret_val = -1;
    923923    }
Note: See TracChangeset for help on using the changeset viewer.