/usr/lib/hugs/oldlib/PosixFiles.lhs is in hugs 98.200609.21-5.4+b3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | %
% (c) The GRASP/AQUA Project, Glasgow University, 1995-1996
%
\section[PosixFiles]{Haskell 1.3 POSIX File and Directory Operations}
\begin{code}
{-# OPTIONS -#include "HsPosix.h" #-}
module PosixFiles
{-# DEPRECATED "This functionality is now available from System.Posix.Directory and System.Posix.Files" #-}
(
-- Directory streams
DirStream,
openDirStream, closeDirStream,
readDirStream, rewindDirStream,
-- set/get process' working directory.
getWorkingDirectory, changeWorkingDirectory,
-- File modes/permissions
FileMode,
nullFileMode,
ownerReadMode, ownerWriteMode, ownerExecuteMode, ownerModes,
groupReadMode, groupWriteMode, groupExecuteMode, groupModes,
otherReadMode, otherWriteMode, otherExecuteMode, otherModes,
setUserIDMode, setGroupIDMode,
stdFileMode, accessModes,
unionFileModes, intersectFileModes,
-- File operations on descriptors
stdInput, stdOutput, stdError,
OpenMode(..),
OpenFileFlags(..), defaultFileFlags,
openFd, createFile,
-- other file&directory operations
setFileCreationMask,
createLink, removeLink,
createDirectory, removeDirectory,
createNamedPipe,
rename,
-- FileStatus
FileStatus,
getFileStatus, getFdStatus,
fileExist,
fileAccess,
setFileMode,
fileMode,
fileID, FileID,
deviceID, DeviceID,
linkCount,
fileOwner, fileGroup,
fileSize,
accessTime, modificationTime, statusChangeTime,
isDirectory, isCharacterDevice,
isBlockDevice, isRegularFile,
isNamedPipe,
setOwnerAndGroup, -- chown (might be restricted)
setFileTimes, -- set access and modification time
touchFile, -- set access and modification time to current time.
-- run-time limit & POSIX feature testing
PathVar(..),
getPathVar,
getFileVar
) where
import System.Posix
import System.Directory ( removeDirectory )
getFileVar = getFdPathVar
\end{code}
|