| version 1.10, 1995/08/24 05:26:35 |
version 1.10.4.1, 1996/09/16 18:40:22 |
| Line 44 static char rcsid[] = "$NetBSD$"; |
|
| Line 44 static char rcsid[] = "$NetBSD$"; |
|
| #endif |
#endif |
| #endif /* LIBC_SCCS and not lint */ |
#endif /* LIBC_SCCS and not lint */ |
| |
|
| |
#include "namespace.h" |
| #include <sys/types.h> |
#include <sys/types.h> |
| |
|
| #include <ctype.h> |
#include <ctype.h> |
| Line 248 getent(cap, len, db_array, fd, name, dep |
|
| Line 249 getent(cap, len, db_array, fd, name, dep |
|
| */ |
*/ |
| |
|
| if (fd >= 0) { |
if (fd >= 0) { |
| (void)lseek(fd, (off_t)0, L_SET); |
(void)lseek(fd, (off_t)0, SEEK_SET); |
| myfd = 0; |
myfd = 0; |
| } else { |
} else { |
| (void)snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p); |
(void)snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p); |