From 8fac3cbbe2bc6b4aca23e8044e3f1fe68a641368 Mon Sep 17 00:00:00 2001
From: Favonia <favonia@gmail.com>
Date: Wed, 4 May 2011 07:03:42 -0400
Subject: [PATCH] Make ProcessGroupID a newtype of CPid.
---
NHC/PosixTypes.hsc | 2 ++
System/Posix/Types.hs | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/NHC/PosixTypes.hsc b/NHC/PosixTypes.hsc
index efae04e..5313099 100644
|
a
|
b
|
|
| 83 | 83 | |
| 84 | 84 | -- Make an Fd type rather than using CInt everywhere |
| 85 | 85 | INTEGRAL_TYPE(Fd,tyConFd,"Fd",CInt) |
| | 86 | -- Make a ProcessGroupID new type to avoid misuse of setProcessGroupIDOf |
| | 87 | INTEGRAL_TYPE(ProcessGroupID,tyConProccessGroupID,"ProcessGroupID",CPid) |
| 86 | 88 | |
| 87 | 89 | -- nicer names, and backwards compatibility with POSIX library: |
| 88 | 90 | type LinkCount = CNlink |
diff --git a/System/Posix/Types.hs b/System/Posix/Types.hs
index 9bb85e2..2f0878b 100644
|
a
|
b
|
|
| 182 | 182 | |
| 183 | 183 | -- Make an Fd type rather than using CInt everywhere |
| 184 | 184 | INTEGRAL_TYPE(Fd,tyConFd,"Fd",CInt) |
| | 185 | -- Make a ProcessGroupID new type to avoid misuse of setProcessGroupIDOf |
| | 186 | INTEGRAL_TYPE(ProcessGroupID,tyConProccessGroupID,"ProcessGroupID",CPid) |
| 185 | 187 | |
| 186 | 188 | -- nicer names, and backwards compatibility with POSIX library: |
| 187 | 189 | #if defined(HTYPE_NLINK_T) |
| … |
… |
|
| 204 | 206 | type FileMode = CMode |
| 205 | 207 | type ProcessID = CPid |
| 206 | 208 | type FileOffset = COff |
| 207 | | type ProcessGroupID = CPid |
| 208 | 209 | type Limit = CLong |
| 209 | 210 | |