1/*
2 * modified for Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*
8 * Copyright (c) 1989, 1993
--- 28 unchanged lines hidden (view full) ---
37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 * SUCH DAMAGE.
43 *
44 * @(#)ufs_lookup.c 8.6 (Berkeley) 4/1/94
45 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_lookup.c 111119 2003-02-19 05:47:46Z imp $
46 */
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/namei.h>
51#include <sys/bio.h>
52#include <sys/buf.h>
53#include <sys/mount.h>
--- 163 unchanged lines hidden (view full) ---
217 dstdp.d_namlen);
218
219 if (dp->rec_len > 0) {
220 if(dstdp.d_reclen <= uio->uio_resid) {
221 /* advance dp */
222 dp = (struct ext2_dir_entry_2 *)
223 ((char *)dp + dp->rec_len);
224 error =
225 uiomove((caddr_t)&dstdp,
226 dstdp.d_reclen, uio);
227 if (!error)
228 ncookies++;
229 } else
230 break;
231 } else {
232 error = EIO;
233 break;
234 }
--- 876 unchanged lines hidden ---
2 * modified for Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*
8 * Copyright (c) 1989, 1993
--- 28 unchanged lines hidden (view full) ---
37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 * SUCH DAMAGE.
43 *
44 * @(#)ufs_lookup.c 8.6 (Berkeley) 4/1/94
45 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_lookup.c 111119 2003-02-19 05:47:46Z imp $
46 */
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/namei.h>
51#include <sys/bio.h>
52#include <sys/buf.h>
53#include <sys/mount.h>
--- 163 unchanged lines hidden (view full) ---
217 dstdp.d_namlen);
218
219 if (dp->rec_len > 0) {
220 if(dstdp.d_reclen <= uio->uio_resid) {
221 /* advance dp */
222 dp = (struct ext2_dir_entry_2 *)
223 ((char *)dp + dp->rec_len);
224 error =
225 uiomove((caddr_t)&dstdp,
226 dstdp.d_reclen, uio);
227 if (!error)
228 ncookies++;
229 } else
230 break;
231 } else {
232 error = EIO;
233 break;
234 }
--- 876 unchanged lines hidden ---