Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | (* Copyright (C) 2002-2005 Henry Cejtin, Matthew Fluet, Suresh |
2 | * Jagannathan, and Stephen Weeks. | |
3 | * | |
4 | * MLton is released under a BSD-style license. | |
5 | * See the file MLton-LICENSE for details. | |
6 | *) | |
7 | ||
8 | functor PosixFileSysConvert | |
9 | (structure FileSys: POSIX_FILE_SYS) : | |
10 | POSIX_FILE_SYS_1997 = | |
11 | struct | |
12 | open FileSys | |
13 | val readdir = fn d => | |
14 | case readdir d of | |
15 | NONE => "" | |
16 | | SOME s => s | |
17 | structure S = | |
18 | struct | |
19 | open S | |
20 | structure Flags = FlagsConvert(structure Flags = S) | |
21 | open Flags | |
22 | end | |
23 | structure O = | |
24 | struct | |
25 | open O | |
26 | structure Flags = FlagsConvert(structure Flags = O) | |
27 | open Flags | |
28 | end | |
29 | end |