Files
Arquivotheca.SunOS-4.1.4/lib/libc/gen/4.2/nlist.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

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);
}