summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-06-14 20:01:18 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-06-14 20:01:18 +0000
commit02169f7d864c8f46253cec3360140b63b4d380fa (patch)
tree5cd999b60122a58daf2fadcf276cd8456cabfb42 /libdiskfs
parent9aac30815b19e42281cfd2b13d04be876bd94cc5 (diff)
Formerly diskfs.h.~26~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 70af633f..aa9bbdf7 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -271,6 +271,16 @@ error_t diskfs_dirremove (struct node *dp, struct dirstat *ds);
the call to diskfs_lookup. */
error_t diskfs_drop_dirstat (struct node *dp, struct dirstat *ds);
+/* The user must define this function. Return N directory entries
+ starting at ENTRY from locked directory node DP. Fill *DATA with
+ the entries; that pointer currently points to *DATACNT bytes. If
+ it isn't big enough, vm_allocate into *DATA. Set *DATACNT with the
+ total size used. Fill AMT with the number of entries copied.
+ Regardless, never copy more than BUFSIZ bytes. */
+error_t diskfs_get_directs (struct node *dp, int entry, int n,
+ char **data, u_int *datacnt,
+ vm_size_t bufsiz, int *amt);
+
/* The user must define this function. For locked node NP, return nonzero
iff there is a translator program defined for the node. */
int diskfs_node_translated (struct node *np);