summaryrefslogtreecommitdiffstats
path: root/fs/openpromfs
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-08-28 22:00:09 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-08-28 22:00:09 +0000
commit1a1d77dd589de5a567fa95e36aa6999c704ceca4 (patch)
tree141e31f89f18b9fe0831f31852e0435ceaccafc5 /fs/openpromfs
parentfb9c690a18b3d66925a65b17441c37fa14d4370b (diff)
Merge with 2.4.0-test7.
Diffstat (limited to 'fs/openpromfs')
-rw-r--r--fs/openpromfs/inode.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
index abd6ec28e..e264dd3d3 100644
--- a/fs/openpromfs/inode.c
+++ b/fs/openpromfs/inode.c
@@ -1,4 +1,4 @@
-/* $Id: inode.c,v 1.12 2000/07/13 08:06:42 davem Exp $
+/* $Id: inode.c,v 1.13 2000/08/12 13:25:46 davem Exp $
* openpromfs.c: /proc/openprom handling routines
*
* Copyright (C) 1996-1999 Jakub Jelinek (jakub@redhat.com)
@@ -757,14 +757,14 @@ static int openpromfs_readdir(struct file * filp, void * dirent, filldir_t filld
i = filp->f_pos;
switch (i) {
case 0:
- if (filldir(dirent, ".", 1, i, ino) < 0) return 0;
+ if (filldir(dirent, ".", 1, i, ino, DT_DIR) < 0) return 0;
i++;
filp->f_pos++;
/* fall thru */
case 1:
if (filldir(dirent, "..", 2, i,
(NODE(ino).parent == 0xffff) ?
- OPENPROM_ROOT_INO : NODE2INO(NODE(ino).parent)) < 0)
+ OPENPROM_ROOT_INO : NODE2INO(NODE(ino).parent), DT_DIR) < 0)
return 0;
i++;
filp->f_pos++;
@@ -780,14 +780,14 @@ static int openpromfs_readdir(struct file * filp, void * dirent, filldir_t filld
if (prom_getname (nodes[node].node, buffer, 128) < 0)
return 0;
if (filldir(dirent, buffer, strlen(buffer),
- filp->f_pos, NODE2INO(node)) < 0)
+ filp->f_pos, NODE2INO(node), DT_DIR) < 0)
return 0;
filp->f_pos++;
node = nodes[node].next;
}
j = NODEP2INO(NODE(ino).first_prop);
if (!i) {
- if (filldir(dirent, ".node", 5, filp->f_pos, j) < 0)
+ if (filldir(dirent, ".node", 5, filp->f_pos, j, DT_REG) < 0)
return 0;
filp->f_pos++;
} else
@@ -798,7 +798,7 @@ static int openpromfs_readdir(struct file * filp, void * dirent, filldir_t filld
if (alias_names [i]) {
if (filldir (dirent, alias_names [i],
strlen (alias_names [i]),
- filp->f_pos, j) < 0) return 0;
+ filp->f_pos, j, DT_REG) < 0) return 0;
filp->f_pos++;
}
}
@@ -810,7 +810,7 @@ static int openpromfs_readdir(struct file * filp, void * dirent, filldir_t filld
if (i) i--;
else {
if (filldir(dirent, p, strlen(p),
- filp->f_pos, j) < 0)
+ filp->f_pos, j, DT_REG) < 0)
return 0;
filp->f_pos++;
}