aboutsummaryrefslogtreecommitdiff
path: root/tmpfs/tmpfs.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2000-12-30 19:11:29 +0000
committerMarcus Brinkmann <marcus@gnu.org>2000-12-30 19:11:29 +0000
commitfc97341f492be10f20e4c8a639614e0230d53471 (patch)
tree9a7e96773e4a3ff98615b191cffa77eba963cbc3 /tmpfs/tmpfs.h
parente2fc83f2ce5271d740602b0fa0c1f6681bccb823 (diff)
downloadhurd-fc97341f492be10f20e4c8a639614e0230d53471.tar.gz
hurd-fc97341f492be10f20e4c8a639614e0230d53471.tar.bz2
hurd-fc97341f492be10f20e4c8a639614e0230d53471.zip
2000-12-30 Marcus Brinkmann <marcus@gnu.org>
* dir.c: Include <stddef.h>, <unistd.h>, <sys/mman.h> (diskfs_get_directs): Cast *data to struct dirent *. * node.c: Include <stddef.h>. (diskfs_alloc_node): Remove unused variables err, st, np. (diskfs_free_node): Use *np->dn, not *dn to calculate used space. (recompute_blocks): Replace DT_DEV with DT_BLK. (diskfs_node_norefs): Likewise. (recompute_blocks): Take address of np->dn_stat for pointer st. (diskfs_cached_lookup): New variable st. (diskfs_cached_lookup): Set st to &np->dn_stat, not &dn->dn_stat. (create_symlink_hook): Fix malloc call and return code check. (read_symlink_hook): Return 0. * tmpfs.c: Include <argp.h>, <string.h>, <inttypes.h>, <argz.h>, <error.h>. (parse_opt): Reverse second and third argument of strtoimax call. * tmpfs.h (struct disknode): Remove blind passenger (unnamed copy of anonymous struct {} reg). Some of the above were also reported by Alexey Dejneka <adejneka@comail.ru>.
Diffstat (limited to 'tmpfs/tmpfs.h')
-rw-r--r--tmpfs/tmpfs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/tmpfs/tmpfs.h b/tmpfs/tmpfs.h
index 19f05de5..4fb418a2 100644
--- a/tmpfs/tmpfs.h
+++ b/tmpfs/tmpfs.h
@@ -51,11 +51,6 @@ struct disknode
} reg;
struct
{
- mach_port_t memobj;
- unsigned int allocpages; /* largest size while memobj was live */
- };
- struct
- {
struct tmpfs_dirent *entries;
struct disknode *dotdot;
} dir;