version 1.1, 1995/10/18 08:45:41 |
version 1.2, 1995/12/14 03:23:29 |
|
|
/* $NetBSD: dir.c,v 1.8 1995/06/14 15:19:07 christos Exp $ */ |
/* $NetBSD: dir.c,v 1.9 1995/11/22 17:40:05 christos Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)dir.c 5.6 (Berkeley) 12/28/90"; |
static char sccsid[] = "@(#)dir.c 5.6 (Berkeley) 12/28/90"; |
#else |
#else |
static char rcsid[] = "$NetBSD: dir.c,v 1.8 1995/06/14 15:19:07 christos Exp $"; |
static char rcsid[] = "$NetBSD: dir.c,v 1.9 1995/11/22 17:40:05 christos Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
(void)readdir(d); |
(void)readdir(d); |
|
|
while ((dp = readdir (d)) != (struct dirent *) NULL) { |
while ((dp = readdir (d)) != (struct dirent *) NULL) { |
#ifdef sun |
#if defined(sun) && !defined(__svr4__) |
/* |
/* |
* The sun directory library doesn't check for a 0 inode |
* The sun directory library doesn't check for a 0 inode |
* (0-inode slots just take up space), so we have to do |
* (0-inode slots just take up space), so we have to do |
|
|
if (dp->d_fileno == 0) { |
if (dp->d_fileno == 0) { |
continue; |
continue; |
} |
} |
#endif /* sun */ |
#endif /* sun && !__svr4__ */ |
(void)Hash_CreateEntry(&p->files, dp->d_name, (Boolean *)NULL); |
(void)Hash_CreateEntry(&p->files, dp->d_name, (Boolean *)NULL); |
} |
} |
(void) closedir (d); |
(void) closedir (d); |