Exemple #1
0
/*
 * nlist - retreive attributes from name list (string table version)
 *         [The actual work is done in ../common/_nlist.c]
 */
int
nlist(char *name, struct nlist *list)
{
	int fd;

	fd = open(name, O_RDONLY, 0);
	(void) _nlist(fd, list);
	close(fd);
	return (0);
}
Exemple #2
0
/*
 * nlist - retreive attributes from name list (string table version)
 *         [The actual work is done in ../common/_nlist.c]
 */
int
nlist(char *name, struct nlist *list)
{
	int fd;
	int e;

	fd = open(name, O_RDONLY, 0);
	e = _nlist(fd, list);
	close(fd);
	return (e);
}