Changeset 9320


Ignore:
Timestamp:
Apr 28, 2008, 8:27:37 AM (11 years ago)
Author:
gb
Message:

Add (wide-char) directory-access functions (statically linkged from
mingw lib.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/windows-calls.c

    r8961 r9320  
    3939#include <windows.h>
    4040#include <psapi.h>
     41#include <dirent.h>
    4142
    4243#define WSYSCALL_RETURN(form) \
     
    114115}
    115116
     117_WDIR *
     118windows_opendir(wchar_t *path)
     119{
     120  return _wopendir(path);
     121}
     122
     123struct _wdirent *
     124windows_readdir(_WDIR *dir)
     125{
     126  return _wreaddir(dir);
     127}
     128
     129__int64
     130windows_closedir(_WDIR *dir)
     131{
     132  WSYSCALL_RETURN(_wclosedir(dir));
     133}
    116134
    117135void *
     
    125143  windows_stat,
    126144  windows_fstat,
    127   windows_ftruncate
     145  windows_ftruncate,
     146  windows_opendir,
     147  windows_readdir,
     148  windows_closedir
    128149};
    129150
Note: See TracChangeset for help on using the changeset viewer.