aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Files.hsc
diff options
context:
space:
mode:
authorGravatar Simon Marlow <simonmar@microsoft.com>2007-03-05 11:33:16 +0000
committerGravatar Simon Marlow <simonmar@microsoft.com>2007-03-05 11:33:16 +0000
commit7b8f8d32be1a6b14317a6373bc4a40b03285aa4d (patch)
tree34b31b6bdcb7a0df3bfcdf2df53a7b985ae7b8f8 /System/Posix/Files.hsc
parentf8f660d5c519a804ff984f343997dfaa8d4a1739 (diff)
export the file-type modes, so that createDevice can be used
Diffstat (limited to 'System/Posix/Files.hsc')
-rw-r--r--System/Posix/Files.hsc6
1 files changed, 5 insertions, 1 deletions
diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc
index 0c80c07..9f85c18 100644
--- a/System/Posix/Files.hsc
+++ b/System/Posix/Files.hsc
@@ -33,6 +33,9 @@ module System.Posix.Files (
otherReadMode, otherWriteMode, otherExecuteMode, otherModes,
setUserIDMode, setGroupIDMode,
stdFileMode, accessModes,
+ fileTypeModes,
+ blockSpecialMode, characterSpecialMode, namedPipeMode, regularFileMode,
+ directoryMode, symbolicLinkMode, socketMode,
-- ** Setting file modes
setFileMode, setFdMode, setFileCreationMask,
@@ -410,7 +413,8 @@ createNamedPipe name mode = do
throwErrnoPathIfMinus1_ "createNamedPipe" name (c_mkfifo s mode)
-- | @createDevice path mode dev@ creates either a regular or a special file
--- depending on the value of @mode@ (and @dev@). May fail with
+-- depending on the value of @mode@ (and @dev@). @mode@ will normally be either
+-- 'blockSpecialMode' or 'characterSpecialMode'. May fail with
-- 'throwErrnoPathIfMinus1_' if a file named @name@ already exists or if the
-- effective user ID of the current process doesn't have permission to create
-- the file.