Skip to content

Commit 3862b76

Browse files
Eric LindbladBodigrim
authored andcommitted
typos
1 parent d85c69c commit 3862b76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

System/Posix/Directory/Common.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ foreign import ccall unsafe "HsUnix.h close"
6767
c_close :: CInt -> IO CInt
6868

6969
-- NOTE: It is /critical/ to use "capi" and "dirent.h" here, because system
70-
-- headers on e.g. MacOS alias this function, and linking directly to the
70+
-- headers on e.g. macOS alias this function, and linking directly to the
7171
-- "fdopendir" symbol in libc leads to a crash!
7272
--
7373
foreign import capi unsafe "dirent.h fdopendir"

System/Posix/DynamicLinker/Prim.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import Foreign.C.String ( CString )
4444
-- |On some hosts (e.g. SuSe and Ubuntu Linux) @RTLD_NEXT@ (and
4545
-- @RTLD_DEFAULT@) are not visible without setting the macro
4646
-- @_GNU_SOURCE@. Since we don\'t want to define this macro, you can use
47-
-- the function 'haveRtldNext' to check wether the flag `Next` is
47+
-- the function 'haveRtldNext' to check whether the flag `Next` is
4848
-- available. Ideally, this will be optimized by the compiler so that it
4949
-- should be as efficient as an @#ifdef@.
5050
--

System/Posix/User.hsc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ data {-# CTYPE "struct group" #-} CGroup
8181
-- setpwent(3) and closed via endpwent(3). Only one thread at
8282
-- a time can safely iterate through the file.
8383
--
84-
-- * On MacOS (through Catalina 10.15), there is no getpwent_r(3) or
84+
-- * On macOS (through Catalina 10.15), there is no getpwent_r(3) or
8585
-- getgrent_r(3), so a lock is also required for safe buffer sharing.
8686
--
8787
-- * On FreeBSD, in the default configuration with passwd lookups configured
@@ -95,7 +95,7 @@ data {-# CTYPE "struct group" #-} CGroup
9595
-- and @*(nam|[ug]id)_r(3)@ functions in the /same/ thread.
9696
--
9797
-- * Despite rather similar manpages for getpwent(3) and getpwnam(3), ... as
98-
-- on FreeBSD, the above issue is not seen on NetBSD or MacOS.
98+
-- on FreeBSD, the above issue is not seen on NetBSD or macOS.
9999
--
100100
-- This is not an issue with 1-to-1 thread models, where the code executing
101101
-- @get(pw|gr)ent@ has exclusive use of its thread, but it is a real issue
@@ -109,7 +109,7 @@ data {-# CTYPE "struct group" #-} CGroup
109109
-- non-trivial. In the threaded runtime, we can run these functions in a
110110
-- /bound thread/ (via 'forkOS'), thereby avoiding the FreeBSD issues. We
111111
-- still need a lock to serialise multiple threads calling these functions
112-
-- on at least MacOS for lack of @_r@ equivalents. While on FreeBSD we could
112+
-- on at least macOS for lack of @_r@ equivalents. While on FreeBSD we could
113113
-- use @getpwent_r(3)@ and @getgrent_r(3)@ in a bound thread without any
114114
-- locks, implementing this special case is likely not worthwhile.
115115
--

0 commit comments

Comments
 (0)