{-# LANGUAGE Safe #-}
{- Posix consts not included with Haskell
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>

All rights reserved.

For license and copyright information, see the file LICENSE
-}

{- |
   Module     : System.Posix.Consts
   Copyright  : Copyright (C) 2005-2011 John Goerzen
   SPDX-License-Identifier: BSD-3-Clause

   Stability  : stable
   Portability: portable

Exports some POSIX constants and functions that are not exported in fptools
by default.

-}

module System.Posix.Consts where

import safe System.Posix.Types ( FileMode )

blockSpecialMode :: FileMode
blockSpecialMode :: CMode
blockSpecialMode = CMode
0o0060000

characterSpecialMode :: FileMode
characterSpecialMode :: CMode
characterSpecialMode = CMode
0o0020000

namedPipeMode :: FileMode
namedPipeMode :: CMode
namedPipeMode = CMode
0o0010000

regularFileMode :: FileMode
regularFileMode :: CMode
regularFileMode = CMode
0o0100000

directoryMode :: FileMode
directoryMode :: CMode
directoryMode = CMode
0o0040000

fileTypeModes :: FileMode
fileTypeModes :: CMode
fileTypeModes = CMode
0o00170000

socketMode :: FileMode
socketMode :: CMode
socketMode = CMode
0o0140000

symbolicLinkMode :: FileMode
symbolicLinkMode :: CMode
symbolicLinkMode = CMode
0o0120000