unix-compat-0.3: Portable POSIX-compatibility layer.

System.PosixCompat.Extensions

Contents

Description

This module provides some functions not present in the unix package.

Synopsis

Device IDs.

deviceMajor :: DeviceID -> CMajorSource

Gets the major number from a DeviceID for a device file.

The portable implementation always returns 0.

deviceMinor :: DeviceID -> CMinorSource

Gets the minor number from a DeviceID for a device file.

The portable implementation always returns 0.

makeDeviceID :: CMajor -> CMinor -> DeviceIDSource

Creates a DeviceID for a device file given a major and minor number.