summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-12 17:38:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-12 17:38:53 +0000
commit918a0d8fdd3507daed9db0b2d059e6cc8cb25677 (patch)
tree312debefd9decd2f76e64fb6a2b75433016bc2c7 /cpukit/libfs
parent2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-918a0d8fdd3507daed9db0b2d059e6cc8cb25677.tar.bz2
2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r--cpukit/libfs/src/dosfs/fat.c4
-rw-r--r--cpukit/libfs/src/dosfs/msdos_format.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libfs/src/dosfs/fat.c b/cpukit/libfs/src/dosfs/fat.c
index 0bf3d29d28..26682dc6dd 100644
--- a/cpukit/libfs/src/dosfs/fat.c
+++ b/cpukit/libfs/src/dosfs/fat.c
@@ -351,12 +351,12 @@ fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
/* rtmes feature: no block devices, all are character devices */
if (!S_ISCHR(stat_buf.st_mode))
- rtems_set_errno_and_return_minus_one(ENOTBLK);
+ rtems_set_errno_and_return_minus_one(ENOTTY);
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
if (vol->dd == NULL)
- rtems_set_errno_and_return_minus_one(ENOTBLK);
+ rtems_set_errno_and_return_minus_one(ENOTTY);
vol->dev = stat_buf.st_rdev;
diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c
index af4a109892..c420333243 100644
--- a/cpukit/libfs/src/dosfs/msdos_format.c
+++ b/cpukit/libfs/src/dosfs/msdos_format.c
@@ -910,7 +910,7 @@ int msdos_format
/* rtems feature: no block devices, all are character devices */
if ((ret_val == 0) &&
(!S_ISCHR(stat_buf.st_mode))) {
- errno = ENOTBLK;
+ errno = ENOTTY;
ret_val = -1;
}
@@ -918,7 +918,7 @@ int msdos_format
if (ret_val == 0) {
dd = rtems_disk_obtain(stat_buf.st_rdev);
if (dd == NULL) {
- errno = ENOTBLK;
+ errno = ENOTTY;
ret_val = -1;
}
}