{-# 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 :: FileMode
blockSpecialMode = FileMode
0o0060000

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

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

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

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

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

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

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