| version 1.8, 1994/03/26 02:51:45 |
version 1.9, 1995/02/25 13:41:26 |
|
|
| |
/* $NetBSD$ */ |
| |
|
| /*- |
/*- |
| * Copyright (c) 1992 The Regents of the University of California. |
* Copyright (c) 1992, 1993 |
| * All rights reserved. |
* The Regents of the University of California. All rights reserved. |
| * |
* |
| * This code is derived from software contributed to Berkeley by |
* This code is derived from software contributed to Berkeley by |
| * Casey Leedom of Lawrence Livermore National Laboratory. |
* Casey Leedom of Lawrence Livermore National Laboratory. |
|
|
| */ |
*/ |
| |
|
| #if defined(LIBC_SCCS) && !defined(lint) |
#if defined(LIBC_SCCS) && !defined(lint) |
| /*static char *sccsid = "from: @(#)getcap.c 5.15 (Berkeley) 3/19/93";*/ |
#if 0 |
| static char *rcsid = "$Id$"; |
static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; |
| |
#else |
| |
static char rcsid[] = "$NetBSD$"; |
| |
#endif |
| #endif /* LIBC_SCCS and not lint */ |
#endif /* LIBC_SCCS and not lint */ |
| |
|
| #include <sys/types.h> |
#include <sys/types.h> |
| Line 254 getent(cap, len, db_array, fd, name, dep |
|
| Line 259 getent(cap, len, db_array, fd, name, dep |
|
| if (retval < 0) { |
if (retval < 0) { |
| /* no record available */ |
/* no record available */ |
| (void)capdbp->close(capdbp); |
(void)capdbp->close(capdbp); |
| return (retval); |
return (retval); |
| } |
} |
| /* save the data; close frees it */ |
/* save the data; close frees it */ |
| clen = strlen(record); |
clen = strlen(record); |