27 lines
484 B
C
27 lines
484 B
C
#if !defined(lint) && defined(SCCSIDS)
|
|
static char sccsid[] = "@(#)nlist.c 1.1 94/10/31 SMI";
|
|
#endif
|
|
|
|
/*
|
|
* Copyright (c) 1987 Sun Microsystems, Inc.
|
|
*/
|
|
|
|
#include <sys/file.h>
|
|
|
|
/*
|
|
* nlist - retreive attributes from name list (string table version)
|
|
* [The actual work is done in ../common/_nlist.c]
|
|
*/
|
|
nlist(name, list)
|
|
char *name;
|
|
struct nlist *list;
|
|
{
|
|
register int fd;
|
|
register int e;
|
|
|
|
fd = open(name, O_RDONLY, 0);
|
|
e = _nlist(fd, list);
|
|
close(fd);
|
|
return (e);
|
|
}
|