| version 1.6, 1997/07/13 19:00:40 |
version 1.7, 1997/07/21 14:07:04 |
| Line 42 __RCSID("$NetBSD$"); |
|
| Line 42 __RCSID("$NetBSD$"); |
|
| #endif |
#endif |
| #endif /* LIBC_SCCS and not lint */ |
#endif /* LIBC_SCCS and not lint */ |
| |
|
| |
#include "namespace.h" |
| #include <sys/param.h> |
#include <sys/param.h> |
| #include <sys/stat.h> |
#include <sys/stat.h> |
| |
|
| #include <errno.h> |
#include <errno.h> |
| #include <dirent.h> |
#include <dirent.h> |
| #include <stdio.h> |
#include <stdio.h> |
| Line 52 __RCSID("$NetBSD$"); |
|
| Line 52 __RCSID("$NetBSD$"); |
|
| #include <string.h> |
#include <string.h> |
| #include <unistd.h> |
#include <unistd.h> |
| |
|
| |
#ifdef __weak_alias |
| |
__weak_alias(getcwd,_getcwd); |
| |
#endif |
| |
|
| #define ISDOT(dp) \ |
#define ISDOT(dp) \ |
| (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ |
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ |
| (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) |
(dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) |