From 0d1e89c38f0d99f5bab0c5a52e21d1efd87fbd76 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 27 Jul 2019 11:57:44 +0200 Subject: 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'. --- libdiskfs/diskfs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdiskfs/diskfs.h') 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); -- cgit v1.2.3