From 918a0d8fdd3507daed9db0b2d059e6cc8cb25677 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 12 Jun 2009 17:38:53 +0000 Subject: 2009-06-12 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. --- cpukit/libfs/src/dosfs/msdos_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libfs/src/dosfs/msdos_format.c') 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; } } -- cgit v1.2.3