aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Files.hsc
diff options
context:
space:
mode:
authorGravatar simonmar <unknown>2002-12-19 13:52:55 +0000
committerGravatar simonmar <unknown>2002-12-19 13:52:55 +0000
commitf46082b665d7748bdec2981e21d332ee90a7c1cd (patch)
treef6f6b13fc4d7b60694430ccf8be29f97bed2e57d /System/Posix/Files.hsc
parent7ad2b37cfbe3977a0a5e69c85941aa84c9e57286 (diff)
[project @ 2002-12-19 13:52:55 by simonmar]
Fill in some more bits in the new Unix library: specifically the contents of PosixTTY and PosixDB (now System.Posix.Terminal and System.Posix.User respectively). We're now about 95% complete w.r.t. the old posix library. I've identified the reminaing bits to do in System/Posix.hs.
Diffstat (limited to 'System/Posix/Files.hsc')
-rw-r--r--System/Posix/Files.hsc9
1 files changed, 2 insertions, 7 deletions
diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc
index a12b34c..660c7ae 100644
--- a/System/Posix/Files.hsc
+++ b/System/Posix/Files.hsc
@@ -15,7 +15,7 @@
module System.Posix.Files (
-- * File modes
- FileMode,
+ -- FileMode exported by System.Posix.Types
unionFileModes, intersectFileModes,
nullFileMode,
ownerReadMode, ownerWriteMode, ownerExecuteMode, ownerModes,
@@ -74,6 +74,7 @@ module System.Posix.Files (
-}
) where
+#include "HsUnix.h"
import System.Posix.Types
import System.IO.Unsafe
@@ -82,12 +83,6 @@ import GHC.Posix
import Foreign
import Foreign.C
-#include <sys/stat.h>
-#include <unistd.h>
-#include <utime.h>
-#include <fcntl.h>
-#include <limits.h>
-
-- -----------------------------------------------------------------------------
-- POSIX file modes