summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/cd9660.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-16 14:39:40 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-16 14:39:40 +0000
commit6c92e0b11998dc315af7602ab8f9f98c2f5d8095 (patch)
tree430497a640a72b5615674ab051945ee57e8237a1 /sys/lib/libsa/cd9660.c
parentc46bb180adc2f59a65168c318cc52b3f82ff858d (diff)
opendir, readdir, closedir (define NO_READDIR, if none required)
minor fix in cd9660 only ufs working, all the others are on the list....
Diffstat (limited to 'sys/lib/libsa/cd9660.c')
-rw-r--r--sys/lib/libsa/cd9660.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/lib/libsa/cd9660.c b/sys/lib/libsa/cd9660.c
index 2ee8ac91f0f..031ec03edb8 100644
--- a/sys/lib/libsa/cd9660.c
+++ b/sys/lib/libsa/cd9660.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660.c,v 1.2 1996/12/12 08:19:25 mickey Exp $ */
+/* $OpenBSD: cd9660.c,v 1.3 1997/02/16 14:39:38 mickey Exp $ */
/* $NetBSD: cd9660.c,v 1.1 1996/09/30 16:01:19 ws Exp $ */
/*
@@ -162,6 +162,7 @@ cd9660_open(path, f)
/* First find the volume descriptor */
buf = alloc(buf_size = ISO_DEFAULT_BLOCK_SIZE);
+ dp = (struct iso_directory_record *)buf;
vd = buf;
for (bno = 16;; bno++) {
twiddle();
@@ -232,7 +233,7 @@ cd9660_open(path, f)
/* Now bno has the start of the directory that supposedly contains the file */
bno--;
- dsize = 1; /* Something stupid, but > 0 XXX */
+ dsize = 1; /* Something stupid, but > 0 XXX */
for (psize = 0; psize < dsize;) {
if (!(psize % ISO_DEFAULT_BLOCK_SIZE)) {
bno++;
@@ -398,3 +399,17 @@ cd9660_stat(f, sb)
sb->st_size = fp->size;
return 0;
}
+
+/*
+ * Not implemented.
+ */
+#ifndef NO_READDIR
+int
+cd9660_readdir(f, name)
+ struct open_file *f;
+ char *name;
+{
+ return (EROFS);
+}
+#endif
+