summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-07-27 11:57:44 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-07-27 12:04:35 +0200
commit0d1e89c38f0d99f5bab0c5a52e21d1efd87fbd76 (patch)
tree93d82fcc6300bdc6d3eaef37be46832b270639ca /libdiskfs
parent524e2fb5a031f1d7bee74abbd270ddbc8e1e334f (diff)
diskfs.h: Expose 64bit types
We build hurd with LFS64, so we should always expose LFS64 types, so callers do not have to build with -D_FILE_OFFSET_BITS=64. * libdiskfs/diskfs.h (struct peropen): Make `filepointer' field type `loff_t' instead of `off_t'. (diskfs_cached_ifind): Make `inum' parameter `ino64_t' instead of `ino_t'. (diskfs_cached_lookup_context): Likewise. * hurd/shared.h (strcut shared_io): Make `read_size', `prenotify_size', `postnotify_size', `readnotify_size', `rd_file_pointer', `wr_file_pointer', `xx_file_pointer', `file_size' fields type `loff_t' instead of `off_t'.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index f04b163a..4fdeaac2 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -57,7 +57,7 @@ struct protid
/* One of these is created for each node opened by dir_lookup. */
struct peropen
{
- off_t filepointer;
+ loff_t filepointer;
int lock_status;
refcount_t refcnt;
int openstat;
@@ -620,7 +620,7 @@ void diskfs_user_try_dropping_softrefs (struct node *np);
/* Lookup node INUM (which must have a reference already) and return it
without allocating any new references. */
-struct node *diskfs_cached_ifind (ino_t inum);
+struct node *diskfs_cached_ifind (ino64_t inum);
/* The library exports the following functions for general use */
@@ -859,7 +859,7 @@ error_t diskfs_cached_lookup (ino64_t cache_id, struct node **npp);
/* Return the node corresponding to CACHE_ID in *NPP. In case of a
cache miss, use CTX to create it and load it from the disk. See
the section `Node cache' above. */
-error_t diskfs_cached_lookup_context (ino_t inum, struct node **npp,
+error_t diskfs_cached_lookup_context (ino64_t inum, struct node **npp,
struct lookup_context *ctx);