aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Files.hsc
diff options
context:
space:
mode:
authorGravatar Simon Marlow <marlowsd@gmail.com>2008-08-21 14:47:54 +0000
committerGravatar Simon Marlow <marlowsd@gmail.com>2008-08-21 14:47:54 +0000
commitc1180fec9f1121323b519ea86fd730b29f1b2f6d (patch)
tree9ce4b4527c5d6428eaa08078077254dc5ab303fd /System/Posix/Files.hsc
parent1e118d9a64e928a07f9c7c3a64b4b22e5fca821c (diff)
move some stuff here from System.Directory, now the dependencies are reversed
Diffstat (limited to 'System/Posix/Files.hsc')
-rw-r--r--System/Posix/Files.hsc3
1 files changed, 3 insertions, 0 deletions
diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc
index c15c92c..bc61255 100644
--- a/System/Posix/Files.hsc
+++ b/System/Posix/Files.hsc
@@ -502,6 +502,9 @@ rename name1 name2 =
withCString name2 $ \s2 ->
throwErrnoPathIfMinus1_ "rename" name1 (c_rename s1 s2)
+foreign import ccall unsafe "rename"
+ c_rename :: CString -> CString -> IO CInt
+
-- -----------------------------------------------------------------------------
-- chown()