From 45547e156dbc4c6a05af358b92658c5077c528f1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 5 Jan 1997 23:38:50 +0000 Subject: [PATCH] Add new procedure to get all of the information from the directory reader. --- v7/src/microcode/ntfs.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/v7/src/microcode/ntfs.c b/v7/src/microcode/ntfs.c index e739d0c28..6adc6e0de 100644 --- a/v7/src/microcode/ntfs.c +++ b/v7/src/microcode/ntfs.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ntfs.c,v 1.13 1997/01/01 22:57:24 cph Exp $ +$Id: ntfs.c,v 1.14 1997/01/05 23:38:50 cph Exp $ Copyright (c) 1992-97 Massachusetts Institute of Technology @@ -307,6 +307,17 @@ DEFUN (OS_directory_read_matching, (index, prefix), } } +int +win32_directory_read (unsigned int index, WIN32_FIND_DATA * info) +{ + nt_dir * dir = (REFERENCE_DIRECTORY (index)); + if ((dir == 0) || (! (dir -> more))) + return (0); + (*info) = (dir -> entry); + (dir -> more) = (FindNextFile ((dir -> handle), (& (dir -> entry)))); + return (1); +} + void DEFUN (OS_directory_close, (index), unsigned int index) { -- 2.25.1