File:  [Research Unix] / researchv10no / netfs / serv / resdir.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/*
 * read directories, research-style
 * uses dirread system call, which does just what we want
 */

#include <rf.h>
#include "zarf.h"

long lseek();

dodirread(f, buf, size, off, offp)
register Rfile *f;
char *buf;
int size;
long off;
long *offp;
{
	extern int errno;
	int n;

	lseek(fsp(f)->fd, off, 0);
	if ((n = dirread(fsp(f)->fd, buf, size)) < 0)
		fserrno = errno;
	else
		*offp = lseek(fsp(f)->fd, 0L, 1);
	return (n);
}

dodircleanup(f)
Rfile *f;
{
	/* nothing to do */
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.