summaryrefslogtreecommitdiffstats
path: root/lib/libstand/dosfs.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-10-06 19:23:57 +0000
committermsmith <msmith@FreeBSD.org>1998-10-06 19:23:57 +0000
commit28bef97c3eada8f5d78d30f575213106f74e2ad2 (patch)
treef4e1dbcd54159aeaaaf9a7cd95aca0733dfdc8a4 /lib/libstand/dosfs.c
parent685a5b889f6d81b2b242340f505aceacc862b28e (diff)
downloadFreeBSD-src-28bef97c3eada8f5d78d30f575213106f74e2ad2.zip
FreeBSD-src-28bef97c3eada8f5d78d30f575213106f74e2ad2.tar.gz
Enable the DOS filesystem. This allows reading from various DOS filesystems
(FAT12/16/32, VFAT). Make a private copy of strcasecmp, as the "real" one uses the system ctype header, which introduces locale poisoning.
Diffstat (limited to 'lib/libstand/dosfs.c')
-rw-r--r--lib/libstand/dosfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/dosfs.c b/lib/libstand/dosfs.c
index e2d24ee..c68b658 100644
--- a/lib/libstand/dosfs.c
+++ b/lib/libstand/dosfs.c
@@ -39,7 +39,7 @@
#include "dosfs.h"
-static int dos_open(char *path, struct open_file *fd);
+static int dos_open(const char *path, struct open_file *fd);
static int dos_close(struct open_file *fd);
static int dos_read(struct open_file *fd, void *buf, size_t size, size_t *resid);
static off_t dos_seek(struct open_file *fd, off_t offset, int whence);
@@ -185,7 +185,7 @@ dosunmount(DOS_FS *fs)
* Open DOS file
*/
static int
-dos_open(char *path, struct open_file *fd)
+dos_open(const char *path, struct open_file *fd)
{
DOS_DE *de;
DOS_FILE *f;
OpenPOWER on IntegriCloud